]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Mark 2 tests with min-version 4.0.
authorJason Ish <ish@unx.ca>
Mon, 4 Dec 2017 13:39:22 +0000 (07:39 -0600)
committerJason Ish <ish@unx.ca>
Mon, 4 Dec 2017 13:39:22 +0000 (07:39 -0600)
run.py
tests/dns-tcp-ts-gap/test.yaml [new file with mode: 0644]
tests/test-config-empty-rule-file/README.md [new file with mode: 0644]
tests/test-config-empty-rule-file/test.yaml [new file with mode: 0644]

diff --git a/run.py b/run.py
index a44187a4e774b1e526082fa14f28bcabedb87bbd..cdad6b2f662f3427961ad48f21453b7ebcf4fff7 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -335,8 +335,10 @@ def main():
             test_runner = TestRunner(
                 cwd, dirpath, suricata_config, args.verbose)
             try:
-                test_runner.run()
-                passed += 1
+                if test_runner.run():
+                    passed += 1
+                else:
+                    failed += 1
             except UnsatisfiedRequirementError as err:
                 print("SKIPPED: %s" % (str(err)))
                 skipped += 1
diff --git a/tests/dns-tcp-ts-gap/test.yaml b/tests/dns-tcp-ts-gap/test.yaml
new file mode 100644 (file)
index 0000000..bdf6e28
--- /dev/null
@@ -0,0 +1,3 @@
+requires:
+  # App-layer gap handling didn't happen until v4.
+  min-version: 4.0.0
diff --git a/tests/test-config-empty-rule-file/README.md b/tests/test-config-empty-rule-file/README.md
new file mode 100644 (file)
index 0000000..08e884f
--- /dev/null
@@ -0,0 +1,4 @@
+Check that an empty rule files does not leed to a startup error.
+
+This fix didn't appear until 4.0.0.
+
diff --git a/tests/test-config-empty-rule-file/test.yaml b/tests/test-config-empty-rule-file/test.yaml
new file mode 100644 (file)
index 0000000..ab70817
--- /dev/null
@@ -0,0 +1,2 @@
+requires:
+  min-version: 4.0.0