@@ -328,3 +328,27 @@ func TestCompileWithArchivesAndLongPaths(t *testing.T) {
328
328
_ , _ , err = cli .Run ("compile" , "-b" , "esp8266:esp8266:huzzah" , sketchPath .String ())
329
329
require .NoError (t , err )
330
330
}
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
+ }
0 commit comments