.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue Jun 18 16:01:49 2019 +0100
Parent:
30:6d3eb85016f2
Child:
32:decaa56b2fd0
Commit message:
fix the link for htrun

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-filesystem

Changed in this revision

tests/README.md Show annotated file Show diff for this revision Revisions of this file
tests/filesystem.log Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/README.md	Tue Jun 18 16:01:49 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\filesystem.bin --compare-log tests\filesystem.log
+```
+
+
+More details about `htrun` are [here](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-host-tests#testing-mbed-os-examples).
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/filesystem.log	Tue Jun 18 16:01:49 2019 +0100
@@ -0,0 +1,26 @@
+--- Mbed OS filesystem example ---
+Mounting the filesystem... OK
+Opening "\/fs\/numbers.txt"... OK
+Incrementing numbers \(10\/10\)... OK
+Closing "\/fs\/numbers.txt"... OK
+Opening the root directory... OK
+root directory:
+.
+..
+numbers.txt
+Closing the root directory... OK
+Opening "\/fs\/numbers.txt"... OK
+numbers:
+\d+
+\d+
+\d+
+\d+
+\d+
+\d+
+\d+
+\d+
+\d+
+\d+
+Closing "\/fs\/numbers.txt"... OK
+Unmounting... OK
+Mbed OS filesystem example done\!