]> git.sur5r.net Git - bacula/bacula/commitdiff
Add encrypt-bug-test
authorKern Sibbald <kern@sibbald.com>
Thu, 15 Feb 2007 20:28:37 +0000 (20:28 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 15 Feb 2007 20:28:37 +0000 (20:28 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4184 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/encrypt-bug-test [new file with mode: 0755]
regress/tests/six-vol-test

diff --git a/regress/tests/encrypt-bug-test b/regress/tests/encrypt-bug-test
new file mode 100755 (executable)
index 0000000..9c9f468
--- /dev/null
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# Run a simple backup of untitled15.jpg that fails to
+#  restore properly in bug #763 
+#
+TestName="encrypt-bug-test"
+JobName=Crypto-bug
+. scripts/functions
+set_debug 1
+
+scripts/cleanup
+scripts/copy-crypto-confs
+echo "${cwd}/untitled15.jpg" >/tmp/file-list
+
+change_jobname NightlySave $JobName
+start_test
+
+cat <<END_OF_DATA >tmp/bconcmds
+@$out /dev/null
+messages
+@$out tmp/log1.out
+label storage=File volume=TestVolume001
+@#setdebug level=10 fd
+run job=$JobName yes
+wait
+messages
+@# 
+@# now do a restore
+@#
+@$out tmp/log2.out
+@#setdebug level=10 fd
+restore where=${cwd}/tmp/bacula-restores storage=File
+5
+mark *
+done
+yes
+wait
+messages
+@$out
+quit
+END_OF_DATA
+
+run_bacula
+sleep 2
+check_for_zombie_jobs storage=File 
+stop_bacula
+
+du -s build
+du -s tmp/bacula-restores/
+
+
+check_two_logs
+check_restore_diff
+end_test
index 6969c3c7ccd506c2530efcabeafa930e308200db..32effb9b59f37409f4ea393f5f027b715405f4ec 100755 (executable)
@@ -30,6 +30,7 @@ messages
 @$out tmp/log1.out
 run job=$JobName storage=File yes
 wait
+list volumes
 messages
 @# 
 @# now do a restore