Skip to content
Snippets Groups Projects
Commit 5b742fd8 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

Support custom baselines in tests

Change-Id: I0a5df3d25ec33ffc272e33a032a19af38689d938
parent e04656f3
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,7 @@ endfunction()
function(vtk_add_test_mpi exename tests)
set(mpi_options
TESTING_DATA
CUSTOM_BASELINES
)
_vtk_test_parse_args("${mpi_options}" "cxx" ${ARGN})
_vtk_test_set_options("${mpi_options}" "" ${options})
......@@ -114,7 +115,11 @@ function(vtk_add_test_mpi exename tests)
if(local_TESTING_DATA)
set(_D -D ${data_dir})
set(_T -T ${VTK_BINARY_DIR}/Testing/Temporary)
set(_V -V "DATA{${baseline_dir}/${name}.png,:}")
if(local_CUSTOM_BASELINES)
set(_V -V "${data_dir}/Baseline")
else()
set(_V -V "DATA{${baseline_dir}/${name}.png,:}")
endif()
endif()
set(numprocs ${default_numprocs})
......@@ -174,6 +179,7 @@ function(vtk_add_test_cxx exename _tests)
NO_DATA
NO_VALID
NO_OUTPUT
CUSTOM_BASELINES
)
_vtk_test_parse_args("${cxx_options}" "cxx" ${ARGN})
_vtk_test_set_options("${cxx_options}" "" ${options})
......@@ -211,7 +217,11 @@ function(vtk_add_test_cxx exename _tests)
set(_V "")
if(NOT local_NO_VALID)
set(_V -V "DATA{${baseline_dir}/${name}.png,:}")
if(local_CUSTOM_BASELINES)
set(_V -V "${data_dir}/Baseline")
else()
set(_V -V "DATA{${baseline_dir}/${name}.png,:}")
endif()
endif()
ExternalData_add_test(VTKData
......
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