This repository was archived by the owner on Jun 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Testing examples
2
+
3
+ Examples are tested using tool [ htrun] ( https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-host-tests ) and templated print log.
4
+
5
+ To run the test, use following command after you build the example:
6
+ ```
7
+ mbedhtrun -d D: -p COM4 -m K64F -f .\BUILD\K64F\GCC_ARM\tls-socket.bin --compare-log tests\tls-socket.log
8
+ ```
9
+
10
+
11
+ More details about ` htrun ` are [ here] ( https://github.com/ARMmbed/htrun#testing-mbed-os-examples ) .
12
+
Original file line number Diff line number Diff line change
1
+ TLSSocket Example.
2
+ Mbed OS version:
3
+
4
+ Connecting to network
5
+ \[DBG \]\[TLSW\]: mbedtls_ssl_conf_ca_chain\(\)
6
+ Connecting to ifconfig.io
7
+ \[INFO\]\[TLSW\]: Starting TLS handshake with ifconfig.io
8
+ \[DBG \]\[TLSW\]: mbedtls_ssl_setup\(\)
9
+ \[INFO\]\[TLSW\]: TLS connection to ifconfig.io established
10
+ \[DBG \]\[TLSW\]: Server certificate:
11
+ cert. version : \d
12
+ serial number : ([0-9A-F]{2}:)+[0-9A-F]{2}
13
+ issuer name : C=GB, ST=Greater Manchester, L=Salford,
14
+ subject name : OU=Domain Control Validated, OU=PositiveSSL
15
+ issued on :
16
+ expires on :
17
+ signed using : ECDSA with SHA256
18
+ EC key size : 256 bits
19
+ basic constraints : CA=false
20
+ subject alt name :
21
+ \[INFO\]\[TLSW\]: Certificate verification passed
22
+ \[DBG \]\[TLSW\]: send \d+
23
+ HTTP\/\d.\d \d+ OK
24
+ Date:
25
+ Content-Type: text\/html; charset=utf-8
26
+ Transfer-Encoding: chunked
27
+ Connection: close
28
+ Set-Cookie:
29
+ Expect-CT: max-age=\d+, report-uri="https:\/\/report-uri.cloudflare.com
30
+ Server: cloudflare
31
+ CF-RAY:
32
+
33
+ <html>
34
+
35
+ <\/html>
36
+
37
+ \[INFO\]\[TLSW\]: Closing TLS
38
+ \[DBG \]\[TLSW\]: mbedtls_ssl_conf_ca_chain\(\)
39
+ Done
You can’t perform that action at this time.
0 commit comments