| 1 |
#!/bin/bash |
| 2 |
# |
| 3 |
# This script is designed to run on the login node. The start, update, |
| 4 |
# configure and build are done on the login node. This is because it is just |
| 5 |
# not robust to try to run this on the compute node (see ATDV-324). However, |
| 6 |
# ctest running the tests themselves must be run from the launch node |
| 7 |
# (allocated using bsub). This is because you can only invoke jsrun from the |
| 8 |
# launch node, not the login or compute node! |
| 9 |
# |
| 10 |
|
| 11 |
set +x |
| 12 |
|
| 13 |
if [ "${LSF_CTEST_TEST_TIMEOUT}" == "" ] ; then |
| 14 |
export LSF_CTEST_TEST_TIMEOUT=4:00 |
| 15 |
fi |
| 16 |
|
| 17 |
# Must use same site name for build and test results so they match up on |
| 18 |
# CDash! |
| 19 |
export CTEST_SITE=${ATDM_CONFIG_CDASH_HOSTNAME} |
| 20 |
|
| 21 |
echo |
| 22 |
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" |
| 23 |
echo "***" |
| 24 |
echo "*** Running [start], [update], configure and build on the login node" |
| 25 |
echo "***" |
| 26 |
echo |
| 27 |
|
| 28 |
set -x |
| 29 |
env \ |
| 30 |
CTEST_DO_TEST=FALSE \ |
| 31 |
$WORKSPACE/Trilinos/cmake/ctest/drivers/atdm/ctest-s-driver.sh |
| 32 |
set +x |
| 33 |
|
| 34 |
echo |
| 35 |
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" |
| 36 |
echo "***" |
| 37 |
echo "*** Running tests from the launch node" |
| 38 |
echo "***" |
| 39 |
echo |
| 40 |
|
| 41 |
set -x |
| 42 |
env \ |
| 43 |
CTEST_DO_NEW_START=FALSE \ |
| 44 |
CTEST_DO_UPDATES=FALSE \ |
| 45 |
CTEST_DO_CONFIGURE=FALSE \ |
| 46 |
CTEST_DO_BUILD=FALSE \ |
| 47 |
bsub -J ${ATDM_CONFIG_BUILD_NAME} -W ${LSF_CTEST_TEST_TIMEOUT} -Is \ |
| 48 |
$WORKSPACE/Trilinos/cmake/ctest/drivers/atdm/ctest-s-driver.sh |
| 49 |
set +x |