]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Test the output of test-plugin for store_alist_str() method
authorEric Bollengier <eric@baculasystems.com>
Thu, 18 Mar 2021 13:55:32 +0000 (14:55 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:01 +0000 (09:03 +0100)
regress/tests/plugin-test

index d02b330ceea41993850a4d27a147e0acbf0a6f45..ced94211678e93b8d3a1723b1c00cbdbbeccde89 100755 (executable)
@@ -157,6 +157,18 @@ mod
 mod
 1
 My new string
+mod
+4
+yes
+mod
+5
+test1
+mod
+5
+test2
+mod
+5
+test3="this is a test"
 yes
 yes
 wait
@@ -212,6 +224,12 @@ if [ $? != 0 ]; then
     estat=1
 fi
 
+grep '[test1][test2][test3="this is a test"]' $tmp/log3.out > /dev/null
+if [ $? != 0 ]; then
+    print_debug "ERROR: list plugin option keyword not available in $tmp/log3.out"
+    estat=1
+fi
+
 
 # the test-plugin should create a RestoreObject, just check 
 # compare restore object before/after