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
The development of htrun has been moved into the [mbed-os-tools](../../src/mbed_os_tools) package. You can continue to use this module for legacy reasons, however all further development should be continued in the new package.
Change the directory to the `mbed-os-tools/legacy/mbed-host-tests` directory:
192
196
```
193
-
$ cd htrun
197
+
$ cd mbed-os-tools/legacy/mbed-host-tests
194
198
```
195
199
196
200
Now you are ready to install `htrun`:
@@ -220,7 +224,7 @@ Options:
220
224
mbed's test suite (codenamed ```Greentea```) supports the *test supervisor* concept. This concept is realized by this module. ```mbed-host-tests``` is a collection of host tests. Host test is script written in Python, which is executed in parallel with the test suite runner (a binary running on the target hardware / device under test) to monitor the test execution's progress or to control the test flow (interaction with the mbed device under test - DUT). The host test is also responsible for grabbing the test result, or deducing it from the test runner's behavior.
221
225
222
226
Key-value protocol was developed and is used to provide communication layer between DUT (device under test) and host computer. Key-value protocol defined host computer as master and DUT as slave.
223
-
* Slave side APIs and key-value protocol implementation is encapsulated in [greentea-client](https://github.com/ARMmbed/greentea-client) module.
227
+
* Slave side APIs and key-value protocol implementation is encapsulated in [greentea-client](https://github.com/ARMmbed/mbed-os/tree/master/features/frameworks/greentea-client) module.
224
228
* Master side APIs and key-value protocol is encapsulated in ```mbed-host-tests```.
225
229
226
230
```mbed-host-tests``` responsibilities are:
@@ -1041,7 +1045,7 @@ The SARA NBIOT EVK board must be connected to a Windows PC using a Segger JLink
1041
1045
1042
1046
# Testing mbed-os examples
1043
1047
1044
-
mbed-os examples are essentially sample apps written as inspirational code for developers to understand the mbed-os APIs and coding paradigms. Before every mbed-os release all examples are tested across all supported configs and platforms. There is already a large set examples available and as they grow it is important to automate them. Hence automating examples make sense. Although it is important not to pollute them with test like instrumentation. As that will defeat the purpose of examples being simple and specific.
1048
+
mbed-os examples are essentially sample apps written as inspirational code for developers to understand the mbed-os APIs and coding paradigms. Before every mbed-os release all examples are tested across all supported configs and platforms. There is already a large set examples available and as they grow it is important to automate them. Hence automating examples make sense. Although it is important not to pollute them with test like instrumentation. As that will defeat the purpose of examples being simple and specific.
1045
1049
1046
1050
Hence the strategy for testing examples is based on observation instead of interaction. An example's serial logging is captured and converted into a templated log. All successive executions of this example should match this log.
1047
1051
@@ -1050,87 +1054,87 @@ Templated log simply means a log with text that does not change or regular expre
1050
1054
```
1051
1055
1052
1056
> Using Ethernet LWIP
1053
-
1057
+
1054
1058
> Client IP Address is 10.2.203.139
1055
-
1059
+
1056
1060
> Connecting with developer.mbed.org
1057
-
1061
+
1058
1062
Starting the TLS handshake... Starting the TLS handshake...
1059
-
1063
+
1060
1064
> TLS connection to developer.mbed.org established
1061
-
1065
+
1062
1066
Server certificate: Server certificate:
1063
-
1064
-
>
1067
+
1068
+
>
1065
1069
cert. version : 3
1066
-
>
1070
+
>
1067
1071
serial number : 11:21:B8:47:9B:21:6C:B1:C6:AF:BC:5D:0
1068
-
>
1072
+
>
1069
1073
issuer name : C=BE, O=GlobalSign nv-sa, CN=GlobalSi
1070
-
>
1074
+
>
1071
1075
subject name : C=GB, ST=Cambridgeshire, L=Cambridge,
1072
-
>
1076
+
>
1073
1077
issued on : 2016-03-03 12:26:08
1074
-
>
1078
+
>
1075
1079
expires on : 2017-04-05 10:31:02
1076
-
>
1080
+
>
1077
1081
signed using : RSA with SHA-256
1078
-
>
1082
+
>
1079
1083
RSA key size : 2048 bits
1080
-
>
1084
+
>
1081
1085
basic constraints : CA=false
1082
-
>
1086
+
>
1083
1087
subject alt name : *.mbed.com, mbed.org, *.mbed.org, mbe
1084
-
>
1088
+
>
1085
1089
key usage : Digital Signature, Key Encipherment
1086
-
>
1090
+
>
1087
1091
ext key usage : TLS Web Server Authentication, TLS We
In case an application requires more time to process data and generate results, you can use the option ```--polling-timeout``` to override the default timeout setting.
1209
1213
1210
1214
A tested comparison log can be checked into GitHub with the examples and can be used in the CI for example verification.
0 commit comments