diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-11 12:36:21 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-11 12:36:21 +0100 |
commit | 83c15bb0a004ee348228217861c0eab7c5573952 (patch) | |
tree | b74128a7665cb189baf5dd2322aab47a2ba7c7e6 /tests/longrun.sh | |
parent | 5106cbe466781e824846742a036d36ba5f884ad6 (diff) | |
download | rsyslog-83c15bb0a004ee348228217861c0eab7c5573952.tar.gz rsyslog-83c15bb0a004ee348228217861c0eab7c5573952.tar.xz rsyslog-83c15bb0a004ee348228217861c0eab7c5573952.zip |
added more tests to testbench and improved testing tools
Diffstat (limited to 'tests/longrun.sh')
-rwxr-xr-x | tests/longrun.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/longrun.sh b/tests/longrun.sh new file mode 100755 index 00000000..09bddc58 --- /dev/null +++ b/tests/longrun.sh @@ -0,0 +1,22 @@ +# This is a test-aid script to try running some tests through many iterations. +# 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 +MAXRUNS=10 +DISPLAYALIVE=100 +LOGFILE=runlog + +date > $LOGFILE + +for (( i=0; $i < 10000; i++ )) + do + if [ $(( i % DISPLAYALIVE )) -eq 0 ]; then + echo "$i iterations done" + fi + ./gzipwr_large_dynfile.sh >> $LOGFILE + if [ "$?" -ne "0" ]; then + echo "Test failed in iteration $i!" + exit 1 + fi + done +echo "No failure in $i iterations." |