3 # Run two jobs at the same time
6 if test "$debug" -eq 1 ; then
13 scripts/copy-tape-confs
16 echo "${cwd}/build" >/tmp/file-list
20 echo " === Starting four-concurrent-jobs-tape at `date +%R:%S` ==="
21 echo " === Starting four-concurrent-jobs-tape at `date +%R:%S` ===" >>working/log
24 cat <<END_OF_DATA >tmp/bconcmds
28 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
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
32 run job=NightlySave level=Full Storage=DDS-4 yes
43 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
53 if test "$debug" -eq 1 ; then
55 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf
57 bin/bacula start 2>&1 >/dev/null
58 cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null
61 scripts/check_for_zombie_jobs storage=DDS-4
62 bin/bacula stop 2>&1 >/dev/null
63 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
65 grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
67 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
68 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
71 echo " !!!!! four-concurrent-jobs-tape Bacula source failed!!! !!!!! "
72 echo " !!!!! four-concurrent-jobs-tape failed!!! !!!!! " >>test.out
76 echo " ===== four-concurrent-jobs-tape Bacula source OK ===== "
77 echo " ===== four-concurrent-jobs-tape OK ===== " >>test.out