Skip to content

Commit

Permalink
Create run_orion_ctest.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zach1221 authored Nov 21, 2023
1 parent 4f659c8 commit 4546ff3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/testinput/run_orion_ctest.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4546ff3

Please sign in to comment.