dpdk: add DPDK test support in Github CI

Add DPDK dependency to the build process in distributions with
a native support of DPDK in their default package managers.
pull/6708/head
Lukas Sismis 4 years ago committed by Victor Julien
parent dab3274263
commit 4972021cd4

@ -188,6 +188,8 @@ jobs:
automake \ automake \
cargo-vendor \ cargo-vendor \
diffutils \ diffutils \
numactl-devel \
dpdk-devel \
file-devel \ file-devel \
gcc \ gcc \
gcc-c++ \ gcc-c++ \
@ -236,7 +238,7 @@ jobs:
CFLAGS="${DEFAULT_CFLAGS}" ./configure CFLAGS="${DEFAULT_CFLAGS}" ./configure
- run: make -j2 distcheck - run: make -j2 distcheck
env: env:
DISTCHECK_CONFIGURE_FLAGS: "--enable-unittests --enable-debug --enable-lua --enable-geoip --enable-profiling --enable-profiling-locks" DISTCHECK_CONFIGURE_FLAGS: "--enable-unittests --enable-debug --enable-lua --enable-geoip --enable-profiling --enable-profiling-locks --enable-dpdk"
- run: test -e doc/userguide/suricata.1 - run: test -e doc/userguide/suricata.1
- name: Building Rust documentation - name: Building Rust documentation
run: make doc run: make doc
@ -661,6 +663,7 @@ jobs:
libnetfilter-queue1 \ libnetfilter-queue1 \
libnfnetlink-dev \ libnfnetlink-dev \
libnfnetlink0 \ libnfnetlink0 \
libnuma-dev \
libhiredis-dev \ libhiredis-dev \
liblua5.1-dev \ liblua5.1-dev \
libjansson-dev \ libjansson-dev \
@ -676,7 +679,8 @@ jobs:
zlib1g \ zlib1g \
zlib1g-dev \ zlib1g-dev \
exuberant-ctags \ exuberant-ctags \
curl curl \
dpdk-dev
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
@ -736,6 +740,7 @@ jobs:
libnetfilter-queue1 \ libnetfilter-queue1 \
libnfnetlink-dev \ libnfnetlink-dev \
libnfnetlink0 \ libnfnetlink0 \
libnuma-dev \
libhiredis-dev \ libhiredis-dev \
liblua5.1-dev \ liblua5.1-dev \
libjansson-dev \ libjansson-dev \
@ -751,7 +756,8 @@ jobs:
zlib1g \ zlib1g \
zlib1g-dev \ zlib1g-dev \
exuberant-ctags \ exuberant-ctags \
curl curl \
dpdk-dev
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
@ -811,6 +817,7 @@ jobs:
libnetfilter-queue1 \ libnetfilter-queue1 \
libnfnetlink-dev \ libnfnetlink-dev \
libnfnetlink0 \ libnfnetlink0 \
libnuma-dev \
libhiredis-dev \ libhiredis-dev \
liblua5.1-dev \ liblua5.1-dev \
libjansson-dev \ libjansson-dev \
@ -829,7 +836,8 @@ jobs:
unzip \ unzip \
curl \ curl \
time \ time \
wget wget \
dpdk-dev
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
@ -883,6 +891,7 @@ jobs:
libnetfilter-queue1 \ libnetfilter-queue1 \
libnfnetlink-dev \ libnfnetlink-dev \
libnfnetlink0 \ libnfnetlink0 \
libnuma-dev \
libhiredis-dev \ libhiredis-dev \
libjansson-dev \ libjansson-dev \
libevent-dev \ libevent-dev \
@ -897,7 +906,8 @@ jobs:
software-properties-common \ software-properties-common \
zlib1g \ zlib1g \
zlib1g-dev \ zlib1g-dev \
exuberant-ctags exuberant-ctags \
dpdk-dev
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
@ -957,6 +967,7 @@ jobs:
libnetfilter-queue1 \ libnetfilter-queue1 \
libnfnetlink-dev \ libnfnetlink-dev \
libnfnetlink0 \ libnfnetlink0 \
libnuma-dev \
libhiredis-dev \ libhiredis-dev \
libjansson-dev \ libjansson-dev \
libevent-dev \ libevent-dev \
@ -969,6 +980,7 @@ jobs:
software-properties-common \ software-properties-common \
zlib1g \ zlib1g \
zlib1g-dev \ zlib1g-dev \
dpdk-dev
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.33.0 -y - run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.33.0 -y
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Download suricata.tar.gz - name: Download suricata.tar.gz

Loading…
Cancel
Save