Skip to content
Snippets Groups Projects
Commit 28b03c29 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use rel path for win tests

parent 1ebbfa06
No related branches found
No related tags found
No related merge requests found
...@@ -1669,10 +1669,13 @@ endif(ENABLE_WRAP_JAVA) ...@@ -1669,10 +1669,13 @@ endif(ENABLE_WRAP_JAVA)
include(CPack) include(CPack)
include(CTest) include(CTest)
file(GLOB_RECURSE TESTFILES tutorial/*.geo demos/*.geo file(GLOB_RECURSE TESTFILES
benchmarks/?d/*.geo benchmarks/extrude/*.geo) tutorial/*.geo demos/*.geo benchmarks/?d/*.geo benchmarks/extrude/*.geo)
foreach(TESTFILE ${TESTFILES}) foreach(TESTFILE ${TESTFILES})
add_test(${TESTFILE} ./gmsh ${TESTFILE} -3 -nopopup -o ./tmp.msh) # 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(${TESTFILE} ./gmsh ${TEST} -3 -nopopup -o ./tmp.msh)
endforeach() endforeach()
# if(HAVE_PYTHON) # if(HAVE_PYTHON)
# file(GLOB_RECURSE TESTFILES tutorial/*.py) # file(GLOB_RECURSE TESTFILES tutorial/*.py)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment