diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-19 12:20:58 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-19 12:20:58 +0100 |
commit | 970383f2199e177453bc13a40c3ccf04aeb647e1 (patch) | |
tree | 204c8f420e9af5d27cd4be7ee95b8847181e51ad /tests/longrun.sh | |
parent | 89216d6a96ea5f6d1fa9893d56fa877a2131d390 (diff) | |
download | rsyslog-970383f2199e177453bc13a40c3ccf04aeb647e1.tar.gz rsyslog-970383f2199e177453bc13a40c3ccf04aeb647e1.tar.xz rsyslog-970383f2199e177453bc13a40c3ccf04aeb647e1.zip |
slight improvement to testing tools
Diffstat (limited to 'tests/longrun.sh')
-rwxr-xr-x | tests/longrun.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/longrun.sh b/tests/longrun.sh index 09bddc58..407e9fa9 100755 --- a/tests/longrun.sh +++ b/tests/longrun.sh @@ -2,10 +2,18 @@ # It is not yet used in the automated testbench, but I keep this file so that # I can use it whenever there is need to. As such, it currently does not have # parameters but is expected to be edited as needed. -- rgerhards, 2010-03-10 +# +# use: ./longrun.sh testname.sh +# +# where testname.sh is the test to be run +# to change other params, you need to edit the settings here below: MAXRUNS=10 DISPLAYALIVE=100 LOGFILE=runlog +echo "logfile is $LOGFILE" +echo "executing test $1" + date > $LOGFILE for (( i=0; $i < 10000; i++ )) @@ -13,9 +21,9 @@ for (( i=0; $i < 10000; i++ )) if [ $(( i % DISPLAYALIVE )) -eq 0 ]; then echo "$i iterations done" fi - ./gzipwr_large_dynfile.sh >> $LOGFILE + $1 >> $LOGFILE if [ "$?" -ne "0" ]; then - echo "Test failed in iteration $i!" + echo "Test failed in iteration $i, review $LOGFILE for details!" exit 1 fi done |