Skip to content

Commit 86a874b

Browse files
author
jan
committed
Test ran successfull on +1400 boards
1 parent ae020d4 commit 86a874b

File tree

1 file changed

+35
-13
lines changed

1 file changed

+35
-13
lines changed

io.sloeber.tests/src/io/sloeber/core/CreateAndCompileDefaultInoOnAllBoardsTest.java

+35-13
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
import java.util.List;
1313
import java.util.stream.Stream;
1414

15+
import org.eclipse.cdt.core.CCorePlugin;
16+
import org.eclipse.cdt.core.dom.IPDOMManager;
1517
import org.eclipse.core.runtime.IPath;
18+
import org.junit.jupiter.api.BeforeAll;
1619
import org.junit.jupiter.params.ParameterizedTest;
1720
import org.junit.jupiter.params.provider.Arguments;
1821
import org.junit.jupiter.params.provider.MethodSource;
@@ -33,10 +36,30 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
3336
private static final boolean closeFailedProjects = false;
3437

3538
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+
}
3854

3955
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+
4063
// There is a newer version
4164
"https://raw.githubusercontent.com/ElektorLabs/arduino/master/package_elektor-labs.com_ide-1.6.5_index.json",
4265
// Third party url implies this is outdated (it also doesn't work)
@@ -69,15 +92,20 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
6992
// confirmed 2020 03 09 version 25 12 17
7093
"https://raw.githubusercontent.com/avandalen/SAM15x15/master/package_avdweb_nl_index.json",
7194

72-
//no longer supported causes issues with USB_MANUFACTOR
95+
//no longer supported
7396
"https://raw.githubusercontent.com/mikaelpatel/Cosa/master/package_cosa_index.json",
97+
"https://engimusing.github.io/arduinoIDE/package_engimusing_modules_index.json",
7498

7599
//Seems no longer supported json file download fails
76100
"https://raw.githubusercontent.com/MaximIntegratedMicros/arduino-collateral/master/package_maxim_index.json",
77-
101+
78102
//another fail to download json
79103
"https://www.mattairtech.com/software/arduino/package_MattairTech_index.json",
80104

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+
81109
// uses busybox on windows so command line issues and on Linux the all in one
82110
// archive build fails
83111
"https://github.com/tenbaht/sduino/raw/master/package_sduino_stm8_index.json", };
@@ -107,8 +135,8 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
107135
// confirmed 2020 03 09 version 4.0.0
108136
"SmartEverything Bee (Native USB Port)",
109137

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)",
112140

113141
"D-duino-32", // confirmed 2020 03 09
114142
"SparkFun Blynk Board", // (confirmed 2020 03 07 )
@@ -271,13 +299,7 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
271299
};
272300

273301
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+
281303

282304
List<BoardDescription> boards = new ArrayList<>();
283305
for (File curBoardFile : BoardsManager.getAllBoardsFiles()) {

0 commit comments

Comments
 (0)