summaryrefslogtreecommitdiffstats
path: root/bin/batch/ctest.qsub.in.cmake
blob: da3ae2f01a47a3ca3bf94bb2cd8fe9b463aa609a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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} -S ctest_serial.cmake"
  qsub -t 60 -n 1 -q debug-flat-quad -A ${ACCOUNT_ID} ${CMD} >& ${SUMMARY_FILE}
  echo "Done running ctest serial command."
  touch ctestS.done
else
  CMD="${CTEST_CMD} -S ctest_parallel.cmake"
  qsub -t 60 -n 1 -q debug-flat-quad -A ${ACCOUNT_ID} ${CMD} >& ${SUMMARY_FILE}
  echo "Done running ctest parallel command."
  touch ctestP.done
fi