Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CTest's --test-dir argument #519

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:

- run: cmake -B build -S . -DBUILD_EXAMPLES=ON ${{ matrix.cmake-args }}
- run: cmake --build build --config RelWithDebInfo --parallel $(nproc)
- run: ctest -C RelWithDebInfo --output-on-failure
working-directory: build
- run: ctest --test-dir build -C RelWithDebInfo --output-on-failure
- run: cmake --install build --config RelWithDebInfo --prefix pkg

- uses: actions/upload-artifact@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ jobs:

- run: cmake -B build -S . ${{ matrix.cmake-flags }} -DBUILD_EXAMPLES=ON
- run: cmake --build build --target all --config RelWithDebInfo --parallel $(nproc)
- run: ${{ matrix.ctest-env }} ctest -C RelWithDebInfo --output-on-failure
working-directory: build
- run: ${{ matrix.ctest-env }} ctest --test-dir build -C RelWithDebInfo --output-on-failure
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ cmake -B build -S .
cmake --build build

# Test
cd build
ctest
cd ..
ctest --test-dir build --output-on-failure

# Install
cmake --install build --prefix pkgdir
Expand Down
Loading