Skip to content
Snippets Groups Projects
Commit 3bb53466 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

COB-49: minor logging changes

parent 932c12a2
Branches
Tags
1 merge request!6Import cobalt2 into lofar4
#!/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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment