From: Kern Sibbald Date: Wed, 19 Nov 2003 17:49:08 +0000 (+0000) Subject: Update tests X-Git-Tag: Release-1.34.0~338 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d94506b8e04b27c947350c87f98fc512da93f3c;p=bacula%2Fbacula Update tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@809 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/backup-bacula-tape b/regress/tests/backup-bacula-tape index f83fa5b625..295ebf5a27 100755 --- a/regress/tests/backup-bacula-tape +++ b/regress/tests/backup-bacula-tape @@ -1,7 +1,8 @@ #!/bin/sh # # Run a simple backup of the Bacula build directory -# to a tape then restore it. +# to a tape then restore it, we do that twice to ensure that +# we can correctly append to a tape. # cwd=`pwd` bin/bacula stop 2>&1 >/dev/null @@ -34,6 +35,24 @@ restore where=${cwd}/tmp/bacula-restores select all yes wait messages +@# +@# Now do a second backup +@# +@output /dev/null +messages +@output tmp/log1.out +label storage=DDS-4 volume=TestVolume001 slot=0 +run job=NightlySave yes +wait +messages +@# +@# now do a second restore +@# +@output tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select all +yes +wait +messages @output quit END_OF_DATA diff --git a/regress/tests/bsr-opt-test b/regress/tests/bsr-opt-test index 9e4e69d969..8e1d315076 100755 --- a/regress/tests/bsr-opt-test +++ b/regress/tests/bsr-opt-test @@ -48,14 +48,14 @@ messages quit END_OF_DATA bin/bacula stop 2>&1 >/dev/null -grep TestVolume001 working/restore.bsr +grep TestVolume001 working/restore.bsr 2>&1 >/dev/null bsrstat=$? grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null bstat=$? grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null rstat=$? diff -r build/src/cats tmp/bacula-restores${cwd}/build/src/cats 2>&1 >/dev/null -if [ $? != 0 -o $bsrstat != 1 -o $bstat != 0 -o $rstat != 0 ] ; then +if [ $? != 0 -o $bsrstat != 0 -o $bstat != 0 -o $rstat != 0 ] ; then echo " " echo " " echo " !!!!! bsr-opt-test Bacula source failed!!! !!!!! " diff --git a/regress/tests/four-concurrent-jobs-test b/regress/tests/four-concurrent-jobs-test index 8231cc54af..8a0281d811 100755 --- a/regress/tests/four-concurrent-jobs-test +++ b/regress/tests/four-concurrent-jobs-test @@ -26,11 +26,9 @@ label storage=File1 TestVolume001 label storage=File1 TestVolume002 -update Volume=TestVolume001 -6 -100000000 +update Volume=TestVolume001 MaxVolBytes=100000000 @#50000000 -10 +12 run job=NightlySave level=Full Storage=File1 yes run job=NightlySave level=Full Storage=File1 @@ -49,9 +47,7 @@ messages @# now do a restore @# @output tmp/log2.out -restore where=${cwd}/tmp/bacula-restores -5 -done +restore where=${cwd}/tmp/bacula-restores select all yes wait messages