summaryrefslogtreecommitdiffstats
path: root/bin/batch
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2019-05-10 14:01:50 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2019-05-10 14:01:50 (GMT)
commit5b4fecaa39ca040b0f2dbb4509a04a3627cf5f0e (patch)
treea140dce86400249fe1321fb3c6793539efa82777 /bin/batch
parent68e34f7be1309f77c616d0078d128da199ab050c (diff)
parentcf6f2f039d8e1c98bdd9690357e2b4670f23ae4e (diff)
downloadhdf5-5b4fecaa39ca040b0f2dbb4509a04a3627cf5f0e.zip
hdf5-5b4fecaa39ca040b0f2dbb4509a04a3627cf5f0e.tar.gz
hdf5-5b4fecaa39ca040b0f2dbb4509a04a3627cf5f0e.tar.bz2
Merge pull request #1699 in HDFFV/hdf5 from ~BRTNFLD/hdf5_msb:develop to develop
* commit 'cf6f2f039d8e1c98bdd9690357e2b4670f23ae4e': Adding cross-compilation for theta (ANL) and qsub (COBALT) batch controls.
Diffstat (limited to 'bin/batch')
-rwxr-xr-xbin/batch/ctest.qsub.in.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/batch/ctest.qsub.in.cmake b/bin/batch/ctest.qsub.in.cmake
new file mode 100755
index 0000000..f1d9b00
--- /dev/null
+++ b/bin/batch/ctest.qsub.in.cmake
@@ -0,0 +1,21 @@
+#!/bin/bash -l
+if [ $# -gt 0 ]; then
+ SUMMARY_FILE=$1
+fi
+ACCOUNT_ID=@ACCOUNT_ID@
+
+echo "Run parallel test command. Test output will be in build/${SUMMARY_FILE}"
+CTEST_CMD=`which ctest`
+
+#SKIPTESTS <<KEYWORD:script inserts list of skips tests here -- don't remove>>
+
+cd @HDF5_BINARY_DIR@
+if [[ $SUMMARY_FILE == *"ctestS"* ]]; then
+ CMD="${CTEST_CMD} . -E MPI_TEST_ -C Release -j 32 -T test"
+else
+ CMD="${CTEST_CMD} . -R MPI_TEST_ ${SKIP_TESTS} -C Release -T test "
+fi
+
+qsub -t 60 -n 1 -q debug-flat-quad -A ${ACCOUNT_ID} ${CMD} >& ${SUMMARY_FILE}
+
+echo "Done running ctest parallel command."