diff --git a/SubSystems/Online_Cobalt/validation/validate b/SubSystems/Online_Cobalt/validation/validate index 410e02e7a9496de983d824d86751462ed48ee16a..8940751c33c2c07aee7165ffa32fa8f5801c1c83 100755 --- a/SubSystems/Online_Cobalt/validation/validate +++ b/SubSystems/Online_Cobalt/validation/validate @@ -1,8 +1,7 @@ #!/bin/bash # Change directory to the location of this script -VALIDATION_SCRIPT_PATH=`readlink -f -n $0` -VALIDATION_ROOT_DIR=`dirname $VALIDATION_SCRIPT_PATH` +VALIDATION_ROOT_DIR=$(dirname $0) cd $VALIDATION_ROOT_DIR # import helper functions @@ -60,12 +59,16 @@ LOGSUFFIX="`hostname -s`_`date +%FT%T`.log" # Default: all test-suite sub dirs TESTSETS=${@:-`find -L . -maxdepth 1 -type d | sort -u`} -echo "--Running validation tests------------------------------------------" +echo "-----------------------------------------------------------------------------" +echo "------------------------- Running validation tests --------------------------" +echo "-----------------------------------------------------------------------------" echo " host: `hostname`" echo " working directory: `pwd`" echo " log directory: $LOGDIR" echo " log suffix: $LOGSUFFIX" -echo "--------------------------------------------------------------------" +echo "-----------------------------------------------------------------------------" +echo " Please note that some tests can take a considerable amount of time..." +echo "-----------------------------------------------------------------------------" echo "" # Run all tests @@ -73,7 +76,7 @@ for TEST in `find -L $TESTSETS -name '*.test' -type f -a -executable | sort -u` do LOGFILE="$LOGDIR/$TEST.$LOGSUFFIX" - # make we can write into the log dir + # make sure we can write into the log dir mkdir -p `dirname $LOGFILE` printf "%48s : " "$TEST"