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
10 bin/drop_sqlite_tables
11 bin/make_sqlite_tables
15 echo " === Starting four-concurrent-jobs-test ==="
16 echo " === Starting four-concurrent-jobs-test ===" >>working/log
19 #bin/bacula start 2>&1 >/dev/null
21 bin/console -c bin/console.conf <<END_OF_DATA
29 update Volume=TestVolume001
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
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-test Bacula source failed!!! !!!!! "
72 echo " !!!!! four-concurrent-jobs-test failed!!! !!!!! " >>test.out
76 echo " ===== four-concurrent-jobs-test Bacula source OK ===== "
77 echo " ===== four-concurrent-jobs-test OK ===== " >>test.out