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

CMake: quick test fixes for CI #14586

Merged
merged 2 commits into from
Dec 20, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,14 @@ if(DEFINED DEAL_II_HAVE_TESTS_DIRECTORY)
COMMENT "Running quicktests..."
)

# Depend on the library target to ensure that deal.II is actually
# compiled, as well as on the setup_tests_quick_tests target to ensure
# Depend on the library targets (to ensure that deal.II is actually
# compiled), as well as on the setup_tests_quick_tests target to ensure
# that quick tests are actually available.
add_dependencies(test library)
add_dependencies(test setup_tests_quick_tests)
foreach(_build ${DEAL_II_BUILD_TYPES})
string(TOLOWER ${_build} _build_lowercase)
add_dependencies(test ${DEAL_II_NAMESPACE}_${_build_lowercase})
endforeach()

#
# Add a dummy target to make files known to IDEs like qtcreator
Expand Down
3 changes: 3 additions & 0 deletions tests/run_quick_tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ recent version or use a different MPI library like MPICH.\n"
)
endif()
endforeach()

# ensure that this script exits with a non-zero exit code
message(FATAL_ERROR "quick tests failed")
endif()