summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-10-19 18:15:05 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-10-19 18:15:30 +0200
commitef5e1e308bf4ebeef6270bb729ccdca4e4bd08bd (patch)
tree83cbe2f72c28d5d3e65d7de2aa71b98cc690ca80
parentf55257afcef9eb64212c3ec97bfb1d8fa9dfb873 (diff)
downloadcmocka-ef5e1e308bf4ebeef6270bb729ccdca4e4bd08bd.tar.gz
cmocka-ef5e1e308bf4ebeef6270bb729ccdca4e4bd08bd.tar.bz2
cmocka-ef5e1e308bf4ebeef6270bb729ccdca4e4bd08bd.zip
INSTALL: Add Testing section
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--INSTALL22
1 files changed, 22 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index ad661ac..8b438d5 100644
--- a/INSTALL
+++ b/INSTALL
@@ -71,6 +71,28 @@ The cmocka library can be found in the `build/src` directory.
You can run the binaries in `build/examples/*` which is a
are exsample tests.
+## Testing
+
+As mention above you can turn on the unit tests and make it possible to easily
+execute them:
+
+`cmake -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=ON ..`
+
+After that you can simply call `make test` in the build directory or if you
+want more output simply call `ctest -V`.
+
+If you want to enable the generation of coverage files you can do this by
+using the following options:
+
+`cmake -DCMAKE_BUILD_TYPE=Profiling -DUNIT_TESTING=ON ..`
+
+After building it you will see that you have several coverage options in
+
+`make help`
+
+You should have `make ExperimentalCoverage` and running it will create
+coverage files. The result is stored in Testing directory.
+
## About this document
This document is written using [Markdown][] syntax, making it possible to