Skip to content

Commit 2e82880

Browse files
Migrate TestCompileWithPrecompileLibrary to compile_part_2_test.go and delete test_compile_part_2.py
1 parent be54e52 commit 2e82880

File tree

2 files changed

+24
-58
lines changed

2 files changed

+24
-58
lines changed

internal/integrationtest/compile/compile_part_2_test.go

+24
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,27 @@ func TestCompileWithArchivesAndLongPaths(t *testing.T) {
328328
_, _, err = cli.Run("compile", "-b", "esp8266:esp8266:huzzah", sketchPath.String())
329329
require.NoError(t, err)
330330
}
331+
332+
func TestCompileWithPrecompileLibrary(t *testing.T) {
333+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
334+
defer env.CleanUp()
335+
336+
_, _, err := cli.Run("update")
337+
require.NoError(t, err)
338+
339+
_, _, err = cli.Run("core", "install", "arduino:[email protected]")
340+
require.NoError(t, err)
341+
fqbn := "arduino:samd:mkrzero"
342+
343+
// Install precompiled library
344+
// For more information see:
345+
// https://arduino.github.io/arduino-cli/latest/library-specification/#precompiled-binaries
346+
_, _, err = cli.Run("lib", "install", "BSEC Software [email protected]")
347+
require.NoError(t, err)
348+
sketchFolder := cli.SketchbookDir().Join("libraries", "BSEC_Software_Library", "examples", "basic")
349+
350+
// Compile and verify dependencies detection for fully precompiled library is not skipped
351+
stdout, _, err := cli.Run("compile", "-b", fqbn, sketchFolder.String(), "-v")
352+
require.NoError(t, err)
353+
require.NotContains(t, string(stdout), "Skipping dependencies detection for precompiled library BSEC Software Library")
354+
}

test/test_compile_part_2.py

-58
This file was deleted.

0 commit comments

Comments
 (0)