Previous: How do I add a new test?, Up: Unit tests


2.1.4 How do I run the tests?

To run the tests, you first need to enable testing in your build directory. To do this, do something like:

     cd marsyas
     mkdir build-with-tests
     cd build-with-tests
     ccmake ../src

Then type “t” to see the advanced options and turn on the “BUILD_TESTS” option.

The tests will then be automatically built if you then compile Marsyas:

     make -j3