From: Victor Julien Date: Fri, 29 Nov 2024 10:07:02 +0000 (+0100) Subject: github-actions: add basic commandline tests X-Git-Tag: suricata-8.0.0-beta1~675 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=663fa0c518fea948c7385a66b5fdb8c1a0b37420;p=thirdparty%2Fsuricata.git github-actions: add basic commandline tests Run various commandlines, checking that they don't error/crash. Also counts towards coverage. --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index c83217d3f3..a23adfc901 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -1514,6 +1514,10 @@ jobs: env: LLVM_PROFILE_FILE: "/tmp/ut.profraw" - run: llvm-profdata-14 merge -o ut.profdata /tmp/ut.profraw + - run: ./src/suricata --list-runmodes -l /tmp + env: + LLVM_PROFILE_FILE: "/tmp/listrunmodes.profraw" + - run: llvm-profdata-14 merge -o listrunmodes.profdata /tmp/listrunmodes.profraw - run: ./src/suricata --list-keywords -l /tmp env: LLVM_PROFILE_FILE: "/tmp/lk.profraw" @@ -1522,6 +1526,14 @@ jobs: env: LLVM_PROFILE_FILE: "/tmp/la.profraw" - run: llvm-profdata-14 merge -o la.profdata /tmp/la.profraw + - run: ./src/suricata --dump-features -c suricata.yaml -l /tmp + env: + LLVM_PROFILE_FILE: "/tmp/dumpfeatures.profraw" + - run: llvm-profdata-14 merge -o dumpfeatures.profdata /tmp/dumpfeatures.profraw + - run: ./src/suricata --dump-config -c suricata.yaml -l /tmp + env: + LLVM_PROFILE_FILE: "/tmp/dumpconfig.profraw" + - run: llvm-profdata-14 merge -o dumpconfig.profdata /tmp/dumpconfig.profraw - run: llvm-cov-14 show ./src/suricata -instr-profile=ut.profdata --show-instantiations --ignore-filename-regex="^/root/.*" > coverage.txt - run: | cd rust