Debian Codegraph @

cmake/ctest/drivers/atdm/van1-tx2/local-driver-on-allocation.sh

raw
1 #!/bin/bash
2 #
3 # This script is designed to run inside of an allocation which then runs the
4 # build and tests on the same allocated compute node. (See
5 # van1-tx2/local-drivers.sh and atdm/READM.md for details.)
6 #
7
8 set +x
9
10 echo
11 echo "======================================================================"
12 echo ""
13 echo " Running ${JOB_NAME}"
14 echo " in salloc allocation from node '$(hostname)'"
15 echo ""
16 echo "======================================================================"
17 echo
18
19 # Must use same site name for build and test results so they match up on
20 # CDash!
21 export CTEST_SITE=${ATDM_CONFIG_CDASH_HOSTNAME}
22
23 echo
24 echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
25 echo "***"
26 echo "*** Running start, update, configure and build on a compute node"
27 echo "***"
28 echo
29
30 set -x
31 env \
32 CTEST_DO_TEST=FALSE \
33 srun -N 1 \
34 $WORKSPACE/Trilinos/cmake/ctest/drivers/atdm/ctest-s-driver.sh
35 set +x
36
37 echo
38 echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
39 echo "***"
40 echo "*** Running tests on compute node launched from the login node"
41 echo "***"
42 echo
43
44 set -x
45 env \
46 CTEST_DO_NEW_START=FALSE \
47 CTEST_DO_UPDATES=FALSE \
48 CTEST_DO_CONFIGURE=FALSE \
49 CTEST_DO_BUILD=FALSE \
50 $WORKSPACE/Trilinos/cmake/ctest/drivers/atdm/ctest-s-driver.sh
51 set +x