Skip to content

Commit 0871c1a

Browse files
authored
Merge pull request #96 from sourceryinstitute/reenable-fv-tests
Reenable fv tests
2 parents ff4b83a + 93ffa3b commit 0871c1a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/FV/cmake/modules/AddParallelTest.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ function(add_parallel_test)
5959

6060
add_test(NAME ${_test_name}
6161
COMMAND ${_test_launch})
62-
set_property(TEST ${name}
62+
set_property(TEST ${_test_name}
6363
APPEND
6464
PROPERTY LABELS "MORFEUS" "MORFEUS_FV" "integration-test")
65-
set_property(TEST ${name}
65+
set_property(TEST ${_test_name}
6666
APPEND
6767
PROPERTY PASS_REGULAR_EXPRESSION "[Tt]est [Pp]assed")
68-
set_property(TEST ${name}
68+
set_property(TEST ${_test_name}
6969
APPEND
7070
PROPERTY PROCESSORS ${APT_PROCESSES})
7171
if(APT_TEST_DIR)
72-
set_property(TEST ${name}
72+
set_property(TEST ${_test_name}
7373
APPEND
7474
PROPERTY WORKING_DIRECTORY ${APT_TEST_DIR})
7575
endif()

src/FV/src/unit-tests/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ endforeach()
1212
# NOTE: The CMAKE_MODULE_PATH was modified in the project's top level CMakeLists.txt
1313
include(AddParallelTest)
1414

15-
#foreach( test_name
16-
# fv-test-class_dimensions fv-test-class_vector fv-test-class_keytable fv-test-class_stopwatch fv-test-field-extends-grid )
17-
#
18-
# add_parallel_test(NAME "${test_name}" # Name is optional
19-
# PROCESSES 1 # Processes is optional, will default to 1
20-
# SOURCES "${test_name}.f90" # Specify one or more source files. If NAME is missing
21-
# LIBS morfeus_fv
22-
# )
23-
#endforeach()
15+
foreach( test_name
16+
fv-test-class_dimensions fv-test-class_vector fv-test-class_keytable fv-test-class_stopwatch fv-test-field-extends-grid )
17+
18+
add_parallel_test(NAME "${test_name}" # Name is optional
19+
PROCESSES 1 # Processes is optional, will default to 1
20+
SOURCES "${test_name}.f90" # Specify one or more source files. If NAME is missing
21+
LIBS morfeus_fv
22+
)
23+
endforeach()

0 commit comments

Comments
 (0)