@@ -52,11 +52,18 @@ public CreateAndCompileArduinoIDEExamplesOnTeensyTest(String name, CodeDescripto
52
52
@ SuppressWarnings ("rawtypes" )
53
53
@ Parameters (name = "{index}: {0}" )
54
54
public static Collection examples () {
55
- BoardsManager .referenceLocallInstallation (Shared .getTeensyPlatform ());
55
+ LinkedList <Object []> examples = new LinkedList <>();
56
+ if (Shared .getTeensyPlatform ().isEmpty ()) {
57
+ System .err .println ("ERROR: Teensy not installed/configured skipping tests!!!" );
58
+ }
59
+ else {
60
+ BoardsManager .referenceLocallInstallation (Shared .getTeensyPlatform ());
61
+ }
62
+
56
63
57
64
Shared .waitForAllJobsToFinish ();
58
65
59
- LinkedList < Object []> examples = new LinkedList <>();
66
+
60
67
TreeMap <String , IPath > exampleFolders = BoardsManager .getAllArduinoIDEExamples ();
61
68
for (Map .Entry <String , IPath > curexample : exampleFolders .entrySet ()) {
62
69
ArrayList <Path > paths = new ArrayList <>();
@@ -105,37 +112,44 @@ public void testExample(IBoard board) {
105
112
106
113
@ Test
107
114
public void testArduinoIDEExamplesOnTeensy3_6 () {
115
+ if (!Shared .getTeensyPlatform ().isEmpty ())
108
116
testExample (new GenericTeensyBoard ("teensy36" ));
109
117
}
110
118
111
119
@ Test
112
120
public void testArduinoIDEExamplesOnTeensy3_5 () {
121
+ if (!Shared .getTeensyPlatform ().isEmpty ())
113
122
testExample (new GenericTeensyBoard ("teensy35" ));
114
123
}
115
124
116
125
@ Test
117
126
public void testArduinoIDEExamplesOnTeensy3_1 () {
127
+ if (!Shared .getTeensyPlatform ().isEmpty ())
118
128
testExample (new GenericTeensyBoard ("teensy31" ));
119
129
}
120
130
121
131
@ Test
122
132
public void testArduinoIDEExamplesOnTeensy3_0 () {
133
+ if (!Shared .getTeensyPlatform ().isEmpty ())
123
134
testExample (new GenericTeensyBoard ("teensy30" ));
124
135
}
125
136
126
137
@ Test
127
138
public void testArduinoIDEExamplesOnTeensyLC () {
139
+ if (!Shared .getTeensyPlatform ().isEmpty ())
128
140
testExample (new GenericTeensyBoard ("teensyLC" ));
129
141
}
130
142
131
143
@ Test
132
144
public void testArduinoIDEExamplesOnTeensyPP2 () {
145
+ if (!Shared .getTeensyPlatform ().isEmpty ())
133
146
testExample (new GenericTeensyBoard ("teensypp2" ));
134
147
}
135
148
136
149
@ Test
137
150
public void testArduinoIDEExamplesOnTeensy2 () {
138
- testExample (new GenericTeensyBoard ("teensy2" ));
151
+ if (!Shared .getTeensyPlatform ().isEmpty ())
152
+ testExample (new GenericTeensyBoard ("teensy2" ));
139
153
140
154
}
141
155
0 commit comments