]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/encrypt-bug-test
Add more debug
[bacula/bacula] / regress / tests / encrypt-bug-test
index f39f036a79224242717490c62cce9c6f45eeee94..93f2b2ef3502a4128ffddde955ab38badfbb0683 100755 (executable)
@@ -6,20 +6,28 @@
 TestName="encrypt-bug-test"
 JobName=Crypto-bug
 . scripts/functions
-set_debug 0
 
 scripts/cleanup
 scripts/copy-crypto-confs
-file="${cwd}/encrypt-bug.jpg"
-echo "${file}" >/tmp/file-list
+echo "${cwd}/encrypt-bug.jpg"   >${cwd}/tmp/file-list
+echo "${cwd}/encrypt-bug.jpg"   >${cwd}/tmp/restore-list
+echo "${cwd}/encrypt-bug.txt"  >>${cwd}/tmp/file-list
+echo "${cwd}/encrypt-bug.txt"  >>${cwd}/tmp/restore-list
+echo "${cwd}/encrypt-bug2.txt" >>${cwd}/tmp/file-list
+echo "${cwd}/encrypt-bug2.txt" >>${cwd}/tmp/restore-list
+files="encrypt-bug.jpg encrypt-bug.txt encrypt-bug2.txt"
+mkdir -p ${cwd}/tmp/build
+for i in ${files}; do
+   cp -p ${cwd}/encrypt-bug*.* ${cwd}/tmp/build
+done
 
 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=100 fd
 run job=$JobName yes
@@ -28,7 +36,7 @@ messages
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 setdebug level=100 fd
 restore where=${cwd}/tmp/bacula-restores storage=File
 5
@@ -47,10 +55,10 @@ 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
-diff ${file} ${cwd}/tmp/bacula-restores/${file} 2>&1 >/dev/null
+diff ${cwd}/tmp/build ${cwd}/tmp/bacula-restores/${cwd} 2>&1 >/dev/null
 dstat=$?
 end_test