From: Eric Bollengier Date: Fri, 8 Oct 2021 12:47:34 +0000 (+0200) Subject: regress: Test both command line and menu in verify-plugin-test X-Git-Tag: Beta-15.0.0~850 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f279a6d3d51bde3973d723fd0779e5b8428154c8;p=thirdparty%2Fbacula.git regress: Test both command line and menu in verify-plugin-test --- diff --git a/regress/tests/verify-plugin-test b/regress/tests/verify-plugin-test index 47bb7a31a..f910bad0c 100755 --- a/regress/tests/verify-plugin-test +++ b/regress/tests/verify-plugin-test @@ -72,6 +72,15 @@ run job=VerifyData jobid=1 storage=File1 yes wait messages +@$out $tmp/log4.out +run job=VerifyData pluginoptions="test1" +no +@$out $tmp/log5.out +run job=VerifyData +mod +10 +test2 +no quit END_OF_DATA @@ -116,6 +125,18 @@ if [ $? = 0 ]; then estat=1 fi +grep "Plugin Options: test1" $tmp/log4.out > /dev/null +if [ $? != 0 ]; then + print_debug "ERROR: Should find the command line plugin options in $tmp/log4.out" + estat=1 +fi + +grep "Plugin Options: test2" $tmp/log5.out > /dev/null +if [ $? != 0 ]; then + print_debug "ERROR: Should find the menu plugin options in $tmp/log5.out" + estat=1 +fi + stop_bacula end_test