Skip to content

Commit 6278045

Browse files
Migrate TestCompileWithPrecompileLibrary to compile_part_2_test.go and delete test_compile_part_2.py
1 parent 09293ac commit 6278045

File tree

2 files changed

+24
-58
lines changed

2 files changed

+24
-58
lines changed

internal/integrationtest/compile/compile_part_2_test.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,27 @@ func TestCompileWithArchivesAndLongPaths(t *testing.T) {
319319
_, _, err = cli.Run("compile", "-b", "esp8266:esp8266:huzzah", sketchPath.String())
320320
require.NoError(t, err)
321321
}
322+
323+
func TestCompileWithPrecompileLibrary(t *testing.T) {
324+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
325+
defer env.CleanUp()
326+
327+
_, _, err := cli.Run("update")
328+
require.NoError(t, err)
329+
330+
_, _, err = cli.Run("core", "install", "arduino:samd@1.8.11")
331+
require.NoError(t, err)
332+
fqbn := "arduino:samd:mkrzero"
333+
334+
// Install precompiled library
335+
// For more information see:
336+
// https://arduino.github.io/arduino-cli/latest/library-specification/#precompiled-binaries
337+
_, _, err = cli.Run("lib", "install", "BSEC Software Library@1.5.1474")
338+
require.NoError(t, err)
339+
sketchFolder := cli.SketchbookDir().Join("libraries", "BSEC_Software_Library", "examples", "basic")
340+
341+
// Compile and verify dependencies detection for fully precompiled library is not skipped
342+
stdout, _, err := cli.Run("compile", "-b", fqbn, sketchFolder.String(), "-v")
343+
require.NoError(t, err)
344+
require.NotContains(t, string(stdout), "Skipping dependencies detection for precompiled library BSEC Software Library")
345+
}

test/test_compile_part_2.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)