X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Ffour-concurrent-jobs-tape;h=cf31406593a65540044a4ba2991b68e67ebb9859;hb=4d691342d4786448f9e8f0ebf95a958f3169c9d1;hp=738d8178ae57adcad6c1e8c03f6b16eebc32c748;hpb=27ad3149b17c121e772c2452510b8b46e565ed5c;p=bacula%2Fbacula diff --git a/regress/tests/four-concurrent-jobs-tape b/regress/tests/four-concurrent-jobs-tape index 738d8178ae..cf31406593 100755 --- a/regress/tests/four-concurrent-jobs-tape +++ b/regress/tests/four-concurrent-jobs-tape @@ -2,10 +2,12 @@ # # Run four jobs at the same time # -TestName="four-concurrent-jobs-1t1d-tape" +TestName="four-concurrent-jobs-tape" JobName=FourConcurrentJobs . scripts/functions +require_tape_drive + scripts/cleanup-tape scripts/copy-tape-confs @@ -15,39 +17,43 @@ change_jobname $JobName start_test cat <${cwd}/tmp/bconcmds -@output /dev/null +@$out /dev/null messages @$out ${cwd}/tmp/log1.out -label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default -run job=$JobName level=Full Storage=DDS-4 yes -run job=$JobName level=Full Storage=DDS-4 yes -run job=$JobName level=Full Storage=DDS-4 yes -run job=$JobName level=Full Storage=DDS-4 yes +label storage=tape volume=TestVolume001 slot=0 pool=Default +run job=$JobName level=Full Storage=tape yes +run job=$JobName level=Full Storage=tape yes +run job=$JobName level=Full Storage=tape yes +run job=$JobName level=Full Storage=tape yes @sleep 2 status dir @sleep 5 status dir -status storage=DDS-4 +status storage=tape messages wait messages +@$out ${cwd}/tmp/jobmedia.out +list volumes +sql +select JobId,MediaId,StartFile,StartBlock,EndFile,EndBlock from JobMedia; + @# @# now do a restore @# @$out ${cwd}/tmp/log2.out -restore where=${cwd}/tmp/bacula-restores select storage=DDS-4 +restore where=${cwd}/tmp/bacula-restores select storage=tape unmark * mark * done yes wait messages -@$out quit END_OF_DATA run_bacula -check_for_zombie_jobs storage=DDS-4 +check_for_zombie_jobs storage=tape stop_bacula check_two_logs