]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/four-jobs-tape
Test
[bacula/bacula] / regress / tests / four-jobs-tape
index 4b082dbe0e1464586addfc0fe8e40f85f106ee47..0a4ab4d25ac598ebcd44900db1ef445eb3e78d6a 100755 (executable)
@@ -5,12 +5,6 @@
 #   It should require at least 4 different bsrs.
 #
 cwd=`pwd`
-bin/bacula stop 2>&1 >/dev/null
-cd bin
-./drop_bacula_tables >/dev/null 2>&1
-./make_bacula_tables >/dev/null 2>&1
-./grant_bacula_privileges 2>&1 >/dev/null
-cd ..
 
 scripts/copy-tape-confs
 scripts/cleanup-tape
@@ -100,20 +94,28 @@ restore where=${cwd}/tmp/bacula-restores select all done
 yes
 wait
 @output tmp/log2.out
+@#
+@# now unmount the tape and start two restores
+@#  at the same time
+@#
+unmount storage=DDS-4
+restore where=${cwd}/tmp/bacula-restores select all done
+yes
 restore where=${cwd}/tmp/bacula-restores select
 unmark *
 mark *
 done
 yes
+mount storage=DDS-4
 wait
 messages
 @output
 quit
 END_OF_DATA
 bin/bacula stop 2>&1 >/dev/null
-grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
+grep "^  Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
 bstat=$?
-grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
+grep "^  Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
 rstat=$?
 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then