From: Eric Bollengier Date: Sat, 4 Sep 2010 20:47:31 +0000 (+0200) Subject: regress: Add test for new jobid= option in verify-voltocat-test X-Git-Tag: Release-5.2.1~1121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=138c425da88e7959f681262becaeb27a34ac3bb3;p=bacula%2Fbacula regress: Add test for new jobid= option in verify-voltocat-test --- diff --git a/regress/tests/verify-voltocat-test b/regress/tests/verify-voltocat-test index 99f758e5b1..206c65f5e4 100755 --- a/regress/tests/verify-voltocat-test +++ b/regress/tests/verify-voltocat-test @@ -18,10 +18,14 @@ start_test cat <tmp/bconcmds @$out /dev/null messages -@$out tmp/log1.out +@$out tmp/log0.out setdebug level=1 storage=File sd label storage=File volume=TestVolume001 -run job=$JobName yes +run level=full job=$JobName yes +wait +messages +@$out tmp/log1.out +run level=full job=$JobName yes wait messages @# @@ -33,6 +37,12 @@ run job=VerifyVolume level=VolumeToCatalog yes wait messages +@$out ${cwd}/tmp/log4.out +setdebug level=12 dir +run job=VerifyVolume jobid=1 level=VolumeToCatalog +yes +wait +messages @$out ${cwd}/tmp/log3.out @# @# Now a backup with nothing changed @@ -58,4 +68,11 @@ grep "^ Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null rstat=$? grep "^ Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null dstat=$? +grep "Verify JobId: *2" tmp/log2.out 2>&1 >/dev/null +dstat=$(($dstat + $?)) +grep "Verify JobId: *1" tmp/log4.out 2>&1 >/dev/null +dstat=$(($dstat + $?)) +grep "Verify Job: *VerifyVol" tmp/log4.out 2>&1 >/dev/null +dstat=$(($dstat + $?)) + end_test