@@ -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+ }
0 commit comments