From e358350e161ecff4f0b78ab90b26cf1e4e021bf4 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 16 Aug 2008 06:00:52 +0000 Subject: [PATCH] Update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7480 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/all-disk-tests | 2 ++ regress/tests/virtual-backup-test | 45 +++++++++++++++++++++++++++++-- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/regress/all-disk-tests b/regress/all-disk-tests index 0ddfcae1ba..9355fd676e 100755 --- a/regress/all-disk-tests +++ b/regress/all-disk-tests @@ -56,6 +56,8 @@ nice tests/migration-volume-test nice tests/migration-time-test nice tests/hardlink-test nice tests/tls-test +nice tests/virtual-changer-test +nice tests/virtual-backup-test echo "End non-root disk tests" echo "End non-root disk tests" >>test.out diff --git a/regress/tests/virtual-backup-test b/regress/tests/virtual-backup-test index d9872a0d63..1ff14eac49 100755 --- a/regress/tests/virtual-backup-test +++ b/regress/tests/virtual-backup-test @@ -54,8 +54,18 @@ wait messages list jobs list volumes -setdebug level=100 dir -@# should migrate two jobs +@# +@# now do a restore +@# +@$out ${cwd}/tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select +unmark * +mark * +done +yes +list volumes +@#setdebug level=100 dir +@# should Consolidate Full, Differential and Incremental @#setdebug level=51 storage=DiskChanger run job=$JobName level=VirtualFull yes wait @@ -71,9 +81,40 @@ unmark * mark * done yes +wait +update Volume=ChangerVolume002 +11 +Default +list volumes +list jobs +messages +@exec "sh -c 'touch ${cwd}/build/src/dird/*.o'" +run job=$JobName level=Incremental yes +wait +messages +list jobs list volumes +@# Now do another Consolidation +setdebug level=150 storage=DiskChanger +run job=$JobName level=VirtualFull yes wait messages +list volumes +list jobs +@# +@# now do a restore +@# +@$out ${cwd}/tmp/log2.out +setdebug level=0 storage=DiskChanger +restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger +unmark * +mark * +done +yes +wait +list volumes +list jobs +messages @output quit END_OF_DATA -- 2.39.5