From: Alain Spineux Date: Thu, 11 Aug 2022 12:04:56 +0000 (+0200) Subject: regress: add more check to bsr-loop-test X-Git-Tag: Beta-15.0.0~444 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=277a7c9701b8be193735132fec7bd162b69067b7;p=thirdparty%2Fbacula.git regress: add more check to bsr-loop-test - check the number of session with the SD - check the number of mount of a volume --- diff --git a/regress/tests/bsr-loop-test b/regress/tests/bsr-loop-test index 5defd5d02..b4f10582e 100755 --- a/regress/tests/bsr-loop-test +++ b/regress/tests/bsr-loop-test @@ -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