Skip to content

Clarify test configuration in Socket/Networking test document #8060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions TESTS/netsocket/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,16 @@ content at minimum:

```
{
"config": {
"echo-server-addr" : {
"help" : "IP address of echo server",
"value" : "\"echo.mbedcloudtesting.com\""
},
"echo-server-port" : {
"help" : "Port of echo server",
"value" : "7"
}
},
"macros": ["MBED_EXTENDED_TESTS"]
}
```
Expand All @@ -257,7 +267,7 @@ the `mbed_app.json` might look like this:
"value": "\"password\""
},
"wifi-secure-protocol": {
"help": "WiFi security protocol, valid values are WEP, WPA, WPA2, WPA/WPA2",
"help": "WiFi security protocol, valid values are WEP, WPA, WPA2, WPA_WPA2",
"value": "\"WPA2\""
},
"wifi-ch-secure": {
Expand All @@ -280,17 +290,6 @@ the `mbed_app.json` might look like this:
"help": "How many networks may appear in Wifi scan result",
"value": 30
},
"header-file": {
"help" : "String for including your driver header file",
"value" : "\"MyWifiInterface.h\""
},
"object-construction" : {
"value" : "new MyWifiInterface()"
},
"connect-statement" : {
"help" : "Must use 'net' variable name",
"value" : "net->wifiInterface()->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA_WPA2)"
},
"echo-server-addr" : {
"help" : "IP address of echo server",
"value" : "\"echo.mbedcloudtesting.com\""
Expand All @@ -300,9 +299,18 @@ the `mbed_app.json` might look like this:
"value" : "7"
}
},
"macros": ["MBED_EXTENDED_TESTS"]
"macros": ["MBED_EXTENDED_TESTS"],
"target_overrides": {
"*": {
"target.network-default-interface-type": "WIFI",
"nsapi.default-wifi-ssid": "\"WIFI_SSID\"",
"nsapi.default-wifi-password": "\"WIFI_PASSWORD\"",
"nsapi.default-wifi-security": "WPA_WPA2"
}
}
}
```
See `mbed-os/tools/test_configs` folder for examples.

Now build test binaries:

Expand Down