Skip to content

Commit b6c5d51

Browse files
author
jan
committed
remove Arduino Nano ESP32 and others from the test
As they do not build out of the box or the json is no more available
1 parent 6a470d4 commit b6c5d51

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import io.sloeber.core.api.LibraryManager;
2424
import io.sloeber.core.api.Preferences;
2525

26-
@SuppressWarnings("nls")
26+
@SuppressWarnings({"nls","static-method"})
2727
public class CreateAndCompileDefaultInoOnAllBoardsTest {
2828

2929
// use the boolean below to avoid downloading and installation
@@ -32,7 +32,7 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
3232
private static final boolean apply_known_work_Arounds = true;
3333
private static final boolean closeFailedProjects = false;
3434

35-
private int myTotalFails = 0;
35+
private static int myTotalFails = 0;
3636
private static int maxFails = 50;
3737
private static int mySkipTestsAtStart = 0;
3838

@@ -69,6 +69,15 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
6969
// confirmed 2020 03 09 version 25 12 17
7070
"https://raw.githubusercontent.com/avandalen/SAM15x15/master/package_avdweb_nl_index.json",
7171

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+
7281
// uses busybox on windows so command line issues and on Linux the all in one
7382
// archive build fails
7483
"https://github.com/tenbaht/sduino/raw/master/package_sduino_stm8_index.json", };
@@ -118,6 +127,8 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
118127
"Maple (RET6)", // confirmed failing in arduino IDE 2020 05 30
119128
"Generic STM32F103Z series",// confirmed failing in arduino IDE 2020 05 30
120129

130+
"Arduino Nano ESP32",// requires recipe.hooks.core.prebuild and recipe.hooks.core.postbuild
131+
121132
};
122133
private static final String[] boardsToIgnoreOnWindows = {
123134

@@ -333,13 +344,15 @@ public static void installAdditionalBoards() throws Exception {
333344
Shared.waitForAllJobsToFinish();
334345
}
335346

347+
336348
@ParameterizedTest
337349
@MethodSource("allBoards")
338350
public void testBoard(BoardDescription board) throws Exception {
339351
Shared.buildCounter++;
340352
assumeTrue( Shared.buildCounter >= mySkipTestsAtStart,"Skipping first " + mySkipTestsAtStart + " tests");
341353
assumeTrue( myTotalFails < maxFails,"To many fails. Stopping test");
342354

355+
Shared.getLastFailMessage(); //eraze error buffer
343356
IPath templateFolder = Shared.getTemplateFolder("CreateAndCompileTest");
344357
myTotalFails++;
345358
assertNull(Shared.buildAndVerify(board, CodeDescription.createCustomTemplate(templateFolder), null));

0 commit comments

Comments
 (0)