summaryrefslogtreecommitdiffstats
path: root/config/cmake/scripts/CTestScript.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-10-22 20:39:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-10-22 20:39:03 (GMT)
commit164bae2439d490f5cc93e1068692d42d56d36b76 (patch)
tree9d641317dc00051ad20714b20f46f3b73bbfdf91 /config/cmake/scripts/CTestScript.cmake
parent8a12b57483854929dd9ccbcf107dd1051c6c3a12 (diff)
downloadhdf5-164bae2439d490f5cc93e1068692d42d56d36b76.zip
hdf5-164bae2439d490f5cc93e1068692d42d56d36b76.tar.gz
hdf5-164bae2439d490f5cc93e1068692d42d56d36b76.tar.bz2
TRILAB-36 add option for test script batch command
Diffstat (limited to 'config/cmake/scripts/CTestScript.cmake')
-rwxr-xr-xconfig/cmake/scripts/CTestScript.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/cmake/scripts/CTestScript.cmake b/config/cmake/scripts/CTestScript.cmake
index 670196b..43cd48d 100755
--- a/config/cmake/scripts/CTestScript.cmake
+++ b/config/cmake/scripts/CTestScript.cmake
@@ -263,7 +263,11 @@ message (STATUS "Dashboard script configuration:\n${vars}\n")
if (NOT LOCAL_SKIP_TEST)
if (NOT LOCAL_MEMCHECK_TEST)
- ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args} RETURN_VALUE res)
+ if (NOT LOCAL_BATCH_TEST)
+ ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args} RETURN_VALUE res)
+ else ()
+ execute_process (COMMAND ${LOCAL_BATCH_SCRIPT_COMMAND} ${LOCAL_BATCH_SCRIPT_NAME})
+ endif ()
if (LOCAL_SUBMIT)
ctest_submit (PARTS Test)
endif ()