Davide Gerhard
0e5049c08a
cmake: implements tests using CTest suite
...
the new tests are implemented with CTest suite of CMake.
To enable the tests you need to run cmake with -DBUILD_TESTING=ON
There are optional tests (that might not work) that can be enabled with
-DOPTIONAL_TEST=ON
So, to enable all tests and run it use the following command
mkdir build
cmake -DBUILD_TESTING=ON -DOPTIONA_TEST=ON ..
make
ctest
to debug the errors use
ctest --debug
You can always find all tests binary on build/test/
Implementation:
- check-modem* tests are implemented with shell script because it
requires to execute many commands and therefore will be easy to
manage. The file is configured at configuration time.
- for single binary we verify the exit status (default = 0) so you
only need to build the binary and add it to add_test()
2019-11-09 08:26:37 +01:00
..
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:37 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:07 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:37 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:07 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:08 +01:00
2019-11-09 08:26:37 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00
2019-11-09 08:26:01 +01:00