1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#### BornAgain tests
All tests are under CTest control.
We usually run them with the command
```
ctest -j<n>
```
where `<n>` is the number of CPU cores to be used in parallel.
## How to debug
To find out how CTest is running a specific test, use
```
ctest -V -N -R <test_name>
```
The answer typically looks like
```
<build>/bin/<test_binary> --gtest_filter=<test_name>" <minor_options>
```
So we start the debugger with
```
gdb <build>/bin/<test_binary>
run --gtest_filter=<test_name>
```
|