added ENABLE_TESTS flag to documentation

This commit is contained in:
Leonard Iklé committed 2021-09-27 10:59:55 +02:00
1 parent 3583a61007
commit 6a7c37d41b
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -9,3 +9,4 @@ builddir
.vs
.vscode
docs/_site
docs/.jekyll-cache
+5 -1
View File
@@ -34,8 +34,12 @@ cmake ..
make
```
# Running Tests
After building **cwalk** you can run tests to ensure everything is fine. In order to do that, make sure that you are in the build folder and then execute the test program:
In order to run tests, cwalk needs to be built with tests enabled. There is a ``ENABLE_TESTS`` flag for that. It can be passed to the cmake command like this:
```
cmake .. -DENABLE_TESTS=1
```
After building **cwalk** you can run tests to ensure everything is fine. In order to do that, make sure that you are in the build folder and then execute the test program:
```bash
./cwalktest
```