From 52f75dd2d7ab5141ebaf78c3ed088bcc3299ba32 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 8 Sep 2008 21:55:52 +0000 Subject: [PATCH] Enhance verify test to do DiskToCatalog git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7575 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/tests/verify-vol-test | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/regress/tests/verify-vol-test b/regress/tests/verify-vol-test index 88e875ac66..9977d8ebf8 100755 --- a/regress/tests/verify-vol-test +++ b/regress/tests/verify-vol-test @@ -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 -- 2.39.5