Commit 5de2375f by Christophe Geuzaine

fix test without gmsh

1 parent c88ee5a2
Pipeline #91 passed
in 1 minute 57 seconds
Showing with 3 additions and 1 deletions
......@@ -1082,16 +1082,18 @@ endif(HAVE_PETSC)
find_program(TEST_BIN ../../gmsh/bin/gmsh)
if(TEST_BIN)
message(STATUS "Will test GetDP with Gmsh through ONELAB")
set(TEST_FLAG -)
else(TEST_BIN)
message(STATUS "Will test GetDP stand-alone")
set(TEST_BIN getdp)
set(TEST_FLAG)
endif(TEST_BIN)
foreach(TESTFILE ${TESTS} ${TESTS_PETSC})
# use relative path for cygwin/mingw (the pure win exe built with the mingw
# compilers does not understand a full cygwin-style path)
FILE(RELATIVE_PATH TEST ${CMAKE_CURRENT_BINARY_DIR} ${TESTFILE})
add_test(${TEST} ${TEST_BIN} ${TEST} - )
add_test(${TEST} ${TEST_BIN} ${TEST} ${TEST_FLAG})
endforeach(TESTFILE)
message(STATUS "")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!