mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-02 13:25:41 +02:00
Simplify instructions by not changing directories for the ctest command
This commit is contained in:

committed by
Martin Hořeňovský

parent
bc63412e2a
commit
77eca4e819
@@ -12,6 +12,5 @@ rem 3. Run the actual build
|
||||
cmake --build debug-build
|
||||
|
||||
rem 4. Run the tests using CTest
|
||||
cd debug-build
|
||||
ctest -j 4 --output-on-failure -C Debug
|
||||
ctest -j 4 --output-on-failure -C Debug --test-dir debug-build
|
||||
rem end-snippet
|
||||
|
@@ -14,6 +14,5 @@ cmake -B debug-build -S . -DCMAKE_BUILD_TYPE=Debug --preset all-tests
|
||||
cmake --build debug-build
|
||||
|
||||
# 4. Run the tests using CTest
|
||||
cd debug-build
|
||||
ctest -j 4 --output-on-failure -C Debug
|
||||
ctest -j 4 --output-on-failure -C Debug --test-dir debug-build
|
||||
# end-snippet
|
||||
|
Reference in New Issue
Block a user