</ol>
In order to achieve the first two, configure the library with
<pre>
- cmake -DCMAKE_BUILD_TYPE=Debug -DDEAL_II_SETUP_COVERAGE=YES <...>
+ cmake -DCMAKE_BUILD_TYPE=Debug -DDEAL_II_SETUP_COVERAGE=ON <...>
</pre>
You can then build the library and run the tests as usual.
</p>
</pre>
when running the testsuite, or directly by
<pre>
- ctest <...> -S ../tests/run_coverage.cmake
+ ctest <...> -S ../tests/run_coverage.cmake
</pre>
</p>
- A string that is appended to CTEST_BUILD_NAME
COVERAGE
- - If set to TRUE deal.II will be configured with
- DEAL_II_SETUP_COVERAGE=TRUE, CMAKE_BUILD_TYPE=Debug and the
+ - If set to ON deal.II will be configured with
+ DEAL_II_SETUP_COVERAGE=ON, CMAKE_BUILD_TYPE=Debug and the
CTEST_COVERAGE() stage will be run. Test results must go into the
"Experimental" section.
(but before the corresponding cached variables).
<li>
- Disable the configuration completely by setting
- <code>DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS</code> to
- <code>OFF</code>. Beware of the fact that certain features
+ Disable the configuration completely by adding the flag
+ <code>-D DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS=OFF</code>.
+ Beware of the fact that certain features
may still pull in necessary compiler flags.
<li>
You can setup additional debug compiler flags to provide test
- coverage information by setting
- <code>DEAL_II_SETUP_COVERAGE</code> to <code>ON</code>.
+ coverage information by adding the flag
+ <code>-D DEAL_II_SETUP_COVERAGE=ON</code>.
</ol>
</p>