]> git.sur5r.net Git - bacula/bacula/commitdiff
Update encryption test
authorKern Sibbald <kern@sibbald.com>
Wed, 2 May 2007 10:32:27 +0000 (10:32 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 2 May 2007 10:32:27 +0000 (10:32 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4673 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/encrypt-bug-test

index f39f036a79224242717490c62cce9c6f45eeee94..0bba2c6185626a869c27371c5b44618c382c961a 100755 (executable)
@@ -10,8 +10,15 @@ set_debug 0
 
 scripts/cleanup
 scripts/copy-crypto-confs
-file="${cwd}/encrypt-bug.jpg"
-echo "${file}" >/tmp/file-list
+echo "${cwd}/encrypt-bug.jpg" >/tmp/file-list
+echo "${cwd}/encrypt-bug.jpg" >${cwd}/tmp/restore-list
+echo "${cwd}/encrypt-bug.txt" >>/tmp/file-list
+echo "${cwd}/encrypt-bug.txt" >>${cwd}/tmp/restore-list
+files="encrypt-bug.jpg encrypt-bug.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
@@ -51,6 +58,6 @@ du -s 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