@@ -204,24 +204,20 @@ CI current build and test flows:
204
204
205
205
``` shell
206
206
# Configure build: default build production code + tests (BUILD_TESTING=ON by default).
207
- $ rm -rf .build/
208
- $ mkdir -p .build
209
- $ cd .build
210
- $ cmake -G " Ninja Multi-Config" -DCMAKE_CONFIGURATION_TYPES=" RelWithDebInfo;Asan" -DCMAKE_TOOLCHAIN_FILE=etc/clang-19-toolchain.cmake -B . -S ..
207
+ $ cmake -G " Ninja Multi-Config" -DCMAKE_CONFIGURATION_TYPES=" RelWithDebInfo;Asan" -DCMAKE_TOOLCHAIN_FILE=etc/clang-19-toolchain.cmake -B .build -S .
211
208
-- The CXX compiler identification is Clang 19.0.0
212
209
...
213
- -- Build files have been written to: /home/dariusn/git/Beman/Beman. Optional26/.build
210
+ -- Build files have been written to: /path/to/ Optional26/.build
214
211
215
212
# Build.
216
- $ cd ..
217
213
$ cmake --build .build --config Asan --target all -- -k 0
218
214
...
219
- [30/30] Linking CXX executable examples/Asan/sample
215
+ [30/30] Linking CXX executable ...
220
216
221
217
# Run tests.
222
- $ cd .build
223
- $ ctest --build-config Asan --output-on-failure
224
- Test project /home/dariusn/git/Beman/Beman. Optional26/.build
218
+ $ ctest --build-config Asan --output-on-failure --test-dir .build
219
+ Internal ctest changing into directory: /path/to/Optional26/.build
220
+ Test project /path/to/ Optional26/.build
225
221
...
226
222
100% tests passed, 0 tests failed out of 82
227
223
@@ -234,23 +230,19 @@ By default, we build and run tests. You can provide `-DBUILD_TESTING=OFF` and co
234
230
235
231
``` shell
236
232
# Configure build: build production code, skip tests (BUILD_TESTING=OFF).
237
- $ rm -rf .build/
238
- $ mkdir -p .build
239
- $ cd .build
240
- $ cmake -G " Ninja Multi-Config" -DCMAKE_CONFIGURATION_TYPES=" RelWithDebInfo;Asan" -DCMAKE_TOOLCHAIN_FILE=etc/clang-19-toolchain.cmake -DBUILD_TESTING=OFF -B . -S ..
233
+ $ cmake -G " Ninja Multi-Config" -DCMAKE_CONFIGURATION_TYPES=" RelWithDebInfo;Asan" -DCMAKE_TOOLCHAIN_FILE=etc/clang-19-toolchain.cmake -DBUILD_TESTING=OFF -B .build -S .
241
234
-- The CXX compiler identification is Clang 19.0.0
242
235
...
243
- -- Build files have been written to: /home/dariusn/git/Beman/Beman. Optional26/.build
236
+ -- Build files have been written to: /path/to/ Optional26/.build
244
237
245
238
# Build.
246
- $ cd ..
247
239
$ cmake --build .build --config Asan --target all -- -k 0
248
240
...
249
241
[15/15] Linking CXX executable examples/Asan/sample
250
242
251
243
# Check that tests are not built/installed.
252
- $ cd .build
253
- $ ctest --build-config Asan --output-on-failure
244
+ $ ctest --build-config Asan --output-on-failure --test-dir .build
245
+ Internal ctest changing into directory: /home/dariusn/git/Beman/Beman.Optional26/.build
254
246
Test project /home/dariusn/git/Beman/Beman.Optional26/.build
255
247
No tests were found!!!
256
248
```
0 commit comments