23
23
import io .sloeber .core .api .LibraryManager ;
24
24
import io .sloeber .core .api .Preferences ;
25
25
26
- @ SuppressWarnings ("nls" )
26
+ @ SuppressWarnings ({ "nls" , "static-method" } )
27
27
public class CreateAndCompileDefaultInoOnAllBoardsTest {
28
28
29
29
// use the boolean below to avoid downloading and installation
@@ -32,7 +32,7 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
32
32
private static final boolean apply_known_work_Arounds = true ;
33
33
private static final boolean closeFailedProjects = false ;
34
34
35
- private int myTotalFails = 0 ;
35
+ private static int myTotalFails = 0 ;
36
36
private static int maxFails = 50 ;
37
37
private static int mySkipTestsAtStart = 0 ;
38
38
@@ -69,6 +69,15 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
69
69
// confirmed 2020 03 09 version 25 12 17
70
70
"https://raw.githubusercontent.com/avandalen/SAM15x15/master/package_avdweb_nl_index.json" ,
71
71
72
+ //no longer supported causes issues with USB_MANUFACTOR
73
+ "https://raw.githubusercontent.com/mikaelpatel/Cosa/master/package_cosa_index.json" ,
74
+
75
+ //Seems no longer supported json file download fails
76
+ "https://raw.githubusercontent.com/MaximIntegratedMicros/arduino-collateral/master/package_maxim_index.json" ,
77
+
78
+ //another fail to download json
79
+ "https://www.mattairtech.com/software/arduino/package_MattairTech_index.json" ,
80
+
72
81
// uses busybox on windows so command line issues and on Linux the all in one
73
82
// archive build fails
74
83
"https://github.com/tenbaht/sduino/raw/master/package_sduino_stm8_index.json" , };
@@ -118,6 +127,8 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
118
127
"Maple (RET6)" , // confirmed failing in arduino IDE 2020 05 30
119
128
"Generic STM32F103Z series" ,// confirmed failing in arduino IDE 2020 05 30
120
129
130
+ "Arduino Nano ESP32" ,// requires recipe.hooks.core.prebuild and recipe.hooks.core.postbuild
131
+
121
132
};
122
133
private static final String [] boardsToIgnoreOnWindows = {
123
134
@@ -333,13 +344,15 @@ public static void installAdditionalBoards() throws Exception {
333
344
Shared .waitForAllJobsToFinish ();
334
345
}
335
346
347
+
336
348
@ ParameterizedTest
337
349
@ MethodSource ("allBoards" )
338
350
public void testBoard (BoardDescription board ) throws Exception {
339
351
Shared .buildCounter ++;
340
352
assumeTrue ( Shared .buildCounter >= mySkipTestsAtStart ,"Skipping first " + mySkipTestsAtStart + " tests" );
341
353
assumeTrue ( myTotalFails < maxFails ,"To many fails. Stopping test" );
342
354
355
+ Shared .getLastFailMessage (); //eraze error buffer
343
356
IPath templateFolder = Shared .getTemplateFolder ("CreateAndCompileTest" );
344
357
myTotalFails ++;
345
358
assertNull (Shared .buildAndVerify (board , CodeDescription .createCustomTemplate (templateFolder ), null ));
0 commit comments