--- test/test_amber_serial.sh 2010-04-11 00:29:53.000000000 -0400 +++ test/test_amber_serial.sh 2010-04-11 00:31:00.000000000 -0400 @@ -1,5 +1,11 @@ #!/bin/sh +if [ -z "$AMBERHOME" ]; then + dir=`pwd` + echo "Error: AMBERHOME is not set! Set AMBERHOME to `dirname $dir` and re-run the tests." + exit 1 +fi + date_string=`date +%Y-%m-%d_%H-%M-%S` logdir="logs/test_amber_serial" logprefix="${logdir}/${date_string}" ------------------------------------------------------------------------------ --- test/test_amber_parallel.sh 2010-04-11 00:29:53.000000000 -0400 +++ test/test_amber_parallel.sh 2010-04-11 00:31:52.000000000 -0400 @@ -1,5 +1,11 @@ #!/bin/sh +if [ -z "$AMBERHOME" ]; then + dir=`pwd` + echo "Error: AMBERHOME is not set! Set AMBERHOME to `dirname $dir` and re-run the tests." + exit 1 +fi + if [ -z "${DO_PARALLEL}" ] ; then echo "Error: The environment variable DO_PARALLEL is not set. Exiting." exit ------------------------------------------------------------------------------ --- test/test_amber_cuda.sh 2010-04-11 00:29:53.000000000 -0400 +++ test/test_amber_cuda.sh 2010-04-11 00:32:34.000000000 -0400 @@ -21,6 +21,12 @@ # ./test_amber_cuda.x 0 SPDP (This will run the hybrid SPDP precision model # using first GPU - GPU_ID=0) +if [ -z "$AMBERHOME" ]; then + dir=`pwd` + echo "Error: AMBERHOME is not set! Set AMBERHOME to `dirname $dir` and re-run the tests." + exit 1 +fi + if [ "$1" == "" ]; then echo "Using default GPU_ID = -1" GPU_ID=-1 ------------------------------------------------------------------------------ --- AmberTools/test/test_at_serial.sh 2010-04-11 00:37:24.000000000 -0400 +++ AmberTools/test/test_at_serial.sh 2010-04-11 00:47:08.000000000 -0400 @@ -12,7 +12,8 @@ fi if [ -z "${AMBERHOME}" ] ; then - echo "Error: The environment variable AMBERHOME is not set. Exiting." + dir=`dirname \`pwd\`` + echo "Error: AMBERHOME is not set! Set AMBERHOME to `dirname $dir` and re-run the tests." exit fi ------------------------------------------------------------------------------ --- AmberTools/test/test_at_parallel.sh 2010-04-11 00:37:24.000000000 -0400 +++ AmberTools/test/test_at_parallel.sh 2010-04-11 00:46:21.000000000 -0400 @@ -12,7 +12,8 @@ fi if [ -z "${AMBERHOME}" ] ; then - echo "Error: The environment variable AMBERHOME is not set. Exiting." + dir=`dirname \`pwd\`` + echo "Error: AMBERHOME is not set! Set AMBERHOME to `dirname $dir` and re-run the tests." exit fi