]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/data-encrypt-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / data-encrypt-test
index d184c9737bf64150444a9a9352ea19cf8f582c97..8ef59c367f50ebd073522e7408897bb7d972e6d1 100755 (executable)
@@ -7,19 +7,18 @@
 TestName="data-encrypt-test"
 JobName=Crypto
 . scripts/functions
-set_debug 0
 
 scripts/cleanup
 scripts/copy-crypto-confs
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 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=File volume=TestVolume001
 @#setdebug level=10 fd
 run job=$JobName yes
@@ -28,7 +27,7 @@ messages
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 @#setdebug level=10 fd
 restore where=${cwd}/tmp/bacula-restores storage=File
 5
@@ -37,7 +36,6 @@ done
 yes
 wait
 messages
-@$out
 quit
 END_OF_DATA
 
@@ -47,8 +45,7 @@ check_for_zombie_jobs storage=File
 stop_bacula
 
 du -s build
-du -s tmp/bacula-restores/
-
+du -s ${cwd}/tmp/bacula-restores/
 
 check_two_logs
 check_restore_diff