TestName="restore-seek-tape"
JobName=restore-tape-seek
. scripts/functions
-set_debug 1
-copy_tape_confs
-echo "${cwd}/tmp/build" >/tmp/file-list
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
+
+echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
rm -rf ${cwd}/tmp/build
mkdir ${cwd}/tmp/build
# Copy only the .c files (to be restored)
cd ${cwd}/tmp/build
ls >../1
cd ..
-sed s%\^%${cwd}/tmp/build/% 1 >restore-list
+sed s%\^%${cwd}/tmp/build/% 1 | sort | uniq >restore-list
#
# At this point restore-list contains the list
# of files we will restore
change_jobname NightlySave $JobName
start_test
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
label storage=DDS-4 volume=TestVolume001 pool=Default
run job=$JobName yes
wait
@#
@# now do a restore
@#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
setdebug level=30 fd
setdebug level=10 storage=DDS-4
sql