Skip to content
Snippets Groups Projects
Commit 03d2c78f authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[T] Disable snakemake tests when tee tool is not available.

parent 9ba5f049
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ AddTest(
AmmerSubsurfaceGrid.vtu AmmerGridOutput.vtu MaterialIDs MaterialIDs 0 0
)
if(SNAKEMAKE AND NOT OGS_USE_MPI)
if(SNAKEMAKE AND NOT OGS_USE_MPI AND TEE_TOOL_PATH)
add_test(NAME snakemake_ExtractBoundary
COMMAND ${SNAKEMAKE} -j 1
--configfile ${PROJECT_BINARY_DIR}/buildinfo.yaml
......@@ -485,7 +485,7 @@ if(TARGET VerticalSliceFromLayers AND GMSH)
endif()
if(TARGET GMSH2OGS AND SNAKEMAKE AND NOT OGS_USE_MPI)
if(TARGET GMSH2OGS AND SNAKEMAKE AND NOT OGS_USE_MPI AND TEE_TOOL_PATH)
add_test(NAME snakemake_GMSH2OGS_ExtractBoundary
COMMAND ${SNAKEMAKE} --cores all
--configfile ${PROJECT_BINARY_DIR}/buildinfo.yaml
......
......@@ -47,6 +47,10 @@ find_program(PANDOC_CITEPROC pandoc-citeproc)
find_program(MODULE_CMD lmod PATHS /software/lmod/lmod/libexec)
find_program(SNAKEMAKE snakemake HINTS ${LOCAL_VIRTUALENV_BIN_DIRS})
find_program(TEE_TOOL_PATH tee)
if(OGS_BUILD_TESTING AND SNAKEMAKE AND NOT TEE_TOOL_PATH)
message(WARNING "tee tool was not found. Snakemake tests are disabled!")
endif()
find_program(GMSH gmsh)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment