FS#263 Don't build executables on make test
Metadata
Description
The CMake way to do this is
make all
make test
where make all builds all executables, make test RUNS the tests.
Some Dune magic can be used to compile all tests on make test.
This has the disadvantage that all tests build also if only one test is desired to run (with ctest -R my_test). This only occurs when there are more than one test in the same directory.
The CMake way has advantages that get lost by contracting build and execution:
- In an automated build the compilation and execution can fail/pass separately
- One test can be build and executed if desired (make my_test, ctest -R my_test)