diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-05-31 17:34:37 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-05-31 17:34:37 (GMT) |
commit | c59817f3436cdd30059520df7d12eea0512e59b4 (patch) | |
tree | 8b7e8c032bf3e89d1cc94f310b40c1814f8f619f /bin/batch/ctest.qsub.in.cmake | |
parent | 86add4853daee3eb7d5a4f0e0bd81fe7fd943a83 (diff) | |
download | hdf5-c59817f3436cdd30059520df7d12eea0512e59b4.zip hdf5-c59817f3436cdd30059520df7d12eea0512e59b4.tar.gz hdf5-c59817f3436cdd30059520df7d12eea0512e59b4.tar.bz2 |
Update cmake macros and java arg format
Diffstat (limited to 'bin/batch/ctest.qsub.in.cmake')
-rw-r--r-- | bin/batch/ctest.qsub.in.cmake | 21 |
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 100644 index 0000000..702fca7 --- /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." |