Skip to content

Commit 86346eb

Browse files
author
jantje
committed
only install the boards used
The test installed all latest platforms but actually only 2 are used
1 parent 5bc0218 commit 86346eb

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

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

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ public class RegressionTest {
3535
public static void WaitForInstallerToFinish() {
3636
Shared.waitForAllJobsToFinish();
3737
installAdditionalBoards();
38-
BoardsManager.installAllLatestPlatforms();
3938
}
4039

4140
public static void installAdditionalBoards() {
4241
String[] packageUrlsToAdd = { "http://talk2arduino.wisen.com.au/master/package_talk2.wisen.com_index.json" };
43-
BoardsManager.addPackageURLs(new HashSet<>(Arrays.asList(packageUrlsToAdd)), true);
42+
BoardsManager.addPackageURLs(new HashSet<>(Arrays.asList(packageUrlsToAdd)), false);
4443
if (!Shared.getTeensyPlatform().isEmpty()) {
4544
BoardsManager.referenceLocallInstallation(Shared.getTeensyPlatform());
4645
}
@@ -53,7 +52,9 @@ public static void installAdditionalBoards() {
5352
@SuppressWarnings("static-method")
5453
@Test
5554
public void redirectedJson() {
56-
55+
//this board references to arduino avr so install that one to
56+
BoardsManager.installLatestPlatform("package_index.json", "arduino", "Arduino AVR Boards");
57+
BoardsManager.installLatestPlatform("package_talk2.wisen.com_index.json", "Talk2","Talk2 AVR Boards");
5758
Map<String, String> options = new HashMap<>();
5859
options.put("mhz", "16MHz");
5960
BoardDescriptor boardid = BoardsManager.getBoardDescriptor("package_talk2.wisen.com_index.json", "Talk2",
@@ -124,10 +125,12 @@ public void issue555() {
124125

125126
/**
126127
* support void loop{};
128+
* @throws Exception
127129
*/
128130
@SuppressWarnings("static-method")
129131
@Test
130-
public void issue687() {
132+
public void issue687() throws Exception {
133+
BoardsManager.installLatestPlatform("package_index.json", "arduino", "Arduino AVR Boards");
131134
Map<String, String> unoOptions = new HashMap<>();
132135
BoardDescriptor unoBoardid = BoardsManager.getBoardDescriptor("package_index.json", "arduino", "Arduino AVR Boards",
133136
"uno", unoOptions);
@@ -146,6 +149,7 @@ public void issue687() {
146149
fail("Failed to compile the project:" + projectName + " issue687 is not fixed");
147150
}
148151
} catch (Exception e) {
152+
e.printStackTrace();
149153
fail("Failed to create the project:" + projectName);
150154
return;
151155
}
@@ -156,10 +160,12 @@ public void issue687() {
156160
* This test will fail if the arduino compile option are not taken into
157161
* account To do sa a bunch of defines are added to the command line and the
158162
* code checks whether these defines are set properly
163+
* @throws Exception
159164
*/
160165
@SuppressWarnings("static-method")
161166
@Test
162-
public void are_jantjes_options_taken_into_account() {
167+
public void are_jantjes_options_taken_into_account() throws Exception {
168+
BoardsManager.installLatestPlatform("package_index.json", "arduino", "Arduino AVR Boards");
163169
Map<String, String> unoOptions = new HashMap<>();
164170
BoardDescriptor unoBoardid = BoardsManager.getBoardDescriptor("package_index.json", "arduino", "Arduino AVR Boards",
165171
"uno", unoOptions);
@@ -197,10 +203,12 @@ public void are_jantjes_options_taken_into_account() {
197203
/**
198204
* If a .ino file is including a include using extern C is this handled
199205
* properly by the ino to cpp parser
206+
* @throws Exception
200207
*/
201208
@SuppressWarnings("static-method")
202209
@Test
203-
public void are_defines_before_includes_taken_into_account() {
210+
public void are_defines_before_includes_taken_into_account() throws Exception {
211+
BoardsManager.installLatestPlatform("package_index.json", "arduino", "Arduino AVR Boards");
204212
Map<String, String> unoOptions = new HashMap<>();
205213
BoardDescriptor unoBoardid = BoardsManager.getBoardDescriptor("package_index.json", "arduino", "Arduino AVR Boards",
206214
"uno", unoOptions);
@@ -232,10 +240,12 @@ public void are_defines_before_includes_taken_into_account() {
232240
/**
233241
* If a .ino file is defining defines before including a include this should
234242
* be handled properly by the ino to cpp parser
243+
* @throws Exception
235244
*/
236245
@SuppressWarnings("static-method")
237246
@Test
238-
public void is_extern_C_taken_into_account() {
247+
public void is_extern_C_taken_into_account() throws Exception {
248+
BoardsManager.installLatestPlatform("package_index.json", "arduino", "Arduino AVR Boards");
239249
Map<String, String> unoOptions = new HashMap<>();
240250
BoardDescriptor unoBoardid = BoardsManager.getBoardDescriptor("package_index.json", "arduino", "Arduino AVR Boards",
241251
"uno", unoOptions);

0 commit comments

Comments
 (0)