@@ -50,18 +50,22 @@ func TestHardwareLoading(t *testing.T) {
50
50
jsonOut .MustContain (`[
51
51
{
52
52
"id": "arduino:avr",
53
- "installed": "1.8.6",
54
- "name": "Arduino AVR Boards",
55
- "boards": [
56
- {
57
- "name": "Arduino Uno",
58
- "fqbn": "arduino:avr:uno"
59
- },
60
- {
61
- "name": "Arduino Yún",
62
- "fqbn": "arduino:avr:yun"
53
+ "installed_version": "1.8.6",
54
+ "releases": {
55
+ "1.8.6": {
56
+ "name": "Arduino AVR Boards",
57
+ "boards": [
58
+ {
59
+ "name": "Arduino Uno",
60
+ "fqbn": "arduino:avr:uno"
61
+ },
62
+ {
63
+ "name": "Arduino Yún",
64
+ "fqbn": "arduino:avr:yun"
65
+ }
66
+ ]
63
67
}
64
- ]
68
+ }
65
69
}
66
70
]` )
67
71
}
@@ -90,7 +94,7 @@ func TestHardwareLoading(t *testing.T) {
90
94
"id": "avrispmkii",
91
95
"name": "AVRISP mkII"
92
96
}
93
- ]
97
+ ]
94
98
}` )
95
99
}
96
100
@@ -159,33 +163,41 @@ func TestHardwareLoading(t *testing.T) {
159
163
jsonOut .MustContain (`[
160
164
{
161
165
"id": "arduino:avr",
162
- "installed": "1.8.6",
163
- "name": "Arduino AVR Boards",
164
- "boards": [
165
- {
166
- "name": "Arduino Uno",
167
- "fqbn": "arduino:avr:uno"
168
- },
169
- {
170
- "name": "Arduino Yún",
171
- "fqbn": "arduino:avr:yun"
166
+ "installed_version": "1.8.6",
167
+ "releases": {
168
+ "1.8.6": {
169
+ "name": "Arduino AVR Boards",
170
+ "boards": [
171
+ {
172
+ "name": "Arduino Uno",
173
+ "fqbn": "arduino:avr:uno"
174
+ },
175
+ {
176
+ "name": "Arduino Yún",
177
+ "fqbn": "arduino:avr:yun"
178
+ }
179
+ ]
172
180
}
173
- ]
181
+ }
174
182
}
175
183
]` )
176
184
jsonOut .MustContain (`[
177
185
{
178
186
"id": "my_avr_platform:avr",
179
- "installed": "9.9.9",
180
- "name": "My AVR Boards",
181
- "boards": [
182
- {
183
- "name": "Arduino Yún",
184
- "fqbn": "my_avr_platform:avr:custom_yun"
187
+ "installed_version": "9.9.9",
188
+ "releases": {
189
+ "9.9.9": {
190
+ "name": "My AVR Boards",
191
+ "missing_metadata": true,
192
+ "boards": [
193
+ {
194
+ "name": "Arduino Yún",
195
+ "fqbn": "my_avr_platform:avr:custom_yun"
196
+ }
197
+ ]
185
198
}
186
- ],
187
- "manually_installed": true,
188
- "missing_metadata": true
199
+ },
200
+ "manually_installed": true
189
201
}
190
202
]` )
191
203
@@ -196,7 +208,11 @@ func TestHardwareLoading(t *testing.T) {
196
208
{
197
209
"id": "my_symlinked_avr_platform:avr",
198
210
"manually_installed": true,
199
- "missing_metadata": true
211
+ "releases": {
212
+ "9.9.9": {
213
+ "missing_metadata": true
214
+ }
215
+ }
200
216
}
201
217
]` )
202
218
}
@@ -226,7 +242,7 @@ func TestHardwareLoading(t *testing.T) {
226
242
"id": "avrispmkii",
227
243
"name": "AVRISP mkII"
228
244
}
229
- ]
245
+ ]
230
246
}` )
231
247
}
232
248
0 commit comments