-
Notifications
You must be signed in to change notification settings - Fork 4
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
#349: use docker images from DARMA-tasking/workflows
#377
base: develop
Are you sure you want to change the base?
Conversation
444500e
to
645e1f0
Compare
59f8fa3
to
a4a4d44
Compare
a4a4d44
to
42c2ff9
Compare
42c2ff9
to
2fcf7c5
Compare
2fcf7c5
to
bf4c83c
Compare
Use images from the `workflows` repository and remove redundant docker code in `magistrate`.
bf4c83c
to
a81d7e7
Compare
a81d7e7
to
12aa10e
Compare
FetchContent_Declare( | ||
googletest | ||
DOWNLOAD_EXTRACT_TIMESTAMP FALSE | ||
URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping 1.12.1
version here. Upgrade can be handled separately in #367.
if (magistrate_tests_enabled | ||
AND "${CMAKE_PROJECT_NAME}" STREQUAL "${PROJECT_NAME}") | ||
# CTest implies enable_testing() and defines the BUILD_TESTING option. | ||
# The default of BUILD_TESTING is ON. | ||
# Testing is only enabled if the actual project being built is VT. | ||
# Testing is only enabled if the actual project being built is magistrate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition seems strong enough to remove MAGISTRATE_HAS_GTEST
and DISABLE_TPL_GTEST
check.
@@ -2,6 +2,23 @@ | |||
set(PROJECT_TEST_UNIT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/unit) | |||
set(PROJECT_TEST_MPI_UNIT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/unit/tests_mpi) | |||
|
|||
find_package(GTest) | |||
if (NOT GTest_FOUND) | |||
include(FetchContent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use CMake's FetchContent
instead of pre-installing GTest in Docker image.
This makes it possible to update GTest version independently in various DARMA projects.
137aaf5
to
14c038f
Compare
699c49b
to
5343692
Compare
3a305ad
to
8411e9a
Compare
8411e9a
to
bf0a188
Compare
46077fe
to
e136cce
Compare
e136cce
to
b7aa32a
Compare
DARMA-tasking/workflows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
fixes #349
DARMA-tasking/workflows
repositoryDARMA-tasking/workflows
)