From 61f8c2a8f9607f10115e0be178927380d6be6218 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 29 Mar 2009 09:37:01 +0000 Subject: [PATCH] Enhance virtual backup test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8636 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/tests/virtual-backup2-test | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/regress/tests/virtual-backup2-test b/regress/tests/virtual-backup2-test index 39cddf57bf..6563a9170f 100755 --- a/regress/tests/virtual-backup2-test +++ b/regress/tests/virtual-backup2-test @@ -26,13 +26,15 @@ start_test # Write out bconsole commands cat <${cwd}/tmp/bconcmds -@output +@output /dev/null messages @$out ${cwd}/tmp/log1.out setdebug level=150 storage=DiskChanger label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Default drive=0 -label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0 -label storage=DiskChanger volume=ChangerVolume003 slot=3 Pool=Full drive=0 +label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Default drive=0 +label storage=DiskChanger volume=ChangerVolume003 slot=3 Pool=Default drive=0 +label storage=DiskChanger volume=ChangerVolume004 slot=4 Pool=Full drive=0 +label storage=DiskChanger volume=ChangerVolume005 slot=5 Pool=Full drive=0 setdebug level=0 storage=DiskChanger @# run several jobs @exec "sh -c 'date > ${cwd}/build/date'" @@ -40,16 +42,19 @@ run job=$JobName level=Full storage=DiskChanger yes wait messages list jobs +list volumes @exec "sh -c 'touch ${cwd}/build/src/dird/*.c'" run job=$JobName level=Incremental storage=DiskChanger yes wait messages list jobs +list volumes @exec "sh -c 'touch ${cwd}/build/src/dird/*.o'" run job=$JobName level=Differential storage=DiskChanger yes wait messages list jobs +list volumes @exec "sh -c 'date > ${cwd}/build/date'" @exec "sh -c 'touch ${cwd}/build/src/dird/*.o'" run job=$JobName level=Incremental storage=DiskChanger yes @@ -67,6 +72,7 @@ mark * done yes wait +list jobs list volumes @#setdebug level=100 dir @# @@ -76,8 +82,8 @@ setdebug level=151 storage=DiskChanger run job=$JobName level=VirtualFull storage=DiskChanger yes wait messages -list volumes list jobs +list volumes @# @# now do a restore of the Virtual backup @# @@ -92,8 +98,8 @@ wait update Volume=ChangerVolume002 11 Default -list volumes list jobs +list volumes messages @exec "sh -c 'touch ${cwd}/build/src/dird/*.o'" @# @@ -124,8 +130,8 @@ mark * done yes wait -list volumes list jobs +list volumes messages @output quit -- 2.39.5