]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: Add test for new jobid= option in verify-voltocat-test
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 4 Sep 2010 20:47:31 +0000 (22:47 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 7 Sep 2010 19:07:41 +0000 (21:07 +0200)
regress/tests/verify-voltocat-test

index 99f758e5b12a3cf2d1de015616e7dce521a16281..206c65f5e4cf5c3b8a3bb82499b2d52a9bfe3eca 100755 (executable)
@@ -18,10 +18,14 @@ start_test
 cat <<END_OF_DATA >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