@@ -35,12 +35,11 @@ public class RegressionTest {
35
35
public static void WaitForInstallerToFinish () {
36
36
Shared .waitForAllJobsToFinish ();
37
37
installAdditionalBoards ();
38
- BoardsManager .installAllLatestPlatforms ();
39
38
}
40
39
41
40
public static void installAdditionalBoards () {
42
41
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 );
44
43
if (!Shared .getTeensyPlatform ().isEmpty ()) {
45
44
BoardsManager .referenceLocallInstallation (Shared .getTeensyPlatform ());
46
45
}
@@ -53,7 +52,9 @@ public static void installAdditionalBoards() {
53
52
@ SuppressWarnings ("static-method" )
54
53
@ Test
55
54
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" );
57
58
Map <String , String > options = new HashMap <>();
58
59
options .put ("mhz" , "16MHz" );
59
60
BoardDescriptor boardid = BoardsManager .getBoardDescriptor ("package_talk2.wisen.com_index.json" , "Talk2" ,
@@ -124,10 +125,12 @@ public void issue555() {
124
125
125
126
/**
126
127
* support void loop{};
128
+ * @throws Exception
127
129
*/
128
130
@ SuppressWarnings ("static-method" )
129
131
@ Test
130
- public void issue687 () {
132
+ public void issue687 () throws Exception {
133
+ BoardsManager .installLatestPlatform ("package_index.json" , "arduino" , "Arduino AVR Boards" );
131
134
Map <String , String > unoOptions = new HashMap <>();
132
135
BoardDescriptor unoBoardid = BoardsManager .getBoardDescriptor ("package_index.json" , "arduino" , "Arduino AVR Boards" ,
133
136
"uno" , unoOptions );
@@ -146,6 +149,7 @@ public void issue687() {
146
149
fail ("Failed to compile the project:" + projectName + " issue687 is not fixed" );
147
150
}
148
151
} catch (Exception e ) {
152
+ e .printStackTrace ();
149
153
fail ("Failed to create the project:" + projectName );
150
154
return ;
151
155
}
@@ -156,10 +160,12 @@ public void issue687() {
156
160
* This test will fail if the arduino compile option are not taken into
157
161
* account To do sa a bunch of defines are added to the command line and the
158
162
* code checks whether these defines are set properly
163
+ * @throws Exception
159
164
*/
160
165
@ SuppressWarnings ("static-method" )
161
166
@ 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" );
163
169
Map <String , String > unoOptions = new HashMap <>();
164
170
BoardDescriptor unoBoardid = BoardsManager .getBoardDescriptor ("package_index.json" , "arduino" , "Arduino AVR Boards" ,
165
171
"uno" , unoOptions );
@@ -197,10 +203,12 @@ public void are_jantjes_options_taken_into_account() {
197
203
/**
198
204
* If a .ino file is including a include using extern C is this handled
199
205
* properly by the ino to cpp parser
206
+ * @throws Exception
200
207
*/
201
208
@ SuppressWarnings ("static-method" )
202
209
@ 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" );
204
212
Map <String , String > unoOptions = new HashMap <>();
205
213
BoardDescriptor unoBoardid = BoardsManager .getBoardDescriptor ("package_index.json" , "arduino" , "Arduino AVR Boards" ,
206
214
"uno" , unoOptions );
@@ -232,10 +240,12 @@ public void are_defines_before_includes_taken_into_account() {
232
240
/**
233
241
* If a .ino file is defining defines before including a include this should
234
242
* be handled properly by the ino to cpp parser
243
+ * @throws Exception
235
244
*/
236
245
@ SuppressWarnings ("static-method" )
237
246
@ 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" );
239
249
Map <String , String > unoOptions = new HashMap <>();
240
250
BoardDescriptor unoBoardid = BoardsManager .getBoardDescriptor ("package_index.json" , "arduino" , "Arduino AVR Boards" ,
241
251
"uno" , unoOptions );
0 commit comments