]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/strip-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / strip-test
index d29837235bc0554f2ae72f540270a146962869ac..cadac49f6d09461a976d1571047128a78cfcd0d9 100755 (executable)
@@ -9,10 +9,9 @@ JobName=stripTest
 scripts/cleanup
 scripts/copy-strip-confs
 
-
 # Make a copy of build/src/dird to be backed up
 rm -rf ${tmp}/$$-strip
-mkdir ${tmp}/$$-strip
+mkdir -p ${tmp}/$$-strip
 cp -rpf ${cwd}/build/src/dird/ ${tmp}/$$-strip/
 echo "${tmp}/$$-strip" >${cwd}/tmp/file-list
 
@@ -20,7 +19,7 @@ echo "${tmp}/$$-strip" >${cwd}/tmp/file-list
 #   the backup will do and put the result in rpath
 echo "${tmp}/$$-strip/" >${tmp}/1
 rpath=`cut -f5- -d'/' ${tmp}/1`
-echo "========= $rpath"
+#echo "========= $rpath"
 
 change_jobname NightlySave $JobName
 start_test
@@ -28,6 +27,9 @@ start_test
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @$out /dev/null
 messages
+@#
+@# Do a backup
+@#
 @$out ${cwd}/tmp/log1.out
 @#setdebug level=150 dir
 @#setdebug level=150 storage=FileStorage
@@ -56,7 +58,6 @@ restore where=${cwd}/tmp/bacula-restores select all storage=FileStorage done
 yes
 wait
 messages
-@$out
 quit
 END_OF_DATA