Skip to content

Commit 3a255b3

Browse files
committed
added README
1 parent feaec3e commit 3a255b3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

extras/test/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Unit test for the Arduino_RPClite library
2+
3+
This directory contains unit-tests that can run locally on PC.
4+
The transport is mocked, no external hardware is required to run the tests.
5+
6+
### Running the test
7+
8+
Prerequisites:
9+
10+
* `cmake`
11+
* A working C++ compiler.
12+
13+
From a terminal, change directory to this folder, and run:
14+
15+
```
16+
mkdir build
17+
cd build
18+
cmake ..
19+
make
20+
```
21+
22+
it should compile the test and output the executable binary in `build/bin/test-Arduino_RPClite`.
23+
24+
The output should look similar to the following:
25+
26+
```
27+
$ bin/test-Arduino_RPClite
28+
===============================================================================
29+
All tests passed (91 assertions in 1 test case)
30+
```

0 commit comments

Comments
 (0)