... | ... | @@ -16,8 +16,8 @@ to a dashboard server. This is what is handled in this tutorial. |
|
|
In the second mode, CTest runs a script (using the same syntax as
|
|
|
`CMakeLists.txt`) to control the whole process of checking out /
|
|
|
updating source code, configuring and building the project, and running
|
|
|
the tests. This is handled in [CMake Scripting Of
|
|
|
CTest](doc/ctest/Scripting-Of-CTest "wikilink").
|
|
|
the tests. This is handled in
|
|
|
[CMake Scripting Of CTest](doc/ctest/Scripting-Of-CTest "wikilink").
|
|
|
|
|
|
## Simple Testing
|
|
|
|
... | ... | @@ -27,10 +27,9 @@ enable_testing() |
|
|
```
|
|
|
|
|
|
This adds another build target, which is `test` for Makefile generators,
|
|
|
or `RUN_TESTS` for integrated development environments (like Visual
|
|
|
Studio).
|
|
|
or `RUN_TESTS` for integrated development environments (like Visual Studio).
|
|
|
|
|
|
From that point on, you can use the `ADD_TEST` command to add tests to
|
|
|
From that point on, you can use the `add_test` command to add tests to
|
|
|
the project:
|
|
|
```cmake
|
|
|
add_test(testname Exename arg1 arg2 ...)
|
... | ... | |