|
6 | 6 |
|
7 | 7 | <!-- vim-markdown-toc GFM --> |
8 | 8 |
|
9 | | -- [CMake and CTest tips for AliceO2](#cmake-and-ctest-tips-for-aliceo2) |
10 | | - - [CMake](#cmake) |
11 | | - - [Instructions for contributors (aka developers' documentation)](#instructions-for-contributors-aka-developers-documentation) |
12 | | - - [Typical CMakeLists.txt](#typical-cmakeliststxt) |
13 | | - - [Examples](#examples) |
14 | | - - [Ex1 Adding a basic library](#ex1-adding-a-basic-library) |
15 | | - - [Ex2 Adding a basic library with a Root dictionary](#ex2-adding-a-basic-library-with-a-root-dictionary) |
16 | | - - [Ex3 Adding an executable](#ex3-adding-an-executable) |
17 | | - - [Ex4 Adding a couple of tests](#ex4-adding-a-couple-of-tests) |
18 | | - - [Ex5 Adding a man page](#ex5-adding-a-man-page) |
19 | | - - [CTest](#ctest) |
20 | | - - [Selecting/excluding by test name (-R/-E)](#selectingexcluding-by-test-name--r-e) |
21 | | - - [Selecting/excluding by label (-L/-LE)](#selectingexcluding-by-label--l-le) |
22 | | - - [Speeding up ctest execution](#speeding-up-ctest-execution) |
| 9 | +* [CMake and CTest tips for AliceO2](#cmake-and-ctest-tips-for-aliceo2) |
| 10 | + * [CMake](#cmake) |
| 11 | + * [Instructions for contributors (aka developers' documentation)](#instructions-for-contributors-aka-developers-documentation) |
| 12 | + * [Typical CMakeLists.txt](#typical-cmakeliststxt) |
| 13 | + * [Examples](#examples) |
| 14 | + * [Ex1 Adding a basic library](#ex1-adding-a-basic-library) |
| 15 | + * [Ex2 Adding a basic library with a Root dictionary](#ex2-adding-a-basic-library-with-a-root-dictionary) |
| 16 | + * [Ex3 Adding an executable](#ex3-adding-an-executable) |
| 17 | + * [Ex4 Adding a couple of tests](#ex4-adding-a-couple-of-tests) |
| 18 | + * [Ex5 Adding a man page](#ex5-adding-a-man-page) |
| 19 | + * [CTest](#ctest) |
| 20 | + * [Selecting/excluding by test name (-R/-E)](#selectingexcluding-by-test-name--r-e) |
| 21 | + * [Selecting/excluding by label (-L/-LE)](#selectingexcluding-by-label--l-le) |
| 22 | + * [Speeding up ctest execution](#speeding-up-ctest-execution) |
23 | 23 |
|
24 | 24 | <!-- vim-markdown-toc --> |
25 | 25 |
|
@@ -340,6 +340,15 @@ Tests can also be _excluded_ based on label (`-LE`) or name (`-RE`). |
340 | 340 | dummy = 0.07 sec*proc (1 test) |
341 | 341 | fast = 0.07 sec*proc (1 test) |
342 | 342 |
|
| 343 | +Note as well that some (very few) tests are ran only for some configurations |
| 344 | +(aka build types). Those tests are _not_ ran automatically when using the bare |
| 345 | +`ctest` command. One has to explicitely specify the build type for those, e.g. |
| 346 | +: |
| 347 | + |
| 348 | +``` |
| 349 | +ctest -C RelWithDebInfo |
| 350 | +``` |
| 351 | + |
343 | 352 | #### [Ex5](../Examples/Ex5) Adding a man page |
344 | 353 |
|
345 | 354 | If a module provides one or more executables, it might be of interest for the users of those executables to have access to a man page for them. Ex5 illustates that use case. |
|
0 commit comments