From: Jason Ish Date: Mon, 31 Mar 2025 19:13:09 +0000 (-0600) Subject: github-ci: add test for custom lib example X-Git-Tag: suricata-8.0.0-beta1~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=455aef7a226e8a368e0cea0f446113631b9be527;p=thirdparty%2Fsuricata.git github-ci: add test for custom lib example Ticket: #7240 --- diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index c2a3380ec3..06200d335d 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -202,12 +202,20 @@ jobs: working-directory: examples/lib/simple run: PATH=/usr/local/bin:$PATH make -f Makefile.example clean all + - name: Test custom lib example + run: | + make + ./custom -- ../../../qa/docker/pcaps/tls.pcap + test $(cat eve.json |jq 'select(.stats) | .stats.decoder.pkts') = 110 + working-directory: examples/lib/custom + - name: Cleaning source directory for standalone plugin test. run: make clean + - name: Test plugin against installed headers working-directory: examples/plugins/c-json-filetype run: | - # First use sed to pretend we are q user following our + # First use sed to pretend we are a user following our # directions for building a standalone plugin. sed -i 's/^#LIBSURICATA_CONFIG/LIBSURICATA_CONFIG/' Makefile sed -i 's/^#CPPFLAGS/CPPFLAGS/' Makefile