... | ... | @@ -19,10 +19,10 @@ pages or the CTest manual ( |
|
|
|
|
|
A set of file is needed to form a complete system.
|
|
|
|
|
|
- [steer.cmake](#steer.cmake "wikilink")
|
|
|
- [CTestConfig.cmake](#CTestConfig.cmake "wikilink")
|
|
|
- [CTestCustom.cmake](#CTestCustom.cmake "wikilink")
|
|
|
- [CTestTestfile.cmake](#CTestTestfile.cmake "wikilink")
|
|
|
- [steer.cmake](#steercmake "wikilink")
|
|
|
- [CTestConfig.cmake](#ctestconfigcmake "wikilink")
|
|
|
- [CTestCustom.cmake](#ctestcustomcmake "wikilink")
|
|
|
- [CTestTestfile.cmake](#ctesttestfilecmake "wikilink")
|
|
|
|
|
|
## steer.cmake
|
|
|
|
... | ... | @@ -129,9 +129,9 @@ have to be specified. Both are executed in the binary |
|
|
#### Configure CTest
|
|
|
|
|
|
If the CTest configuration files
|
|
|
[CTestConfig.cmake](#CTestConfig.cmake "wikilink"),
|
|
|
[CTestCustom.cmake](#CTestCustom.cmake "wikilink") and
|
|
|
[CTestTestfile.cmake](#CTestTestfile.cmake "wikilink") should or can not
|
|
|
[CTestConfig.cmake](#ctestconfigcmake "wikilink"),
|
|
|
[CTestCustom.cmake](#ctestcustomcmake "wikilink") and
|
|
|
[CTestTestfile.cmake](#ctesttestfilecmake "wikilink") should or can not
|
|
|
be stored in the repository itself, then they can be copied there
|
|
|
automatically by
|
|
|
CTest.
|
... | ... | @@ -225,7 +225,7 @@ written into a log file. |
|
|
ctest_test( BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
|
|
|
|
|
|
Invokes all tests, defined in
|
|
|
[CTestTestfile.cmake](#CTestTestfile.cmake "wikilink")
|
|
|
[CTestTestfile.cmake](#ctesttestfilecmake "wikilink")
|
|
|
|
|
|
#### Finialize the submission
|
|
|
|
... | ... | @@ -235,7 +235,7 @@ After the all build steps, the results have to be submitted to CDash |
|
|
ctest_submit( RETURN_VALUE res)
|
|
|
|
|
|
This uses the settings of
|
|
|
[CTestConfig.cmake](#CTestConfig.cmake "wikilink").
|
|
|
[CTestConfig.cmake](#ctestconfigcmake "wikilink").
|
|
|
|
|
|
#### Complete Example
|
|
|
|
... | ... | @@ -411,7 +411,7 @@ project. |
|
|
|
|
|
This file is used to customize CTest. A detailed description of all
|
|
|
options, can be found
|
|
|
[here](doc/ctest/Testing-With-CTest#Customizing_CTest "wikilink"). In order
|
|
|
[here](doc/ctest/Testing-With-CTest#customizing-ctest "wikilink"). In order
|
|
|
to be read in properly this file has to be placed in the binary
|
|
|
directory
|
|
|
<span style="font-family:monospace;font-weight:bold;">${CTEST_BINARY_DIRECTORY}</span>.
|
... | ... | @@ -424,7 +424,7 @@ It can also be read from any other location by specifying |
|
|
|
|
|
This are only some examples of customization. The full list and detailed
|
|
|
description can be found
|
|
|
[here](doc/ctest/Testing-With-CTest#Customizing_CTest "wikilink").
|
|
|
[here](doc/ctest/Testing-With-CTest#customizing-ctest "wikilink").
|
|
|
|
|
|
- Change the maximum numbers of warnings
|
|
|
|
... | ... | |