3 # Run two jobs at the same time
6 bin/bacula stop 2>&1 >/dev/null
8 ./drop_bacula_tables >/dev/null 2>&1
9 ./make_bacula_tables >/dev/null 2>&1
10 ./grant_bacula_privileges 2>&1 >/dev/null
12 scripts/copy-tape-confs
14 echo "${cwd}/build" >/tmp/file-list
18 echo " === Starting four-concurrent-jobs-tape ==="
19 echo " === Starting four-concurrent-jobs-tape ===" >>working/log
22 bin/bacula start 2>&1 >/dev/null
23 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
27 label storage=DDS-4 volume=TestVolume001 slot=0
28 run job=NightlySave level=Full Storage=DDS-4 yes
29 run job=NightlySave level=Full Storage=DDS-4 yes
30 run job=NightlySave level=Full Storage=DDS-4 yes
31 run job=NightlySave level=Full Storage=DDS-4 yes
42 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
52 scripts/check_for_zombie_jobs storage=DDS-4
53 bin/bacula stop 2>&1 >/dev/null
54 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
56 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
58 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
59 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
62 echo " !!!!! four-concurrent-jobs-tape Bacula source failed!!! !!!!! "
63 echo " !!!!! four-concurrent-jobs-tape failed!!! !!!!! " >>test.out
67 echo " ===== four-concurrent-jobs-tape Bacula source OK ===== "
68 echo " ===== four-concurrent-jobs-tape OK ===== " >>test.out