Skip to content

Commit 6426309

Browse files
committed
Add note on running tests in parallel
1 parent 95c9962 commit 6426309

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

05_testing_and_ci/boost_testing_precice_demo.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ Look around preCICE in the terminal + text editor.
4949
## CMake
5050

5151
- Look at `cmake/CTestConfig.cmake`: Complicated, but more things tested than only UTF (search for `add_test`)
52+
53+
## CTest in Parallel
54+
55+
- Build preCICE and run tests via `ctest -j 16`, runs tests in parallel, automatic feature of CTest

05_testing_and_ci/boost_testing_sidemade_demo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Repository: [testing boost exercise – demo-start branch](https://github.com/Si
5050
target_link_libraries(testsidemade PRIVATE Boost::unit_test_framework)
5151
add_test(NAME "MatrixSolverTests" COMMAND ${CMAKE_CURRENT_BINARY_DIR}/testsidemade)
5252
```
53+
54+
- `add_test` can work with anything that returns an exit code. Does not have to be a fancy testing framework.
5355
5456
- Reconfigure CMake, build, run via ...
5557
- `./testsidemade`

0 commit comments

Comments
 (0)