]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: add more check to bsr-loop-test
authorAlain Spineux <alain@baculasystems.com>
Thu, 11 Aug 2022 12:04:56 +0000 (14:04 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:59 +0000 (13:56 +0200)
- check the number of session with the SD
- check the number of mount of a volume

regress/tests/bsr-loop-test

index 5defd5d02a714539dcf84ac852449863bd1fbdd7..b4f10582e3920ca096822b827219c5990e919ae9 100755 (executable)
@@ -140,4 +140,15 @@ fi
 check_two_logs
 check_restore_diff
 
+connection=`grep "Connected to Storage at" $tmp/log2.out | wc -l`
+mount=`grep "Ready to read from volume" $tmp/log2.out | wc -l`
+if [ $connection -ne 3 ]; then
+    print_debug "ERROR: The BSR should be split into 3 parts, not $connection"
+    estat=1
+fi
+if [ $mount -ne 9 ]; then
+    print_debug "ERROR: The 6 volumes should be mounted 9 times, not $mount"
+    estat=1
+fi
+
 end_test