From: Kern Sibbald Date: Fri, 10 Aug 2018 14:24:01 +0000 (+0200) Subject: Tweak add debug aids to virtual-jobid-test X-Git-Tag: Release-9.2.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=786d557aac44bc63d095f42426bbbd918e251f1f;p=thirdparty%2Fbacula.git Tweak add debug aids to virtual-jobid-test --- diff --git a/regress/tests/virtual-jobid-test b/regress/tests/virtual-jobid-test index ac26e95ed..9db32bb80 100755 --- a/regress/tests/virtual-jobid-test +++ b/regress/tests/virtual-jobid-test @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2000-2017 Kern Sibbald +# Copyright (C) 2000-2018 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # # Run a simple backup of the Bacula build directory then do a @@ -48,26 +48,31 @@ label storage=File volume=FileVolume001 Pool=Default label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0 @# run several jobs +@# JobId 1 @exec "sh -c 'date > ${cwd}/build/date'" run job=$JobName level=Full yes wait messages list jobs @exec "sh -c 'touch ${cwd}/build/inc1'" +@# JobId 2 run job=$JobName level=Incremental yes wait messages list jobs @exec "sh -c 'touch ${cwd}/build/diff1'" +@# JobId 3 run job=$JobName level=Differential yes wait messages list jobs @exec "sh -c 'touch ${cwd}/build/inc2'" +@# JobId 4 run job=$JobName level=Incremental yes wait messages list jobs +@# JobId 5 run job=Save level=Full yes wait messages @@ -75,51 +80,61 @@ list jobs @# should Consolidate Full, Incremental @$out $tmp/log5.out setdebug level=100 dir trace=1 +@# JobId 6 -- should consolidate JobIds 1,3,4 run job=$JobName jobid=4 level=VirtualFull yes wait messages list jobs @$out $tmp/log6.out +@# JobId 7 run job=$JobName jobid=3 level=VirtualFull yes wait messages list jobs @$out $tmp/log7.out +@# JobId 8 - Should consolidate JobIds 1,2 run job=$JobName jobid=2 level=VirtualFull yes wait messages list jobs @$out $tmp/log8.out +@# JobId 9 run job=$JobName jobid=1,2 level=VirtualFull yes wait messages list jobs @$out $tmp/log9.out +@# JobId 10 run job=$JobName jobid=1,3 level=VirtualFull yes wait messages list jobs @$out $tmp/log10.out +@# JobId 11 run job=$JobName jobid=1,3,4 level=VirtualFull yes wait messages list jobs @$out $tmp/log11.out +@# JobId 12 -- should consolidate JobIds 1,2,3,4 run job=$JobName jobid=1-5 level=VirtualFull yes wait messages list jobs @$out $tmp/log12.out +@# JobId 13 -- should consolidate JobIds 2,4 run job=$JobName jobid=2-5 level=VirtualFull yes wait messages list jobs @$out $tmp/log13.out +@# JobId 14 run job=$JobName jobid=2,4 level=VirtualFull yes wait messages list jobs @$out $tmp/log14.out +@# JobId 15 -- should consolidate 1-5 (note alljobid) run job=$JobName alljobid=1-5 level=VirtualFull yes wait messages