build: add option for running tests

cmake configuration for running tests is now in the
tests folder.

Add option in main cmake file that has to be set to
ON and only build the tests in that case.

Update appveyor and travis ci configurations accordingly.
This commit is contained in:
Petra Baranski
2023-07-23 06:04:29 +02:00
parent 6dd47f5de5
commit 87ec259c28
7 changed files with 44 additions and 34 deletions

View File

@@ -15,7 +15,7 @@ It is tested to work on:
* Linux (gcc)
* OSX (clang)
* Windows (Visual Studio 2017)
* Windows (Visual Studio 2017, mingw)
## Dependencies
@@ -63,10 +63,9 @@ Open your preferred terminal and type:
```shell
git clone https://github.com/progsource/maddy.git
cd maddy
git submodule update --init --recursive
mkdir tmp
cd tmp
cmake ..
cmake -DMADDY_ENABLED_TESTS=ON ..
make
make test # or run the executable in ../build/MaddyTests
```