3 # Run two jobs at the same time
6 scripts/copy-test-confs
8 echo "${cwd}/build" >/tmp/file-list
9 bin/bacula stop 2>&1 >/dev/null
11 ./drop_bacula_tables >/dev/null 2>&1
12 ./make_bacula_tables >/dev/null 2>&1
13 ./grant_bacula_privileges 2>&1 >/dev/null
18 echo " === Starting four-concurrent-jobs-test ==="
19 echo " === Starting four-concurrent-jobs-test ===" >>working/log
22 bin/bacula start 2>&1 >/dev/null
23 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
31 update Volume=TestVolume001 MaxVolBytes=100000000
34 run job=NightlySave level=Full Storage=File1
36 run job=NightlySave level=Full Storage=File1
38 run job=NightlySave level=Full Storage=File1
40 run job=NightlySave level=Full Storage=File1
52 restore where=${cwd}/tmp/bacula-restores select storage=File1
62 scripts/check_for_zombie_jobs storage=File1
64 bin/bacula stop 2>&1 >/dev/null
65 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
67 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
69 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
70 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
73 echo " !!!!! four-concurrent-jobs-test Bacula source failed!!! !!!!! "
74 echo " !!!!! four-concurrent-jobs-test failed!!! !!!!! " >>test.out
78 echo " ===== four-concurrent-jobs-test Bacula source OK ===== "
79 echo " ===== four-concurrent-jobs-test OK ===== " >>test.out