mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-21 21:06:11 +01:00
Simplify instructions by not changing directories for the ctest command
This commit is contained in:
parent
bc63412e2a
commit
77eca4e819
@ -107,8 +107,7 @@ cmake -B debug-build -S . -DCMAKE_BUILD_TYPE=Debug --preset all-tests
|
|||||||
cmake --build debug-build
|
cmake --build debug-build
|
||||||
|
|
||||||
# 4. Run the tests using CTest
|
# 4. Run the tests using CTest
|
||||||
cd debug-build
|
ctest -j 4 --output-on-failure -C Debug --test-dir debug-build
|
||||||
ctest -j 4 --output-on-failure -C Debug
|
|
||||||
```
|
```
|
||||||
<sup><a href='/tools/scripts/buildAndTest.sh#L6-L19' title='File snippet `catch2-build-and-test` was extracted from'>snippet source</a> | <a href='#snippet-catch2-build-and-test' title='Navigate to start of snippet `catch2-build-and-test`'>anchor</a></sup>
|
<sup><a href='/tools/scripts/buildAndTest.sh#L6-L19' title='File snippet `catch2-build-and-test` was extracted from'>snippet source</a> | <a href='#snippet-catch2-build-and-test' title='Navigate to start of snippet `catch2-build-and-test`'>anchor</a></sup>
|
||||||
<!-- endSnippet -->
|
<!-- endSnippet -->
|
||||||
|
@ -12,6 +12,5 @@ rem 3. Run the actual build
|
|||||||
cmake --build debug-build
|
cmake --build debug-build
|
||||||
|
|
||||||
rem 4. Run the tests using CTest
|
rem 4. Run the tests using CTest
|
||||||
cd debug-build
|
ctest -j 4 --output-on-failure -C Debug --test-dir debug-build
|
||||||
ctest -j 4 --output-on-failure -C Debug
|
|
||||||
rem end-snippet
|
rem end-snippet
|
||||||
|
@ -14,6 +14,5 @@ cmake -B debug-build -S . -DCMAKE_BUILD_TYPE=Debug --preset all-tests
|
|||||||
cmake --build debug-build
|
cmake --build debug-build
|
||||||
|
|
||||||
# 4. Run the tests using CTest
|
# 4. Run the tests using CTest
|
||||||
cd debug-build
|
ctest -j 4 --output-on-failure -C Debug --test-dir debug-build
|
||||||
ctest -j 4 --output-on-failure -C Debug
|
|
||||||
# end-snippet
|
# end-snippet
|
||||||
|
Loading…
Reference in New Issue
Block a user