X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Ffour-concurrent-jobs-test;h=80a3fcc691895006f95bb081107346565435145d;hb=5d5be3b52427fbfe3fbefbca0193f4cf32af74f5;hp=6e9e37bebb691ac24ef90812da164f3460a4c3ec;hpb=9f585bd39c3ea023793d738ca05cae70af661d24;p=bacula%2Fbacula diff --git a/regress/tests/four-concurrent-jobs-test b/regress/tests/four-concurrent-jobs-test index 6e9e37bebb..80a3fcc691 100755 --- a/regress/tests/four-concurrent-jobs-test +++ b/regress/tests/four-concurrent-jobs-test @@ -1,23 +1,25 @@ #!/bin/sh # -# Run two jobs at the same time +# Run four jobs at the same time, with two Volumes. +# Set max Vol bytes of first volume +# to less than total backup to force Bacula to use the second +# Volume. # TestName="four-concurrent-jobs-test" JobName=Four-concurrent-jobs . scripts/functions -set_debug 0 scripts/cleanup scripts/copy-test-confs -echo "${cwd}/build" >/tmp/file-list +echo "${cwd}/build" >${cwd}/tmp/file-list change_jobname NightlySave $JobName start_test -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out label storage=File1 TestVolume001 label storage=File1 @@ -25,24 +27,38 @@ TestVolume002 update Volume=TestVolume001 MaxVolBytes=100000000 @#50000000 @#12 -setdebug level=000 Storage=File1 +setdebug level=51 Storage=File1 +status storage=File1 +llist volume=TestVolume001 +llist volume=TestVolume002 run job=$JobName level=Full Storage=File1 yes reload +llist volume=TestVolume001 +llist volume=TestVolume002 run job=$JobName level=Full Storage=File1 yes reload +llist volume=TestVolume001 +llist volume=TestVolume002 run job=$JobName level=Full Storage=File1 yes reload +llist volume=TestVolume001 +llist volume=TestVolume002 +status storage=File1 run job=$JobName level=Full Storage=File1 yes +status storage=File1 reload reload reload reload @sleep 2 status dir +status storage=File1 +llist volume=TestVolume001 +llist volume=TestVolume002 reload @sleep 5 messages @@ -55,12 +71,13 @@ messages @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out restore where=${cwd}/tmp/bacula-restores select storage=File1 unmark * mark * done yes +run job=$JobName level=Full Storage=File1 yes wait reload reload