mbed-os-examples
/
mbed-os-example-mbed5-sys-info
Example to get the System Information from Mbed OS
Revision 21:96984dd5a1f7, committed 2019-05-13
- Comitter:
- mbed_official
- Date:
- Mon May 13 19:02:13 2019 +0100
- Parent:
- 20:7c0a1d08dca1
- Child:
- 22:4e7a8b210f06
- Commit message:
- Merge pull request #30 from jamesbeyond/test
Add log test for sys info example
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-sys-info
Changed in this revision
--- a/mbed_app.json Mon Feb 25 21:27:49 2019 +0000 +++ b/mbed_app.json Mon May 13 19:02:13 2019 +0100 @@ -1,3 +1,8 @@ { - "macros": ["MBED_SYS_STATS_ENABLED"] + "macros": ["MBED_SYS_STATS_ENABLED"], + "target_overrides": { + "*": { + "platform.stdio-convert-newlines": 1 + } + } }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/README.md Mon May 13 19:02:13 2019 +0100 @@ -0,0 +1,12 @@ +# Testing examples + +Examples are tested using tool [htrun](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-host-tests) and templated print log. + +To run the test, use following command after you build the example: +``` +mbedhtrun -d D: -p COM4 -m K64F -f .\BUILD\K64F\GCC_ARM\sys-info.bin --compare-log tests\sys-info.log +``` + + +More details about `htrun` are [here](https://github.com/ARMmbed/htrun#testing-mbed-os-examples). +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/sys-info.log Mon May 13 19:02:13 2019 +0100 @@ -0,0 +1,4 @@ +Mbed OS Version: +CPU ID: 0x[0-9a-fA-F]+ +Compiler ID: \d+ +Compiler Version: \d+ \ No newline at end of file