TestName="two-volume-tape"
JobName=twovoltape
. scripts/functions
-set_debug 0
-. config.out
if test x${AUTOCHANGER} = x/dev/null ; then
- echo "two-volume-tape test skipped. No autochanger."
+ echo "${TestName} test skipped. No autochanger."
exit
fi
scripts/copy-2tape-confs
scripts/prepare-two-tapes
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
outf="tmp/sed_tmp"
echo "s%# Maximum File Size% Maximum File Size%g" >${outf}
label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
update Volume=TestVolume001 MaxVolBytes=3000000 pool=Default drive=0
+sql
+select * from Storage;
+select VolumeName,InChanger,Slot,StorageId from Media;
+
@#setdebug level=1000 client
+@#setdebug level=250 storage=DDS-4
run job=$JobName yes
wait
+sql
+select * from Storage;
+select VolumeName,InChanger,Slot,StorageId from Media;
+
messages
quit
END_OF_DATA