]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-actions: convert dpdk tests to use script
authorVictor Julien <vjulien@oisf.net>
Wed, 1 May 2024 10:45:09 +0000 (12:45 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 2 May 2024 10:44:31 +0000 (12:44 +0200)
.github/workflows/builds.yml

index aace4cf5330da44f6e9ff94e60f3f12709d2bbbc..8114cb5bbbe9de5464ae828fb6cf0fe8d8a520e1 100644 (file)
@@ -2314,19 +2314,11 @@ jobs:
       - run: make -j ${{ env.CPUS }}
       - run: make check
       # IDS config
-      - run: rm -f ./eve.json
       - run: |
-          timeout --kill-after=30 --preserve-status 10 \
-            ./src/suricata -c .github/workflows/dpdk/suricata-null-ids.yaml -S /dev/null -l ./ --dpdk -vvvv
-      - run: |
-          test $(jq -c 'select(.event_type == "stats")' ./eve.json | tail -n1 | jq '.stats.capture.packets > 0')  = true
+          ./.github/workflows/live/dpdk.sh ".github/workflows/dpdk/suricata-null-ids.yaml"
       # IPS config
-      - run: rm -f ./eve.json
       - run: |
-          timeout --kill-after=30 --preserve-status 10 \
-            ./src/suricata -c .github/workflows/dpdk/suricata-null-ips.yaml -S /dev/null -l ./ --dpdk -vvvv
-      - run: |
-          test $(jq -c 'select(.event_type == "stats")' ./eve.json | tail -n1 | jq '.stats.capture.packets > 0')  = true
+          ./.github/workflows/live/dpdk.sh ".github/workflows/dpdk/suricata-null-ips.yaml"
 
   debian-12:
     name: Debian 12