Skip to content
Snippets Groups Projects
Commit 714d6e9e authored by Sébastien Blin's avatar Sébastien Blin
Browse files

add build instructions for tests in README.md


Change-Id: I23bcb3c481d56e16373c2b4b017d94ca50293737
Reviewed-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent ddc8524f
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ To install the appplication, type the following commands in a console, while in ...@@ -23,7 +23,7 @@ To install the appplication, type the following commands in a console, while in
-DCMAKE_INSTALL_PREFIX=<install location> -DCMAKE_INSTALL_PREFIX=<install location>
-DCMAKE_BUILD_TYPE=<Debug to compile with debug symbols> -DCMAKE_BUILD_TYPE=<Debug to compile with debug symbols>
-DENABLE_VIDEO=<False to disable video support> -DENABLE_VIDEO=<False to disable video support>
make -j3 make -jx # where x is the number of core you have
make install make install
Explanation Explanation
...@@ -65,6 +65,28 @@ make install ...@@ -65,6 +65,28 @@ make install
You can now link and build the OSX client with Ring daemon and LRC library You can now link and build the OSX client with Ring daemon and LRC library
Testing
=======
Tests are written in the `test` directory.
To run tests, you need to rebuild the application with these commands (from the root directory of the project):
mkdir -p build-test
cd build-test
cmake .. -DENABLE_TEST=true
The following options are often usefull to append to the cmake line:
-DRING_BUILD_DIR=<daemon install location>
-DRING_XML_INTERFACES_DIR=<daemon dbus interface definitions directory>
-DCMAKE_INSTALL_PREFIX=<install location>
-DCMAKE_BUILD_TYPE=<Debug to compile with debug symbols>
-DENABLE_VIDEO=<False to disable video support>
make -jx # where x is the number of core you have
make test # or ./LRCTester for more verbosity.
In the `test` directory you can also find a `mocks` folder used to simulate the ring daemon.
`CppUnit` is the testing library used for this project.
Internationalization Internationalization
==================== ====================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment