@@ -34,7 +34,7 @@ func TestIncludesToIncludeFolders(t *testing.T) {
34
34
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
35
35
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
36
36
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
37
- SketchLocation : paths .New ("downloaded_libraries" , "Bridge" , "examples" , "Bridge" , "Bridge.ino" ),
37
+ Sketch : OpenSketch ( t , paths .New ("downloaded_libraries" , "Bridge" , "examples" , "Bridge" , "Bridge.ino" ) ),
38
38
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
39
39
ArduinoAPIVersion : "10600" ,
40
40
Verbose : true ,
@@ -70,7 +70,7 @@ func TestIncludesToIncludeFoldersSketchWithIfDef(t *testing.T) {
70
70
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
71
71
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
72
72
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
73
- SketchLocation : paths .New ("SketchWithIfDef" , "SketchWithIfDef.ino" ),
73
+ Sketch : OpenSketch ( t , paths .New ("SketchWithIfDef" , "SketchWithIfDef.ino" ) ),
74
74
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
75
75
ArduinoAPIVersion : "10600" ,
76
76
Verbose : true ,
@@ -105,7 +105,7 @@ func TestIncludesToIncludeFoldersIRremoteLibrary(t *testing.T) {
105
105
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
106
106
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
107
107
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
108
- SketchLocation : paths .New ("sketch9" , "sketch9.ino" ),
108
+ Sketch : OpenSketch ( t , paths .New ("sketch9" , "sketch9.ino" ) ),
109
109
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
110
110
ArduinoAPIVersion : "10600" ,
111
111
Verbose : true ,
@@ -143,7 +143,7 @@ func TestIncludesToIncludeFoldersANewLibrary(t *testing.T) {
143
143
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
144
144
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
145
145
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
146
- SketchLocation : paths .New ("sketch10" , "sketch10.ino" ),
146
+ Sketch : OpenSketch ( t , paths .New ("sketch10" , "sketch10.ino" ) ),
147
147
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
148
148
ArduinoAPIVersion : "10600" ,
149
149
Verbose : true ,
@@ -177,7 +177,7 @@ func TestIncludesToIncludeFoldersDuplicateLibs(t *testing.T) {
177
177
HardwareDirs : paths .NewPathList (filepath .Join (".." , "hardware" ), "downloaded_hardware" , "user_hardware" ),
178
178
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
179
179
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
180
- SketchLocation : paths .New ("user_hardware" , "my_avr_platform" , "avr" , "libraries" , "SPI" , "examples" , "BarometricPressureSensor" , "BarometricPressureSensor.ino" ),
180
+ Sketch : OpenSketch ( t , paths .New ("user_hardware" , "my_avr_platform" , "avr" , "libraries" , "SPI" , "examples" , "BarometricPressureSensor" , "BarometricPressureSensor.ino" ) ),
181
181
FQBN : parseFQBN (t , "my_avr_platform:avr:custom_yun" ),
182
182
ArduinoAPIVersion : "10600" ,
183
183
Verbose : true ,
@@ -215,7 +215,7 @@ func TestIncludesToIncludeFoldersDuplicateLibsWithConflictingLibsOutsideOfPlatfo
215
215
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
216
216
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
217
217
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
218
- SketchLocation : paths .New ("user_hardware" , "my_avr_platform" , "avr" , "libraries" , "SPI" , "examples" , "BarometricPressureSensor" , "BarometricPressureSensor.ino" ),
218
+ Sketch : OpenSketch ( t , paths .New ("user_hardware" , "my_avr_platform" , "avr" , "libraries" , "SPI" , "examples" , "BarometricPressureSensor" , "BarometricPressureSensor.ino" ) ),
219
219
FQBN : parseFQBN (t , "my_avr_platform:avr:custom_yun" ),
220
220
ArduinoAPIVersion : "10600" ,
221
221
Verbose : true ,
@@ -253,7 +253,7 @@ func TestIncludesToIncludeFoldersDuplicateLibs2(t *testing.T) {
253
253
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
254
254
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
255
255
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
256
- SketchLocation : paths .New ("sketch_usbhost" , "sketch_usbhost.ino" ),
256
+ Sketch : OpenSketch ( t , paths .New ("sketch_usbhost" , "sketch_usbhost.ino" ) ),
257
257
FQBN : parseFQBN (t , "arduino:samd:arduino_zero_native" ),
258
258
ArduinoAPIVersion : "10600" ,
259
259
Verbose : true ,
@@ -291,7 +291,7 @@ func TestIncludesToIncludeFoldersSubfolders(t *testing.T) {
291
291
BuiltInToolsDirs : paths .NewPathList ("downloaded_tools" ),
292
292
BuiltInLibrariesDirs : paths .New ("downloaded_libraries" ),
293
293
OtherLibrariesDirs : paths .NewPathList ("libraries" ),
294
- SketchLocation : paths .New ("sketch_with_subfolders" , "sketch_with_subfolders.ino" ),
294
+ Sketch : OpenSketch ( t , paths .New ("sketch_with_subfolders" , "sketch_with_subfolders.ino" ) ),
295
295
FQBN : parseFQBN (t , "arduino:avr:leonardo" ),
296
296
ArduinoAPIVersion : "10600" ,
297
297
Verbose : true ,
0 commit comments