Skip to content

Commit 2f6f066

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
EXAMPLES: update examples.json file
- remove "mbed" and "test-repo-source" key - add "sub-repo-example" key as an indicator if an example has sub examples - add "subs" key to sotre sub examples names
1 parent f317753 commit 2f6f066

File tree

1 file changed

+70
-82
lines changed

1 file changed

+70
-82
lines changed

tools/test/examples/examples.json

Lines changed: 70 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
{
44
"name": "mbed-os-example-blinky",
55
"github": "https://github.com/ARMmbed/mbed-os-example-blinky",
6-
"mbed": [
7-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky"
8-
],
9-
"test-repo-source": "github",
6+
"sub-repo-example": false,
7+
"subs": [],
108
"features" : [],
119
"targets" : [],
1210
"toolchains" : [],
@@ -21,10 +19,8 @@
2119
{
2220
"name": "mbed-os-example-blinky-baremetal",
2321
"github": "https://github.com/ARMmbed/mbed-os-example-blinky-baremetal",
24-
"mbed": [
25-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky-baremetal"
26-
],
27-
"test-repo-source": "github",
22+
"sub-repo-example": false,
23+
"subs": [],
2824
"features" : [],
2925
"targets" : ["K66F", "NUCLEO_F429ZI", "ARCH_PRO", "LPC1768"],
3026
"toolchains" : [],
@@ -37,13 +33,13 @@
3733
{
3834
"name": "mbed-os-example-tls",
3935
"github": "https://github.com/ARMmbed/mbed-os-example-tls",
40-
"mbed": [
41-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-benchmark",
42-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-tls-client",
43-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-hashing",
44-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-tls-authcrypt"
36+
"sub-repo-example": true,
37+
"subs": [
38+
"benchmark",
39+
"tls-client",
40+
"hashing",
41+
"authcrypt"
4542
],
46-
"test-repo-source": "mbed",
4743
"features" : [],
4844
"targets" : ["K66F", "NUCLEO_F429ZI"],
4945
"toolchains" : ["GCC_ARM", "ARM"],
@@ -63,17 +59,17 @@
6359
{
6460
"name": "mbed-os-example-ble",
6561
"github":"https://github.com/ARMmbed/mbed-os-example-ble",
66-
"mbed": [
67-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-Beacon",
68-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-HeartRate",
69-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-Thermometer",
70-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-LEDBlinker",
71-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-LED",
72-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-GAPButton",
73-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-Button",
74-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-BatteryLevel"
62+
"sub-repo-example": true,
63+
"subs": [
64+
"BLE_Beacon",
65+
"BLE_HeartRate",
66+
"BLE_Thermometer",
67+
"BLE_LEDBlinker",
68+
"BLE_LED",
69+
"BLE_GAPButton",
70+
"BLE_Button",
71+
"BLE_BatteryLevel"
7572
],
76-
"test-repo-source": "mbed",
7773
"features" : ["BLE"],
7874
"targets" : ["NRF51_DK", "NRF52_DK", "K66F", "NUCLEO_F401RE"],
7975
"toolchains" : [],
@@ -86,9 +82,8 @@
8682
{
8783
"name": "mbed-os-example-sockets",
8884
"github":"https://github.com/ARMmbed/mbed-os-example-sockets",
89-
"mbed": [
90-
],
91-
"test-repo-source": "github",
85+
"sub-repo-example": false,
86+
"subs": [],
9287
"features" : [],
9388
"targets" : ["K66F", "NUCLEO_F429ZI", "NUMAKER_PFM_NUC472", "FVP_MPS2_M3"],
9489
"toolchains" : [],
@@ -103,9 +98,8 @@
10398
{
10499
"name": "mbed-os-example-tls-socket",
105100
"github":"https://github.com/ARMmbed/mbed-os-example-tls-socket",
106-
"mbed": [
107-
],
108-
"test-repo-source": "github",
101+
"sub-repo-example": false,
102+
"subs": [],
109103
"features" : [],
110104
"targets" : ["K64F", "DISCO_F746NG"],
111105
"toolchains" : [],
@@ -120,9 +114,8 @@
120114
{
121115
"name": "mbed-os-example-wifi",
122116
"github":"https://github.com/ARMmbed/mbed-os-example-wifi",
123-
"mbed": [
124-
],
125-
"test-repo-source": "github",
117+
"sub-repo-example": false,
118+
"subs": [],
126119
"features" : [],
127120
"targets" : [],
128121
"toolchains" : [],
@@ -135,8 +128,8 @@
135128
{
136129
"name": "nanostack-border-router",
137130
"github":"https://github.com/ARMmbed/nanostack-border-router",
138-
"mbed": [],
139-
"test-repo-source": "github",
131+
"sub-repo-example": false,
132+
"subs": [],
140133
"features" : [],
141134
"targets" : ["K66F", "NUCLEO_F429ZI"],
142135
"toolchains" : [],
@@ -149,8 +142,8 @@
149142
{
150143
"name": "mbed-os-example-cellular",
151144
"github":"https://github.com/ARMmbed/mbed-os-example-cellular",
152-
"mbed": [],
153-
"test-repo-source": "github",
145+
"sub-repo-example": false,
146+
"subs": [],
154147
"features" : [],
155148
"targets" : ["MTS_DRAGONFLY_F411RE"],
156149
"toolchains" : [],
@@ -163,8 +156,8 @@
163156
{
164157
"name": "mbed-os-example-lorawan",
165158
"github":"https://github.com/ARMmbed/mbed-os-example-lorawan",
166-
"mbed": [],
167-
"test-repo-source": "github",
159+
"sub-repo-example": false,
160+
"subs": [],
168161
"features" : [],
169162
"targets" : ["DISCO_L072CZ_LRWAN1", "MTB_MTS_XDOT", "MTS_MDOT_F411RE"],
170163
"toolchains" : [],
@@ -177,8 +170,8 @@
177170
{
178171
"name": "mbed-os-example-nvstore",
179172
"github":"https://github.com/ARMmbed/mbed-os-example-nvstore",
180-
"mbed": [],
181-
"test-repo-source": "github",
173+
"sub-repo-example": false,
174+
"subs": [],
182175
"features" : [],
183176
"targets" : ["K66F", "FVP_MPS2_M3"],
184177
"toolchains" : [],
@@ -193,8 +186,8 @@
193186
{
194187
"name": "mbed-os-example-devicekey",
195188
"github":"https://github.com/ARMmbed/mbed-os-example-devicekey",
196-
"mbed": [],
197-
"test-repo-source": "github",
189+
"sub-repo-example": false,
190+
"subs": [],
198191
"features" : [],
199192
"targets" : ["K66F"],
200193
"toolchains" : [],
@@ -209,8 +202,8 @@
209202
{
210203
"name": "mbed-os-example-thread-statistics",
211204
"github":"https://github.com/ARMmbed/mbed-os-example-thread-statistics",
212-
"mbed": [],
213-
"test-repo-source": "github",
205+
"sub-repo-example": false,
206+
"subs": [],
214207
"features" : [],
215208
"targets" : ["K66F", "FVP_MPS2_M3"],
216209
"toolchains" : [],
@@ -225,8 +218,8 @@
225218
{
226219
"name": "mbed-os-example-sys-info",
227220
"github":"https://github.com/ARMmbed/mbed-os-example-sys-info",
228-
"mbed": [],
229-
"test-repo-source": "github",
221+
"sub-repo-example": false,
222+
"subs": [],
230223
"features" : [],
231224
"targets" : ["K64F", "FVP_MPS2_M3"],
232225
"toolchains" : [],
@@ -241,8 +234,8 @@
241234
{
242235
"name": "mbed-os-example-cpu-usage",
243236
"github":"https://github.com/ARMmbed/mbed-os-example-cpu-usage",
244-
"mbed": [],
245-
"test-repo-source": "github",
237+
"sub-repo-example": false,
238+
"subs": [],
246239
"features" : [],
247240
"targets" : ["K66F", "FVP_MPS2_M3"],
248241
"toolchains" : [],
@@ -257,8 +250,8 @@
257250
{
258251
"name": "mbed-os-example-cpu-stats",
259252
"github":"https://github.com/ARMmbed/mbed-os-example-cpu-stats",
260-
"mbed": [],
261-
"test-repo-source": "github",
253+
"sub-repo-example": false,
254+
"subs": [],
262255
"features" : [],
263256
"targets" : ["K64F", "FVP_MPS2_M3"],
264257
"toolchains" : [],
@@ -273,8 +266,8 @@
273266
{
274267
"name": "mbed-os-example-socket-stats",
275268
"github":"https://github.com/ARMmbed/mbed-os-example-socket-stats",
276-
"mbed": [],
277-
"test-repo-source": "github",
269+
"sub-repo-example": false,
270+
"subs": [],
278271
"features" : [],
279272
"targets" : ["K66F"],
280273
"toolchains" : [],
@@ -289,8 +282,8 @@
289282
{
290283
"name": "mbed-os-example-error-handling",
291284
"github":"https://github.com/ARMmbed/mbed-os-example-error-handling",
292-
"mbed": [],
293-
"test-repo-source": "github",
285+
"sub-repo-example": false,
286+
"subs": [],
294287
"features" : [],
295288
"targets" : ["K64F", "FVP_MPS2_M3"],
296289
"toolchains" : [],
@@ -305,10 +298,8 @@
305298
{
306299
"name": "mbed-os-example-filesystem",
307300
"github":"https://github.com/ARMmbed/mbed-os-example-filesystem",
308-
"mbed": [
309-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-filesystem"
310-
],
311-
"test-repo-source": "github",
301+
"sub-repo-example": false,
302+
"subs": [],
312303
"features" : [],
313304
"targets" : ["K64F","K82F"],
314305
"toolchains" : [],
@@ -323,10 +314,8 @@
323314
{
324315
"name": "mbed-os-example-mesh-minimal",
325316
"github":"https://github.com/ARMmbed/mbed-os-example-mesh-minimal",
326-
"mbed": [
327-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-mesh-minimal"
328-
],
329-
"test-repo-source": "github",
317+
"sub-repo-example": false,
318+
"subs": [],
330319
"features" : [],
331320
"targets" : ["DISCO_F469NI", "DISCO_F746NG", "K66F",
332321
"NUCLEO_F429ZI", "NUCLEO_F439ZI", "NUCLEO_F746ZG",
@@ -342,10 +331,8 @@
342331
{
343332
"name": "mbed-os-example-bootloader",
344333
"github":"https://github.com/ARMmbed/mbed-os-example-bootloader",
345-
"mbed": [
346-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-bootloader"
347-
],
348-
"test-repo-source": "github",
334+
"sub-repo-example": false,
335+
"subs": [],
349336
"features" : [],
350337
"targets" : ["K64F", "NUCLEO_F429ZI", "UBLOX_EVK_ODIN_W2"],
351338
"toolchains" : [],
@@ -358,8 +345,8 @@
358345
{
359346
"name": "mbed-os-example-mbed-crypto",
360347
"github":"https://github.com/ARMmbed/mbed-os-example-mbed-crypto",
361-
"mbed": [],
362-
"test-repo-source": "github",
348+
"sub-repo-example": true,
349+
"subs": ["getting-started"],
363350
"features" : [],
364351
"targets" : ["K64F"],
365352
"toolchains" : [],
@@ -374,10 +361,11 @@
374361
{
375362
"name": "mbed-os-example-nfc",
376363
"github": "https://github.com/ARMmbed/mbed-os-example-nfc",
377-
"mbed": [
378-
"https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-nfc-SmartPoster"
364+
"sub-repo-example": true,
365+
"subs": [
366+
"NFC_EEPROM",
367+
"NFC_SmartPoster"
379368
],
380-
"test-repo-source": "mbed",
381369
"features" : [],
382370
"targets" : ["NUCLEO_F401RE", "DISCO_L475VG_IOT01A"],
383371
"toolchains" : [],
@@ -390,8 +378,8 @@
390378
{
391379
"name": "mbed-os-example-blockdevice",
392380
"github":"https://github.com/armmbed/mbed-os-example-blockdevice",
393-
"mbed": [],
394-
"test-repo-source": "github",
381+
"sub-repo-example": false,
382+
"subs": [],
395383
"features" : [],
396384
"targets" : ["K64F"],
397385
"toolchains" : [],
@@ -406,8 +394,8 @@
406394
{
407395
"name": "mbed-os-example-kvstore",
408396
"github":"https://github.com/ARMmbed/mbed-os-example-kvstore",
409-
"mbed": [],
410-
"test-repo-source": "github",
397+
"sub-repo-example": false,
398+
"subs": [],
411399
"features" : [],
412400
"targets" : ["K64F", "FVP_MPS2_M3"],
413401
"toolchains" : [],
@@ -422,8 +410,8 @@
422410
{
423411
"name": "mbed-os-example-crash-reporting",
424412
"github":"https://github.com/ARMmbed/mbed-os-example-crash-reporting",
425-
"mbed": [],
426-
"test-repo-source": "github",
413+
"sub-repo-example": false,
414+
"subs": [],
427415
"features" : [],
428416
"targets" : ["K64F", "DISCO_L475VG_IOT01A"],
429417
"toolchains" : [],
@@ -438,8 +426,8 @@
438426
{
439427
"name": "mbed-os-example-sd-driver",
440428
"github":"https://github.com/ARMmbed/mbed-os-example-sd-driver",
441-
"mbed": [],
442-
"test-repo-source": "github",
429+
"sub-repo-example": false,
430+
"subs": [],
443431
"features" : [],
444432
"targets" : ["K64F"],
445433
"toolchains" : [],
@@ -454,8 +442,8 @@
454442
{
455443
"name": "mbed-os-example-attestation",
456444
"github": "https://github.com/ARMmbed/mbed-os-example-attestation",
457-
"mbed": [],
458-
"test-repo-source": "github",
445+
"sub-repo-example": false,
446+
"subs": [],
459447
"features" : [],
460448
"targets" : ["CY8CKIT_062_WIFI_BT_PSA",
461449
"K64F",

0 commit comments

Comments
 (0)