Skip to content

Commit c7652aa

Browse files
committed
Disable coarray_navier_stokes test on Travis-CI
This was cherry-picked from 173f980 on master, but merge conflicts (due to unintened divergence of master and 1.x release branch) required manual changes. As a side effect, this fixes #42
1 parent c6f6418 commit c7652aa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,15 @@ if(opencoarrays_aware_compiler)
134134
add_mpi_test(coarray_burgers_pde 2 ${tests_root}/integration/pde_solvers/coarrayBurgers/coarray_burgers_pde)
135135
add_mpi_test(co_heat 2 ${tests_root}/integration/pde_solvers/coarrayHeatSimplified/co_heat)
136136

137+
execute_process (COMMAND uname -m
138+
OUTPUT_VARIABLE MACHINE_TYPE)
137139
if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" )
138-
add_mpi_test(coarray_navier_stokes 2 ${tests_root}/integration/pde_solvers/navier-stokes/coarray_navier_stokes)
139-
set_property(TEST coarray_navier_stokes PROPERTY PASS_REGULAR_EXPRESSION "Test passed.")
140+
if ("${MACHINE_TYPE}" MATCHES "x86_64")
141+
if ( NOT (DEFINED ENV{TRAVIS}))
142+
add_mpi_test(coarray_navier_stokes 2 ${tests_root}/integration/pde_solvers/navier-stokes/coarray_navier_stokes)
143+
set_property(TEST coarray_navier_stokes PROPERTY PASS_REGULAR_EXPRESSION "Test passed.")
144+
endif()
145+
endif()
140146
endif()
141147
else()
142148
add_test(co_sum_extension ${tests_root}/unit/extensions/test-co_sum-extension.sh)

0 commit comments

Comments
 (0)