Skip to content

Commit 83fdd13

Browse files
juhaylinenSeppo Takalo
authored andcommitted
Update Greentea test configuration files
Add .json files for WicedInterface and SpwfSAInterface Add target configurations for MTB_UBLOX_ODIN_W2 MTB_ADV_WISE_1530 MTB_USI_WM_BN_BM_22 MTB_MXCHIP_EMW3166 NUCLEO_F401RE
1 parent 38b8865 commit 83fdd13

File tree

7 files changed

+102
-7
lines changed

7 files changed

+102
-7
lines changed

tools/test_configs/ESP8266Interface.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"value" : "new ESP8266Interface( D1, D0, false )"
99
},
1010
"connect-statement" : {
11-
"help" : "Must use 'net' variable name, replace WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY, WIFI_CHANNEL with your WiFi settings",
12-
"value" : "((ESP8266Interface *)net)->connect(WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY, WIFI_CHANNEL)"
11+
"help" : "Must use 'net' variable name, replace WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY with your WiFi settings",
12+
"value" : "((ESP8266Interface *)net)->connect(WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY)"
1313
},
1414
"echo-server-addr" : {
1515
"help" : "IP address of echo server",

tools/test_configs/OdinInterface.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
},
1414
"echo-server-addr" : {
1515
"help" : "IP address of echo server",
16-
"value" : "\"dragon.u-blox.com\""
16+
"value" : "\"echo.mbedcloudtesting.com\""
1717
},
1818
"echo-server-port" : {
1919
"help" : "Port of echo server",
2020
"value" : "7"
2121
},
2222
"tcp-echo-prefix" : {
2323
"help" : "Some servers send a prefix before echoed message",
24-
"value" : "\"u-blox AG TCP/UDP test service\\n\""
24+
"value" : null
2525
},
2626
"sim-blockdevice": {
2727
"help": "Simulated block device, requires sufficient heap",

tools/test_configs/Odin_EthernetInterface.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
},
1414
"echo-server-addr" : {
1515
"help" : "IP address of echo server",
16-
"value" : "\"dragon.u-blox.com\""
16+
"value" : "\"echo.mbedcloudtesting.com\""
1717
},
1818
"echo-server-port" : {
1919
"help" : "Port of echo server",
2020
"value" : "7"
2121
},
2222
"tcp-echo-prefix" : {
2323
"help" : "Some servers send a prefix before echoed message",
24-
"value" : "\"u-blox AG TCP/UDP test service\\n\""
24+
"value" : null
2525
},
2626
"sim-blockdevice": {
2727
"help": "Simulated block device, requires sufficient heap",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"config": {
3+
"header-file": {
4+
"help" : "String for including your driver header file",
5+
"value" : "\"SpwfSAInterface.h\""
6+
},
7+
"object-construction" : {
8+
"value" : "new SpwfSAInterface( D8, D2 )"
9+
},
10+
"connect-statement" : {
11+
"help" : "Must use 'net' variable name, replace WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY with your WiFi settings",
12+
"value" : "((SpwfSAInterface *)net)->connect(WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY)"
13+
},
14+
"echo-server-addr" : {
15+
"help" : "IP address of echo server",
16+
"value" : "\"echo.mbedcloudtesting.com\""
17+
},
18+
"echo-server-port" : {
19+
"help" : "Port of echo server",
20+
"value" : "7"
21+
},
22+
"tcp-echo-prefix" : {
23+
"help" : "Some servers send a prefix before echoed message",
24+
"value" : null
25+
}
26+
}
27+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"config": {
3+
"header-file": {
4+
"help" : "String for including your driver header file",
5+
"value" : "\"WicedInterface.h\""
6+
},
7+
"object-construction" : {
8+
"value" : "new WicedInterface()"
9+
},
10+
"connect-statement" : {
11+
"help" : "Must use 'net' variable name, replace WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY with your WiFi settings",
12+
"value" : "((WicedInterface *)net)->connect(WIFI_SSID, WIFI_PASSWORD, WIFI_SECURITY)"
13+
},
14+
"echo-server-addr" : {
15+
"help" : "IP address of echo server",
16+
"value" : "\"echo.mbedcloudtesting.com\""
17+
},
18+
"echo-server-port" : {
19+
"help" : "Port of echo server",
20+
"value" : "7"
21+
},
22+
"tcp-echo-prefix" : {
23+
"help" : "Some servers send a prefix before echoed message",
24+
"value" : null
25+
},
26+
"sim-blockdevice": {
27+
"help": "Simulated block device, requires sufficient heap",
28+
"macro_name": "MBED_TEST_SIM_BLOCKDEVICE",
29+
"value": "HeapBlockDevice"
30+
}
31+
},
32+
"target_overrides": {
33+
"MTB_ADV_WISE_1530": {
34+
"target.extra_labels_add": ["WICED"],
35+
"target.features_add": ["BLE", "LWIP"]
36+
},
37+
"MTB_USI_WM_BN_BM_22": {
38+
"target.extra_labels_add": ["WICED"],
39+
"target.features_add": ["BLE", "LWIP"]
40+
},
41+
"MTB_MXCHIP_EMW3166": {
42+
"target.extra_labels_add": ["WICED"],
43+
"target.features_add": ["LWIP"]
44+
}
45+
}
46+
}

tools/test_configs/config_paths.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
"ODIN_WIFI" : "OdinInterface.json",
66
"ODIN_ETHERNET" : "Odin_EthernetInterface.json",
77
"REALTEK_WIFI" : "RealtekInterface.json",
8-
"ESP8266_WIFI" : "ESP8266Interface.json"
8+
"ESP8266_WIFI" : "ESP8266Interface.json",
9+
"WICED_WIFI" : "WicedInterface.json",
10+
"IDW0XX1_WIFI" : "SpwfSAInterface.json"
911
}

tools/test_configs/target_configs.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,25 @@
1414
"NUCLEO_F429ZI": {
1515
"default_test_configuration": "HEAPBLOCKDEVICE_AND_ETHERNET",
1616
"test_configurations": ["HEAPBLOCKDEVICE_AND_ETHERNET"]
17+
},
18+
"MTB_UBLOX_ODIN_W2": {
19+
"default_test_configuration": "NONE",
20+
"test_configurations": ["ODIN_WIFI"]
21+
},
22+
"MTB_ADV_WISE_1530": {
23+
"default_test_configuration": "NONE",
24+
"test_configurations": ["WICED_WIFI"]
25+
},
26+
"MTB_USI_WM_BN_BM_22": {
27+
"default_test_configuration": "NONE",
28+
"test_configurations": ["WICED_WIFI"]
29+
},
30+
"MTB_MXCHIP_EMW3166": {
31+
"default_test_configuration": "NONE",
32+
"test_configurations": ["WICED_WIFI"]
33+
},
34+
"NUCLEO_F401RE": {
35+
"default_test_configuration": "NONE",
36+
"test_configurations": ["IDW0XX1_WIFI"]
1737
}
1838
}

0 commit comments

Comments
 (0)