Skip to content
Snippets Groups Projects
Commit 57c61505 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

README: add more explicit instructions for testing

parent 4ab0460e
No related branches found
No related tags found
No related merge requests found
......@@ -136,9 +136,19 @@ For example usage see ```test/api_test.c```.
## Tests
During the development of this library cmocka unit testing was utilized. In total 28 unit tests are prepared, testing a varity of scenarios, with a focus on setters, these unit tests are furthermore tested with valgrind to ensure no memory leaks are present.
During the development of this library cmocka unit testing was used. In total 32 unit tests are prepared, testing a varity of scenarios, with a focus on setters. Additionally, these unit tests are tested with valgrind to ensure no memory leaks are present.
To run the tests perform the same steps as described under the build section and then run
To run the tests perform the same steps as described under the build section, but this time prepare the cmake build type for debugging (note that if you are building from the same instance you will need to remove ```CMakeCache.txt```):
```
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Debug
make
sudo make install
```
There should now be a test subdirectory under the build directory. Now run:
```
sudo make test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment