]> git.sur5r.net Git - bacula/bacula/commitdiff
Enhance verify test to do DiskToCatalog
authorKern Sibbald <kern@sibbald.com>
Mon, 8 Sep 2008 21:55:52 +0000 (21:55 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 8 Sep 2008 21:55:52 +0000 (21:55 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7575 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/verify-vol-test

index 88e875ac662fffb7d48d61d9b004d3410e22efdd..9977d8ebf82434d8347d9bb0f86e73f391841fce 100755 (executable)
@@ -27,12 +27,17 @@ messages
 @# 
 @# now do a verify volume
 @#
-@$out ${cwd}/tmp/original
+@$out ${cwd}/tmp/log2.out
 setdebug level=12 dir
 run job=VerifyVolume
 yes
 wait
 messages
+@$out ${cwd}/tmp/log3.out
+run job=VerifyVolume level=DiskToCatalog
+yes
+wait
+messages
 @$out
 quit
 END_OF_DATA
@@ -45,7 +50,11 @@ stop_bacula
 
 grep "^  Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
 bstat=$?
-grep "^  Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
+grep "^  Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
 rstat=$?
+if test $rstat=0; then
+   grep "^  Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null
+   rstat=$?
+fi
 dstat=0
 end_test