]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/vtape-test-changer
regress: add function to create many dirs
[bacula/bacula] / regress / tests / vtape-test-changer
index c2811a20679c4aaff3bfa17beb76a0f7279ed8e0..fabbbcb69a4dd6e8e3778664cf31c60ba3d2afa9 100755 (executable)
@@ -19,8 +19,8 @@ require_vtape
 
 scripts/cleanup
 scripts/copy-tape-confs
-cp scripts/bacula-dir-vtape.conf bin/bacula-dir.conf
-cp scripts/bacula-sd-vtape.conf bin/bacula-sd.conf
+cp $rscripts/bacula-dir-vtape.conf $conf/bacula-dir.conf
+cp $rscripts/bacula-sd-vtape.conf $conf/bacula-sd.conf
 scripts/prepare-fake-autochanger
 
 echo "${cwd}/build" >${cwd}/tmp/file-list
@@ -30,14 +30,14 @@ start_test
 when1=`perl -MPOSIX -e "print strftime('%F %T', localtime(time+30))"`
 when2=`perl -MPOSIX -e "print strftime('%F %T', localtime(time+45))"`
 
-clientname=`awk '/Name = .*-fd/ { if (!ok) { print $3 ; ok=1 } }' $bin/bacula-dir.conf`
+clientname=`awk '/Name = .*-fd/ { if (!ok) { print $3 ; ok=1 } }' bin/bacula-dir.conf`
 
 # Catalog record for cleaning tape "CLN01" successfully created.
 # CLN01      | Cleaning
 
 # Write out bconsole commands
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log6.out
 @#setdebug level=200 storage=LTO1
@@ -88,7 +88,7 @@ messages
 @# 
 @# now do a restore
 @#
-restore fileset="Full Set" pool=Diff where=${cwd}/tmp/bacula-restores select all done
+restore client=$clientname fileset="Full Set" pool=Diff where=${cwd}/tmp/bacula-restores select all done
 yes
 wait
 messages
@@ -141,4 +141,3 @@ if test $? = 0; then
 fi
 
 end_test
-