You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TEST_APPS/readme.md
+20-11Lines changed: 20 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,12 @@
3
3
### Structure
4
4
5
5
Mbed OS has a folder called `TEST_APPS` that contains everything related to Icetea testing.
6
-
There are currently 3 folders:
7
6
8
-
-`device` - contains all the different test applications you can flash to your board
9
-
-`icetea_plugins` - contains plugins that are being used by some of the testcases, needed for the test execution
10
-
-`testcases` - contains Icetea testcases written in Python
7
+
There are currently three folders:
8
+
9
+
-`device` - contains all the different test applications you can flash to your board.
10
+
-`icetea_plugins` - contains plugins that are being used by some of the testcases, needed for the test execution.
11
+
-`testcases` - contains Icetea testcases written in Python.
11
12
12
13
The testcases depend on test applications.
13
14
@@ -19,15 +20,17 @@ You need Icetea and version 1.8.0 or higher of Mbed CLI installed.
19
20
20
21
#### Selecting the network interface to use
21
22
22
-
Depending on the device, there might be a default network interface type defined in `mbed-os/targets/targets.json`, which is used to locate a default test-config file.
23
-
If default network interface type is not defined, or you want to use a different interface than the default, you need to provide a test-config file to the mbed test with `--test-config` option.
23
+
Depending on the device, there might be a default network interface type defined in `mbed-os/targets/targets.json`, which you can use to locate a default test-config file.
24
+
25
+
If the default network interface type is not defined or you want to use a different interface than the default, you need to provide a test-config file to the mbed test with `--test-config` option.
24
26
25
27
The test-config file contains the necessary information for the test application. There are some test-config files located under `mbed-os/tools/test_configs`.
26
-
Devices which have their network drivers residing inside mbed-os can use generic test_configs like `HeapBlockDeviceAndEthernetInterface.json` and `HeapBlockDeviceAndWifiInterface.json`. Otherwise you need to use a device specific test-config.
28
+
29
+
Devices that have their network drivers residing inside `mbed-os` can use generic `test_configs`, such as `HeapBlockDeviceAndEthernetInterface.json` and `HeapBlockDeviceAndWifiInterface.json`. Otherwise, you need to use a device-specific test-config.
27
30
28
31
### Running the tests
29
32
30
-
Now that the interface has been selected you can run the icetea tests from the mbed-os root on your commandline by running the following command:
33
+
Now that you have selected the interface, you can run the Icetea tests from the `mbed-os` root on your command-line by running the following command:
31
34
32
35
`mbed test -m <target> -t <toolchain> --icetea`
33
36
@@ -40,20 +43,25 @@ If you only want to run some specific tests, you can use the `-n` option. You ca
40
43
#### Running the tests with a specific test-config
41
44
42
45
Some devices may offer multiple network interfaces to operate with. For example, `UBLOX_EVK_ODIN_W2` offers ethernet and Wi-Fi capabilities.
46
+
43
47
The tests can be run for either one of those using already existing test-config -files.
44
48
45
49
To run the tests with the Wi-Fi interface:
50
+
46
51
`mbed test -m UBLOX_EVK_ODIN_W2 -t <toolchain> --icetea --test-config tools/test_configs/HeapBlockDeviceAndWifiInterface.json`
47
52
48
53
To run the tests with the ethernet interface:
54
+
49
55
`mbed test -m UBLOX_EVK_ODIN_W2 -t <toolchain> --icetea --test-config tools/test_configs/HeapBlockDeviceAndEthernetInterface.json`
50
56
51
57
#### Providing Wi-Fi access point information
52
58
53
59
If you are using the Wi-Fi interface for running the tests, you need to also provide information about the used access point.
60
+
54
61
The information can be provided in the used test-config file.
55
62
56
63
Example of access point information:
64
+
57
65
```
58
66
"target_overrides": {
59
67
"*": {
@@ -67,7 +75,7 @@ Example of access point information:
67
75
68
76
### Test results
69
77
70
-
Icetea prints the results from the test run to the commandline, and the final result looks similar to this.
78
+
Icetea prints the results from the test run to the command-line, and the final result looks similar to this:
0 commit comments