Skip to content

Commit

Permalink
Removed CMake self-test. Added running tests through CMake in GHA CI.
Browse files Browse the repository at this point in the history
Running tests via CMake should be enough of a verification that the
library CMakeLists.txt is correct. It also verifies that test/CMakeLists.txt
is correct.
  • Loading branch information
Lastique committed Nov 28, 2023
1 parent be2d47e commit fb6607c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 50 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -487,17 +487,20 @@ jobs:
B2_ARGS+=("libs/$LIBRARY/test")
./b2 "${B2_ARGS[@]}"
- name: Run CMake tests
- name: Build CMake tests
if: matrix.cmake_tests
run: |
cd ../boost-root
mkdir __build_static__ && cd __build_static__
cmake ../libs/$LIBRARY/test/test_cmake
cmake --build . --target boost_${LIBRARY}_cmake_self_test -j $BUILD_JOBS
cd ..
mkdir __build_shared__ && cd __build_shared__
cmake -DBUILD_SHARED_LIBS=On ../libs/$LIBRARY/test/test_cmake
cmake --build . --target boost_${LIBRARY}_cmake_self_test -j $BUILD_JOBS
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON ..
cmake --build . --target tests -j $BUILD_JOBS
- name: Run CMake tests
if: matrix.cmake_tests
run: |
cd ../boost-root
cd __build_static__
ctest --output-on-failure --no-tests=error
windows:
strategy:
Expand Down
21 changes: 0 additions & 21 deletions test/test_cmake/CMakeLists.txt

This file was deleted.

22 changes: 0 additions & 22 deletions test/test_cmake/main.cpp

This file was deleted.

0 comments on commit fb6607c

Please sign in to comment.