]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: add --list-app-layer-hooks checks
authorVictor Julien <vjulien@oisf.net>
Fri, 9 May 2025 10:14:16 +0000 (12:14 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 10 May 2025 23:09:38 +0000 (01:09 +0200)
.github/workflows/builds.yml

index 5d1a5e4d0201a4b4ab082d580244d28057026a78..9d177163800dcd5596194c541c73aaee8966f27e 100644 (file)
@@ -309,6 +309,7 @@ jobs:
       - run: ./scripts/setup-app-layer.py --parser --logger --detect FooBar payload
       - run: make -j ${{ env.CPUS }}
       - run: ./src/suricata --list-app-layer-protos | grep foobar
+      - run: ./src/suricata --list-app-layer-hooks | grep "foobar:request_started"
       - name: Verify rustfmt
         run: rustfmt -v --check src/applayerfoobar/*.rs
         working-directory: rust
@@ -953,6 +954,9 @@ jobs:
       - run: sudo -u suricata -s python3 ./suricata-verify/run.py -q --debug-failed
         working-directory: /home/suricata/suricata
 
+      - run: src/suricata -h | grep '\-\-list\-app\-layer\-hooks' &> /dev/null
+        working-directory: /home/suricata/suricata
+
   # Test that ./configure fails out of libjansson is not available.
   almalinux-9-no-jansson:
     name: AlmaLinux 9 (no jansson)
@@ -1243,6 +1247,10 @@ jobs:
         env:
           LLVM_PROFILE_FILE: "/tmp/la.profraw"
       - run: llvm-profdata-19 merge -o la.profdata /tmp/la.profraw
+      - run: ./src/suricata --list-app-layer-hooks -l /tmp
+        env:
+          LLVM_PROFILE_FILE: "/tmp/lah.profraw"
+      - run: llvm-profdata-19 merge -o lah.profdata /tmp/lah.profraw
       - run: ./src/suricata --dump-features -c suricata.yaml -l /tmp
         env:
           LLVM_PROFILE_FILE: "/tmp/dumpfeatures.profraw"