Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
fd63b210
Unverified
Commit
fd63b210
authored
Sep 01, 2022
by
Cristian Maglie
Committed by
GitHub
Sep 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip-changelog] Temporarily disable 'precompiled-lib' tests (#1860)
parent
05d14464
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
33 deletions
+33
-33
test/test_compile_part_1.py
test/test_compile_part_1.py
+14
-14
test/test_compile_part_3.py
test/test_compile_part_3.py
+19
-19
No files found.
test/test_compile_part_1.py
View file @
fd63b210
...
...
@@ -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"
])
...
...
test/test_compile_part_3.py
View file @
fd63b210
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment