@@ -181,33 +181,26 @@ def test_compile_blacklisted_sketchname(run_command, data_dir):
181
181
assert result .ok
182
182
183
183
184
- @pytest .mark .skip ()
185
184
def test_compile_without_precompiled_libraries (run_command , data_dir ):
186
185
# Init the environment explicitly
187
186
url = "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"
188
187
result = run_command ("core update-index --additional-urls={}" .format (url ))
189
188
assert result .ok
190
- # arduino:mbed 1.1.5 is incompatible with the Arduino_TensorFlowLite library
191
- # see: https://github.com/arduino/ArduinoCore-nRF528x-mbedos/issues/93
192
- result = run_command (
"core install arduino:[email protected] --additional-urls={}" .
format (
url ))
189
+ result = run_command (
"core install arduino:[email protected] --additional-urls={}" .
format (
url ))
193
190
assert result .ok
194
191
result = run_command (
"core install arduino:[email protected] --additional-urls={}" .
format (
url ))
195
192
assert result .ok
196
193
result = run_command (
"core install adafruit:[email protected] --additional-urls={}" .
format (
url ))
197
194
assert result .ok
198
195
199
- # Install pre-release version of Arduino_TensorFlowLite (will be officially released
200
- # via lib manager after https://github.com/arduino/arduino-builder/issues/353 is in)
201
- import zipfile
202
-
203
- with zipfile .ZipFile ("test/testdata/Arduino_TensorFlowLite.zip" , "r" ) as zip_ref :
204
- zip_ref .extractall ("{}/libraries/" .format (data_dir ))
205
- result = run_command (
"lib install [email protected] " )
196
+ # Precompiled version of Arduino_TensorflowLite
197
+ result = run_command (
"lib install [email protected] " )
206
198
assert result .ok
207
199
result = run_command (
208
200
"compile -b arduino:mbed:nano33ble {}/libraries/Arduino_TensorFlowLite/examples/magic_wand/" .format (data_dir )
209
201
)
210
202
assert result .ok
203
+ # should work on adafruit too after https://github.com/arduino/arduino-cli/pull/1134
211
204
result = run_command (
212
205
"compile -b adafruit:samd:adafruit_feather_m4 {}/libraries/Arduino_TensorFlowLite/examples/magic_wand/" .format (
213
206
data_dir
@@ -216,7 +209,7 @@ def test_compile_without_precompiled_libraries(run_command, data_dir):
216
209
assert result .ok
217
210
218
211
# Non-precompiled version of Arduino_TensorflowLite
219
- result = run_command ("lib install Arduino_TensorflowLite@1.15 .0-ALPHA" )
212
+ result = run_command ("lib install Arduino_TensorflowLite@2.1 .0-ALPHA" )
220
213
assert result .ok
221
214
result = run_command (
222
215
"compile -b arduino:mbed:nano33ble {}/libraries/Arduino_TensorFlowLite/examples/magic_wand/" .format (data_dir )
@@ -241,6 +234,17 @@ def test_compile_without_precompiled_libraries(run_command, data_dir):
241
234
)
242
235
assert result .ok
243
236
237
+ # USBBlaster library
238
+ result = run_command (
'lib install "[email protected] "' )
239
+ assert result .ok
240
+ result = run_command (
241
+ "compile -b arduino:samd:mkrvidor4000 {}/libraries/USBBlaster/examples/USB_Blaster/" .format (data_dir )
242
+ )
243
+ assert result .ok
244
+ result = run_command (
245
+ "compile -b arduino:mbed:nano33ble {}/libraries/BSEC_Software_Library/examples/basic/" .format (data_dir )
246
+ )
247
+ assert result .ok
244
248
245
249
def test_compile_with_build_properties_flag (run_command , data_dir , copy_sketch ):
246
250
# Init the environment explicitly
0 commit comments