From 4546ff364d0ae443e854c99755a8a0391b4c20a5 Mon Sep 17 00:00:00 2001 From: zach1221 <99902696+zach1221@users.noreply.github.com> Date: Tue, 21 Nov 2023 15:14:11 -0500 Subject: [PATCH] Create run_orion_ctest.sh --- test/testinput/run_orion_ctest.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/testinput/run_orion_ctest.sh diff --git a/test/testinput/run_orion_ctest.sh b/test/testinput/run_orion_ctest.sh new file mode 100644 index 00000000..71319cfc --- /dev/null +++ b/test/testinput/run_orion_ctest.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -eux + +JOB_ID=$(sbatch --job-name=ctest --account=nems --qos=debug --ntasks-per-node=6 --nodes=1 --time=00:30:00 ./orion_ctest.sh | awk '{print $4}') + +CHECK_ID=$(sbatch --job-name=ctest --account=nems --qos=debug --ntasks-per-node=1 --nodes=1 --time=00:01:00 --dependency=afterok:$JOB_ID ./check_ctest.sh) + +sleep 3m + +if [ -f out.ctest ]; then + cat out.ctest +else + echo "ctest run fails to run." +fi