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
+7 -2

No files matched your search

+2 -1
View File
@@ -8,4 +8,5 @@ build.win
builddir
.vs
.vscode
docs/_site
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
```