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

Call enable_testing() in top-level project #360

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
2 changes: 1 addition & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: |
ctest --build-config ${{ matrix.build_type }} --no-tests=error --output-on-failure --verbose --test-dir test/
ctest --build-config ${{ matrix.build_type }} --no-tests=error --output-on-failure --verbose

- name: Test Python Module Import
working-directory: ${{ steps.strings.outputs.build-output-dir }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cmake-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ jobs:
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target install

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}/test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: |
ctest --no-tests=error --output-on-failure --verbose
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,6 @@ if (BUILD_EXAMPLES)
endif()

if(BUILD_TESTING)
enable_testing()
add_subdirectory(test)
endif()
2 changes: 0 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
enable_testing()

add_library(getline OBJECT getline.c)

add_executable(test_detection test_detection.c)
Expand Down
Loading