Skip to content

Commit 184103a

Browse files
authored
Merge pull request #4939 from bangerth/test-wb
Come up with a better format to indicate that a test requires the WorldBuilder.
2 parents c255f0a + ac9be09 commit 184103a

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

tests/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,21 @@ ENDFUNCTION()
9797

9898
# Analyze the .prm to decide if this test should be run or not. We are
9999
# checking for the following strings in the .prm:
100-
# 1. "WORLD BUILDER" - only run with World Builder.
101-
# 2. "QUICK_TEST" - enable the test even if RUN_ALL_TESTS is false
100+
# 1. "Enable if: ASPECT_WITH_WORLD_BUILDER" - only run with World Builder.
101+
# 2. "Enable if: QUICK_TEST" - enable the test even if RUN_ALL_TESTS is false
102102
FUNCTION(SHOULD_ENABLE_TEST _filename)
103103

104104
FILE(STRINGS ${_filename} _input_lines
105-
REGEX "WORLD BUILDER")
105+
REGEX "Enable if: ASPECT_WITH_WORLD_BUILDER")
106106
IF(NOT "${_input_lines}" STREQUAL "")
107-
IF (${_input_lines} MATCHES "WORLD BUILDER" AND NOT ASPECT_WITH_WORLD_BUILDER)
107+
IF (${_input_lines} MATCHES "Enable if: ASPECT_WITH_WORLD_BUILDER"
108+
AND NOT ASPECT_WITH_WORLD_BUILDER)
108109
SET(_use_test OFF PARENT_SCOPE)
109110
ENDIF()
110111
ENDIF()
111112

112113
FILE(STRINGS ${_filename} _input_lines
113-
REGEX "QUICK_TEST")
114+
REGEX "Enable if: QUICK_TEST")
114115
IF(NOT ASPECT_RUN_ALL_TESTS AND "${_input_lines}" STREQUAL "")
115116
SET(_use_test OFF PARENT_SCOPE)
116117
ENDIF()

tests/quick_mpi.prm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# we do not include statistics with the hope that this makes the test work on
44
# a wide range of machines
55

6-
# QUICK_TEST
6+
# Enable if: QUICK_TEST
77
# MPI: 2
88

99

tests/world_builder_select_composition.prm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WORLD BUILDER
1+
# Enable if: ASPECT_WITH_WORLD_BUILDER
22
# This test is a copy of world_builder_simple.prm and checks that we can select
33
# a subset of compositions for which to evaluate the world builder.
44

tests/world_builder_simple.prm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WORLD BUILDER
1+
# Enable if: ASPECT_WITH_WORLD_BUILDER
22
# This test uses the Geodynamic World Builder to create
33
# initial temperatures and compositions
44

tests/world_builder_simple_2d_cartesian_sticky_air.prm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WORLD BUILDER
1+
# Enable if: ASPECT_WITH_WORLD_BUILDER
22
set Nonlinear solver scheme =no Advection, no Stokes
33
set World builder file = $ASPECT_SOURCE_DIR/tests/world_builder_simple_2d_cartesian_sticky_air.wb
44
set Use years in output instead of seconds = false

0 commit comments

Comments
 (0)