@@ -63,6 +63,8 @@ func TestCompileOfProblematicSketches(t *testing.T) {
63
63
require .NoError (t , err )
64
64
_ ,
_ ,
err = cli .
Run (
"lib" ,
"install" ,
"[email protected] " )
65
65
require .NoError (t , err )
66
+ _ ,
_ ,
err = cli .
Run (
"lib" ,
"install" ,
"[email protected] " )
67
+ require .NoError (t , err )
66
68
67
69
// Install custom hardware required for tests
68
70
customHwDir , err := paths .New (".." , "testdata" , "user_hardware" ).Abs ()
@@ -114,6 +116,7 @@ func TestCompileOfProblematicSketches(t *testing.T) {
114
116
{"SketchWithMultilineTemplate" , testBuilderSketchWithMultilineTemplate },
115
117
{"SketchWithFakeFunctionPointer" , testBuilderSketchWithFakeFunctionPointer },
116
118
{"SketchWithMinMaxDefinitions" , testBuilderSketchWithMinMaxDefinitions },
119
+ {"SketchWithFastledsLibrary" , testBuilderSketchWithFastledsLibrary },
117
120
}.Run (t , env , cli )
118
121
}
119
122
@@ -757,6 +760,22 @@ func testBuilderSketchWithMinMaxDefinitions(t *testing.T, env *integrationtest.E
757
760
})
758
761
}
759
762
763
+ func testBuilderSketchWithFastledsLibrary (t * testing.T , env * integrationtest.Environment , cli * integrationtest.ArduinoCLI ) {
764
+ t .Run ("Build" , func (t * testing.T ) {
765
+ // Build
766
+ _ , err := tryBuild (t , env , cli , "arduino:samd:arduino_zero_native" )
767
+ require .NoError (t , err )
768
+ })
769
+
770
+ t .Run ("Preprocess" , func (t * testing.T ) {
771
+ // Preprocess
772
+ sketchPath , preprocessedSketch , err := tryPreprocess (t , env , cli , "arduino:samd:arduino_zero_native" )
773
+ require .NoError (t , err )
774
+ comparePreprocessGoldenFile (t , sketchPath , preprocessedSketch )
775
+ })
776
+ }
777
+
778
+
760
779
type builderOutput struct {
761
780
CompilerOut string `json:"compiler_out"`
762
781
CompilerErr string `json:"compiler_err"`
0 commit comments