3 # Run two jobs at the same time
6 scripts/copy-test-confs
8 echo "${cwd}/build" >/tmp/file-list
12 echo " === Starting four-concurrent-jobs-test at `date +%R:%S` ==="
13 echo " === Starting four-concurrent-jobs-test at `date +%R:%S` ===" >>working/log
16 bin/bacula start 2>&1 >/dev/null
17 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA 2>&1 >/dev/null
25 update Volume=TestVolume001 MaxVolBytes=100000000
28 run job=NightlySave level=Full Storage=File1
31 run job=NightlySave level=Full Storage=File1
34 run job=NightlySave level=Full Storage=File1
37 run job=NightlySave level=Full Storage=File1
57 restore where=${cwd}/tmp/bacula-restores select storage=File1
69 scripts/check_for_zombie_jobs storage=File1
71 bin/bacula stop 2>&1 >/dev/null
72 grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
74 grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
76 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
77 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
80 echo " !!!!! four-concurrent-jobs-test Bacula source failed!!! !!!!! "
81 echo " !!!!! four-concurrent-jobs-test failed!!! !!!!! " >>test.out
82 if [ $bstat != 0 -o $rstat != 0 ] ; then
83 echo " !!!!! Bad Job termination status !!!!! "
84 echo " !!!!! Bad Job termination status !!!!! " >>test.out
86 echo " !!!!! Restored files differ !!!!! "
87 echo " !!!!! Restored files differ !!!!! " >>test.out
92 echo " ===== four-concurrent-jobs-test Bacula source OK ===== "
93 echo " ===== four-concurrent-jobs-test OK ===== " >>test.out