From: Victor Julien Date: Wed, 23 Feb 2022 19:59:43 +0000 (+0100) Subject: tests: run Suricata unittests X-Git-Tag: suricata-6.0.8~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F932%2Fhead;p=thirdparty%2Fsuricata-verify.git tests: run Suricata unittests `ut-complete` runs all tests, but disables ASAN leak checks. `ut-leakcheck` runs 500ish tests that should pass. --- diff --git a/tests/ut-complete/test.yaml b/tests/ut-complete/test.yaml new file mode 100644 index 000000000..d8591aa16 --- /dev/null +++ b/tests/ut-complete/test.yaml @@ -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 index 000000000..76f600916 --- /dev/null +++ b/tests/ut-leakcheck/test.yaml @@ -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)" +