12
12
import java .util .List ;
13
13
import java .util .stream .Stream ;
14
14
15
+ import org .eclipse .cdt .core .CCorePlugin ;
16
+ import org .eclipse .cdt .core .dom .IPDOMManager ;
15
17
import org .eclipse .core .runtime .IPath ;
18
+ import org .junit .jupiter .api .BeforeAll ;
16
19
import org .junit .jupiter .params .ParameterizedTest ;
17
20
import org .junit .jupiter .params .provider .Arguments ;
18
21
import org .junit .jupiter .params .provider .MethodSource ;
@@ -33,10 +36,30 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
33
36
private static final boolean closeFailedProjects = false ;
34
37
35
38
private static int myTotalFails = 0 ;
36
- private static int maxFails = 50 ;
37
- private static int mySkipTestsAtStart = 0 ;
39
+ private static final int maxFails = 50 ;
40
+ private static final int mySkipTestsAtStart = 0 ;
41
+
42
+ @ BeforeAll
43
+ static public void beforeAll () throws Exception {
44
+ Shared .setCloseFailedProjects (closeFailedProjects );
45
+ // make sure all plugin installation is done
46
+ Shared .waitForAllJobsToFinish ();
47
+ Shared .setUseParralBuildProjects (Boolean .TRUE );
48
+ CCorePlugin .getIndexManager ().setDefaultIndexerId ( IPDOMManager .ID_NO_INDEXER );
49
+ // build the Arduino way
50
+ Preferences .setUseArduinoToolSelection (true );
51
+ Preferences .setUseBonjour (false );
52
+ installAdditionalBoards ();
53
+ }
38
54
39
55
private static final String [] packageUrlsToIgnoreonAllOSes = {
56
+
57
+ //This package contains an additional avr folder for the tiny.
58
+ //This should work. Bug=Sloeber starts from disk not from boardsmanager
59
+ //therefore doesn't find the json file
60
+ //this test excludes the other hardwares but I can't be bothered
61
+ "http://www.leonardomiliani.com/repository/package_leonardomiliani.com_index.json" ,
62
+
40
63
// There is a newer version
41
64
"https://raw.githubusercontent.com/ElektorLabs/arduino/master/package_elektor-labs.com_ide-1.6.5_index.json" ,
42
65
// Third party url implies this is outdated (it also doesn't work)
@@ -69,15 +92,20 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
69
92
// confirmed 2020 03 09 version 25 12 17
70
93
"https://raw.githubusercontent.com/avandalen/SAM15x15/master/package_avdweb_nl_index.json" ,
71
94
72
- //no longer supported causes issues with USB_MANUFACTOR
95
+ //no longer supported
73
96
"https://raw.githubusercontent.com/mikaelpatel/Cosa/master/package_cosa_index.json" ,
97
+ "https://engimusing.github.io/arduinoIDE/package_engimusing_modules_index.json" ,
74
98
75
99
//Seems no longer supported json file download fails
76
100
"https://raw.githubusercontent.com/MaximIntegratedMicros/arduino-collateral/master/package_maxim_index.json" ,
77
-
101
+
78
102
//another fail to download json
79
103
"https://www.mattairtech.com/software/arduino/package_MattairTech_index.json" ,
80
104
105
+ //malformed json file (confirmed by arduino IDE
106
+ "https://raw.githubusercontent.com/DFRobot/DFRobotDuinoBoard/master/package_dfrobot_index.json" ,
107
+ "https://raw.githubusercontent.com/DFRobot/DFRobotDuinoBoard/master/package_dfrobot_iot_mainboard.json" ,
108
+
81
109
// uses busybox on windows so command line issues and on Linux the all in one
82
110
// archive build fails
83
111
"https://github.com/tenbaht/sduino/raw/master/package_sduino_stm8_index.json" , };
@@ -107,8 +135,8 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
107
135
// confirmed 2020 03 09 version 4.0.0
108
136
"SmartEverything Bee (Native USB Port)" ,
109
137
110
- // issue #1152 (confirmed 2020 03 07 )
111
- "Engimusing EFM32WG840" , "Engimusing EFM32WG842" , "Engimusing EFM32WG842F64 " ,
138
+ // confirmed 2024 08 23 not to work in arduino IDE
139
+ "Kitten Syringe nRF52833 (NSFW) " ,
112
140
113
141
"D-duino-32" , // confirmed 2020 03 09
114
142
"SparkFun Blynk Board" , // (confirmed 2020 03 07 )
@@ -271,13 +299,7 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
271
299
};
272
300
273
301
public static Stream <Arguments > allBoards () throws Exception {
274
- Shared .setCloseFailedProjects (closeFailedProjects );
275
- // make sure all plugin installation is done
276
- Shared .waitForAllJobsToFinish ();
277
- // build the Arduino way
278
- Preferences .setUseArduinoToolSelection (true );
279
- Preferences .setUseBonjour (false );
280
- installAdditionalBoards ();
302
+
281
303
282
304
List <BoardDescription > boards = new ArrayList <>();
283
305
for (File curBoardFile : BoardsManager .getAllBoardsFiles ()) {
0 commit comments