]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Test both command line and menu in verify-plugin-test
authorEric Bollengier <eric@baculasystems.com>
Fri, 8 Oct 2021 12:47:34 +0000 (14:47 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 6 Sep 2023 07:49:01 +0000 (09:49 +0200)
regress/tests/verify-plugin-test

index 47bb7a31a23bcc2bbd4feec7a0d560e1174fa188..f910bad0c4663aaa0f1bb2d291ece374093da5c6 100755 (executable)
@@ -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