@@ -275,8 +275,8 @@ func TestBoardDetails(t *testing.T) {
275
275
276
276
_ , _ , err := cli .Run ("core" , "update-index" )
277
277
require .NoError (t , err )
278
- // Download samd core pinned to 1.8.6
279
- _ ,
_ ,
err = cli .
Run (
"core" ,
"install" ,
"arduino:[email protected] .6 " )
278
+ // Download samd core pinned to 1.8.13
279
+ _ ,
_ ,
err = cli .
Run (
"core" ,
"install" ,
"arduino:[email protected] .13 " )
280
280
require .NoError (t , err )
281
281
282
282
// Test board listall with and without showing hidden elements
@@ -298,70 +298,73 @@ func TestBoardDetails(t *testing.T) {
298
298
require .NoError (t , err )
299
299
300
300
requirejson .Contains (t , stdout , `{
301
- "fqbn": "arduino:samd:nano_33_iot",
302
- "name": "Arduino NANO 33 IoT",
303
- "version": "1.8.6 ",
304
- "properties_id": "nano_33_iot",
305
- "official": true,
306
- "package": {
307
- "maintainer": "Arduino",
308
- "url": "https://downloads.arduino.cc/packages/package_index.tar.bz2",
309
- "website_url": "http://www.arduino.cc/",
310
-
311
- "name": "arduino",
312
- "help": {
313
- "online": "http://www.arduino.cc/en/Reference/HomePage"
314
- }
315
- },
316
- "platform": {
317
- "architecture": "samd",
318
- "category": "Arduino",
319
- "url": "http://downloads.arduino.cc/cores/samd-1.8.6 .tar.bz2",
320
- "archive_filename": "samd-1.8.6 .tar.bz2",
321
- "checksum": "SHA-256:68a4fffa6fe6aa7886aab2e69dff7d3f94c02935bbbeb42de37f692d7daf823b ",
322
- "size": 2980953 ,
301
+ "fqbn": "arduino:samd:nano_33_iot",
302
+ "name": "Arduino NANO 33 IoT",
303
+ "version": "1.8.13 ",
304
+ "properties_id": "nano_33_iot",
305
+ "official": true,
306
+ "package": {
307
+ "maintainer": "Arduino",
308
+ "url": "https://downloads.arduino.cc/packages/package_index.tar.bz2",
309
+ "website_url": "http://www.arduino.cc/",
310
+
311
+ "name": "arduino",
312
+ "help": {
313
+ "online": "http://www.arduino.cc/en/Reference/HomePage"
314
+ }
315
+ },
316
+ "platform": {
317
+ "architecture": "samd",
318
+ "category": "Arduino",
319
+ "url": "http://downloads.arduino.cc/cores/core-ArduinoCore- samd-1.8.13 .tar.bz2",
320
+ "archive_filename": "core-ArduinoCore- samd-1.8.13 .tar.bz2",
321
+ "checksum": "SHA-256:47d44c80a5fd4ea224eb64fd676169e896caa6856f338d78feb4a12d42b4ea67 ",
322
+ "size": 3074191 ,
323
323
"name": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)"
324
- },
325
- "identification_properties ": [
324
+ },
325
+ "programmers ": [
326
326
{
327
- "properties": {
328
- "vid": "0x2341",
329
- "pid": "0x8057"
330
- }
327
+ "platform": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
328
+ "id": "jlink",
329
+ "name": "Segger J-Link"
331
330
},
332
331
{
333
- "properties": {
334
- "vid": "0x2341",
335
- "pid": "0x0057"
336
- }
332
+ "platform": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
333
+ "id": "edbg",
334
+ "name": "Atmel EDBG"
335
+ },
336
+ {
337
+ "platform": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
338
+ "id": "atmel_ice",
339
+ "name": "Atmel-ICE"
340
+ },
341
+ {
342
+ "platform": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
343
+ "id": "sam_ice",
344
+ "name": "Atmel SAM-ICE"
337
345
}
338
- ],
339
- "programmers": [
340
- {
341
- "platform": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
342
- "id": "edbg",
343
- "name": "Atmel EDBG"
346
+ ],
347
+ "debugging_supported": true,
348
+ "identification_properties": [
349
+ {
350
+ "properties": {
351
+ "pid": "0x8057",
352
+ "vid": "0x2341"
353
+ }
344
354
},
345
355
{
346
- "platform": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
347
- "id": "atmel_ice",
348
- "name": "Atmel-ICE"
356
+ "properties": {
357
+ "pid": "0x0057",
358
+ "vid": "0x2341"
359
+ }
349
360
},
350
361
{
351
- "platform ": "Arduino SAMD Boards (32-bits ARM Cortex-M0+)",
352
- "id ": "sam_ice",
353
- "name": "Atmel SAM-ICE"
362
+ "properties ": {
363
+ "board ": "nano_33_iot"
364
+ }
354
365
}
355
- ]
356
- }` )
357
-
358
- // Download samd core pinned to 1.8.8
359
- _ ,
_ ,
err = cli .
Run (
"core" ,
"install" ,
"arduino:[email protected] " )
360
- require .NoError (t , err )
361
-
362
- stdout , _ , err = cli .Run ("board" , "details" , "-b" , "arduino:samd:nano_33_iot" , "--format" , "json" )
363
- require .NoError (t , err )
364
- requirejson .Contains (t , stdout , `{"debugging_supported": true}` )
366
+ ]
367
+ }` )
365
368
}
366
369
367
370
func TestBoardDetailsNoFlags (t * testing.T ) {
0 commit comments