Clone wiki

test_o_matic / Compilation

Compilation instructions

test-o-matic is small enough to be included directly in any project. #include test_o_matic.hpp where needed and compile and link against test_o_matic.cpp

The repository also includes some self-tests. If you just want to start writing tests, you can ignore these.

Compiling test-o-matic's self-tests

The recommended way to compile these is to use doozer. Download and prepare a config file. Then the following command line will build and run the tests:

python test_o_matic/ variant=<your-config>.cfg

If you want to compile the tests another way, it should be easy enough. Just do the usual thing with all the .cpp files and link them in to an executable.