added --strict test
authorMichael Rash <mbr@cipherdyne.org>
Thu, 20 Dec 2012 03:45:40 +0000 (22:45 -0500)
committerMichael Rash <mbr@cipherdyne.org>
Thu, 20 Dec 2012 03:45:40 +0000 (22:45 -0500)
test/test-fwsnort.pl

index bb3f122..f96f322 100755 (executable)
@@ -200,6 +200,21 @@ my @tests = (
     },
     {
         'category'  => 'operations',
+        'detail'    => "--strict --include-type backdoor",
+        'err_msg'   => "did not translate backdoor signatures",
+        'positive_output_matches' => [
+            qr/backdoor\.rules/,
+            qr/Generated\siptables\srules\sfor/
+        ],
+        'match_all' => $MATCH_ALL_RE,
+        'function'  => \&generic_exec,
+        'cmdline'   => "$fwsnortCmd --no-ipt-test -c $default_conf --strict --include-type backdoor",
+        'fw_exec'   => $fw_exec,
+        'exec_err'  => $NO,
+        'fatal'     => $NO
+    },
+    {
+        'category'  => 'operations',
         'detail'    => "--include-type emerging-all",
         'err_msg'   => "did not translate emerging-all signatures",
         'positive_output_matches' => [