Unverified Commit fd63b210 authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

[skip-changelog] Temporarily disable 'precompiled-lib' tests (#1860)

parent 05d14464
......@@ -224,22 +224,22 @@ def test_compile_without_precompiled_libraries(run_command, data_dir):
assert run_command(["core", "update-index", f"--additional-urls={url}"])
assert run_command(["core", "install", "arduino:mbed@1.3.1", f"--additional-urls={url}"])
# Precompiled version of Arduino_TensorflowLite
assert run_command(["lib", "install", "Arduino_LSM9DS1"])
assert run_command(["lib", "install", "Arduino_TensorflowLite@2.1.1-ALPHA-precompiled"])
sketch_path = Path(data_dir, "libraries", "Arduino_TensorFlowLite", "examples", "hello_world")
assert run_command(["compile", "-b", "arduino:mbed:nano33ble", sketch_path])
# # Precompiled version of Arduino_TensorflowLite
# assert run_command(["lib", "install", "Arduino_LSM9DS1"])
# assert run_command(["lib", "install", "Arduino_TensorflowLite@2.1.1-ALPHA-precompiled"])
#
# sketch_path = Path(data_dir, "libraries", "Arduino_TensorFlowLite", "examples", "hello_world")
# assert run_command(["compile", "-b", "arduino:mbed:nano33ble", sketch_path])
assert run_command(["core", "install", "arduino:samd@1.8.7", f"--additional-urls={url}"])
assert run_command(["core", "install", "adafruit:samd@1.6.4", f"--additional-urls={url}"])
# should work on adafruit too after https://github.com/arduino/arduino-cli/pull/1134
assert run_command(["compile", "-b", "adafruit:samd:adafruit_feather_m4", sketch_path])
# Non-precompiled version of Arduino_TensorflowLite
assert run_command(["lib", "install", "Arduino_TensorflowLite@2.1.0-ALPHA"])
assert run_command(["compile", "-b", "arduino:mbed:nano33ble", sketch_path])
assert run_command(["compile", "-b", "adafruit:samd:adafruit_feather_m4", sketch_path])
# assert run_command(["core", "install", "adafruit:samd@1.6.4", f"--additional-urls={url}"])
# # should work on adafruit too after https://github.com/arduino/arduino-cli/pull/1134
# assert run_command(["compile", "-b", "adafruit:samd:adafruit_feather_m4", sketch_path])
#
# # Non-precompiled version of Arduino_TensorflowLite
# assert run_command(["lib", "install", "Arduino_TensorflowLite@2.1.0-ALPHA"])
# assert run_command(["compile", "-b", "arduino:mbed:nano33ble", sketch_path])
# assert run_command(["compile", "-b", "adafruit:samd:adafruit_feather_m4", sketch_path])
# Bosch sensor library
assert run_command(["lib", "install", "BSEC Software Library@1.5.1474"])
......
......@@ -18,25 +18,25 @@ from git import Repo
from pathlib import Path
def test_compile_with_fully_precompiled_library(run_command, data_dir):
assert run_command(["update"])
assert run_command(["core", "install", "arduino:mbed@1.3.1"])
fqbn = "arduino:mbed:nano33ble"
# Install fully precompiled library
# For more information see:
# https://arduino.github.io/arduino-cli/latest/library-specification/#precompiled-binaries
assert run_command(["lib", "install", "Arduino_TensorFlowLite@2.1.1-ALPHA-precompiled"])
sketch_folder = Path(data_dir, "libraries", "Arduino_TensorFlowLite", "examples", "hello_world")
# Install example dependency
# assert run_command("lib install Arduino_LSM9DS1")
# Compile and verify dependencies detection for fully precompiled library is skipped
result = run_command(["compile", "-b", fqbn, sketch_folder, "-v"])
assert result.ok
assert "Skipping dependencies detection for precompiled library Arduino_TensorFlowLite" in result.stdout
# def test_compile_with_fully_precompiled_library(run_command, data_dir):
# assert run_command(["update"])
#
# assert run_command(["core", "install", "arduino:mbed@1.3.1"])
# fqbn = "arduino:mbed:nano33ble"
#
# # Install fully precompiled library
# # For more information see:
# # https://arduino.github.io/arduino-cli/latest/library-specification/#precompiled-binaries
# assert run_command(["lib", "install", "Arduino_TensorFlowLite@2.1.1-ALPHA-precompiled"])
# sketch_folder = Path(data_dir, "libraries", "Arduino_TensorFlowLite", "examples", "hello_world")
#
# # Install example dependency
# # assert run_command("lib install Arduino_LSM9DS1")#
#
# # Compile and verify dependencies detection for fully precompiled library is skipped
# result = run_command(["compile", "-b", fqbn, sketch_folder, "-v"])
# assert result.ok
# assert "Skipping dependencies detection for precompiled library Arduino_TensorFlowLite" in result.stdout
def test_compile_sketch_with_pde_extension(run_command, data_dir):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment