X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Ftwo-volume-changer;h=6941bcd67943f6a91b26528af2615cf6630776c0;hb=eedb255c47c46d20ad211ab368361131b8dad0c9;hp=72b86b8194f861c5bfb53a596c3308ac8b972d95;hpb=dd5c4c23eaa4faf331051d47763c5ca599e2412a;p=bacula%2Fbacula diff --git a/regress/tests/two-volume-changer b/regress/tests/two-volume-changer index 72b86b8194..6941bcd679 100755 --- a/regress/tests/two-volume-changer +++ b/regress/tests/two-volume-changer @@ -1,4 +1,9 @@ #!/bin/sh +# +# Copyright (C) 2000-2015 Kern Sibbald +# License: BSD 2-Clause; see file LICENSE-FOSS +# + # # Run a simple backup of the Bacula build directory # to two tapes where the maximum tape file size is set to 1M @@ -31,15 +36,15 @@ cat <tmp/bconcmds @$out /dev/null messages @$out tmp/log1.out -label storage=DDS-4 volume=TestVolume001 slot=$SLOT1 pool=Default drive=$DRIVE1 -label storage=DDS-4 volume=TestVolume002 slot=$SLOT2 pool=Default drive=$DRIVE1 -update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=$DRIVE1 +label storage=tape volume=TestVolume001 slot=$SLOT1 pool=Default drive=$DRIVE1 +label storage=tape volume=TestVolume002 slot=$SLOT2 pool=Default drive=$DRIVE1 +update Volume=TestVolume002 MaxVolBytes=3000000 pool=Default drive=$DRIVE1 sql select * from Storage; select VolumeName,InChanger,Slot,StorageId from Media; @#setdebug level=1000 client=$CLIENT -setdebug level=150 storage=DDS-4 +setdebug level=150 storage=tape run job=$JobName yes wait sql @@ -51,10 +56,10 @@ quit END_OF_DATA run_bacula -check_for_zombie_jobs storage=DDS-4 +check_for_zombie_jobs storage=tape stop_bacula -bin/${AUTOCHANGER_SCRIPT} ${AUTOCHANGER} unload $SLOT2 ${TAPE_DRIVE} 0 +$scripts/${AUTOCHANGER_SCRIPT} ${AUTOCHANGER} unload $SLOT2 ${TAPE_DRIVE} 0 cat <tmp/bconcmds @$out /dev/null @@ -63,16 +68,15 @@ messages @# now do a restore @# @$out tmp/log2.out -restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done +restore where=${cwd}/tmp/bacula-restores select all storage=tape 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