From 138c425da88e7959f681262becaeb27a34ac3bb3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 4 Sep 2010 22:47:31 +0200 Subject: [PATCH] regress: Add test for new jobid= option in verify-voltocat-test --- regress/tests/verify-voltocat-test | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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 -- 2.39.5