Skip to content

Commit 0f57091

Browse files
committed
Check System setup for Navier-Stokes Tests
Made change to the CMake setup, for performing Navier-Stokes tests. The system setup or the machine configuration is identified before performing Navier-Stokes tests. If the machine is identified to be a 64bit (x86-64) system, the Navier-Stokes test is performed or else the case is omitted from the tests. Signed-off-by: naveen-ravi <[email protected]>
1 parent 19c4ffd commit 0f57091

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,13 @@ if(opencoarrays_aware_compiler)
140140
add_mpi_test(coarray_burgers_pde 2 ${tests_root}/integration/pde_solvers/coarrayBurgers/coarray_burgers_pde)
141141
add_mpi_test(co_heat 2 ${tests_root}/integration/pde_solvers/coarrayHeatSimplified/co_heat)
142142

143+
execute_process (COMMAND uname -m
144+
OUTPUT_VARIABLE MACHINE_TYPE)
143145
if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" )
144-
add_mpi_test(coarray_navier_stokes 2 ${tests_root}/integration/pde_solvers/navier-stokes/coarray_navier_stokes)
145-
set_property(TEST coarray_navier_stokes PROPERTY PASS_REGULAR_EXPRESSION "Test passed.")
146+
if ("${MACHINE_TYPE}" MATCHES "x86_64")
147+
add_mpi_test(coarray_navier_stokes 2 ${tests_root}/integration/pde_solvers/navier-stokes/coarray_navier_stokes)
148+
set_property(TEST coarray_navier_stokes PROPERTY PASS_REGULAR_EXPRESSION "Test passed.")
149+
endif()
146150
endif()
147151
else()
148152
add_test(co_sum_extension ${tests_root}/unit/extensions/test-co_sum-extension.sh)

0 commit comments

Comments
 (0)