]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: run Suricata unittests 932/head
authorVictor Julien <victor@inliniac.net>
Wed, 23 Feb 2022 19:59:43 +0000 (20:59 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 13 Sep 2022 10:46:50 +0000 (12:46 +0200)
`ut-complete` runs all tests, but disables ASAN leak checks.

`ut-leakcheck` runs 500ish tests that should pass.

tests/ut-complete/test.yaml [new file with mode: 0644]
tests/ut-leakcheck/test.yaml [new file with mode: 0644]

diff --git a/tests/ut-complete/test.yaml b/tests/ut-complete/test.yaml
new file mode 100644 (file)
index 0000000..d8591aa
--- /dev/null
@@ -0,0 +1,10 @@
+requires:
+    min-version: 5
+    features:
+      - UNITTESTS
+
+exit-code: 0
+
+command: |
+  ASAN_OPTIONS=detect_leaks=0 ${SRCDIR}/src/suricata -u -l ${OUTPUT_DIR}
+
diff --git a/tests/ut-leakcheck/test.yaml b/tests/ut-leakcheck/test.yaml
new file mode 100644 (file)
index 0000000..76f6009
--- /dev/null
@@ -0,0 +1,11 @@
+requires:
+    min-version: 5
+    features:
+      - UNITTESTS
+
+exit-code: 0
+
+command: |
+  ASAN_OPTIONS=detect_leaks=1 ${SRCDIR}/src/suricata -u -l ${OUTPUT_DIR} \
+        -U"^(B|Bloom|C|Decode|Defrag|Flags|FlowTest|G|Hash|IpOpt|Log|MacSetTest|MD5|Mem|Mime|MQTT|Pool|PortTestParse|Proto|Q|SCAt|SCL|SCRadix|SHA|SNMP|Spm|SSL|StreamingBufferTest|StreamTcpSack|T|UDP|Update|UTH|UtilS|XFF)"
+