Skip to content

Commit

Permalink
github-ci: test execution of suricatasc and suricata-update
Browse files Browse the repository at this point in the history
(cherry picked from commit d9b6e1d)
  • Loading branch information
jasonish committed Sep 1, 2022
1 parent c8a3aa6 commit a7d353e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ jobs:
- name: Building Rust documentation
run: make doc
working-directory: rust
- run: make install
- run: suricatasc -h
- run: suricata-update -V
- name: Preparing distribution
run: |
mkdir dist
Expand Down Expand Up @@ -284,6 +287,7 @@ jobs:
nss-devel \
pcre-devel \
pkgconfig \
python36-PyYAML \
rust \
sudo \
which \
Expand All @@ -306,6 +310,8 @@ jobs:
- run: make distcheck
- run: make clean
- run: make -j2
- run: suricata-update -V
- run: suricatasc -h

fedora-36:
name: Fedora 36 (debug, clang, asan, wshadow, rust-strict)
Expand Down Expand Up @@ -365,6 +371,7 @@ jobs:
name: prep
path: prep
- run: tar xf prep/libhtp.tar.gz
- run: tar xf prep/suricata-update.tar.gz
- name: Setup cbindgen
run: |
mkdir -p $HOME/.cargo/bin
Expand All @@ -382,6 +389,9 @@ jobs:
run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py
- run: make install
- run: suricata-update -V
- run: suricatasc -h

fedora-35:
name: Fedora 35 (debug, clang, asan, wshadow, rust-strict)
Expand Down Expand Up @@ -441,6 +451,7 @@ jobs:
name: prep
path: prep
- run: tar xf prep/libhtp.tar.gz
- run: tar xf prep/suricata-update.tar.gz
- name: Setup cbindgen
run: |
mkdir -p $HOME/.cargo/bin
Expand All @@ -458,6 +469,9 @@ jobs:
run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py
- run: make install
- run: suricata-update -V
- run: suricatasc -h

ubuntu-20-04:
name: Ubuntu 20.04 (no nss, no nspr)
Expand Down Expand Up @@ -575,6 +589,7 @@ jobs:
name: prep
path: prep
- run: tar xf prep/libhtp.tar.gz
- run: tar xf prep/suricata-update.tar.gz
- name: Setup cbindgen
run: |
mkdir -p $HOME/.cargo/bin
Expand All @@ -590,6 +605,9 @@ jobs:
run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py
- run: make install
- run: suricata-update -V
- run: suricatasc -h

ubuntu-20-04-too-old-rust:
name: Ubuntu 20.04 (unsupported rust)
Expand Down Expand Up @@ -1004,6 +1022,9 @@ jobs:
- run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py
- run: make install
- run: suricata-update -V
- run: suricatasc -h

debian-9:
name: Debian 9
Expand Down Expand Up @@ -1068,6 +1089,9 @@ jobs:
- run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py
- run: make install
- run: suricata-update -V
- run: suricatasc -h

macos-latest:
name: MacOS Latest
Expand Down Expand Up @@ -1112,13 +1136,17 @@ jobs:
name: prep
path: prep
- run: tar xvf prep/libhtp.tar.gz
- run: tar xvf prep/suricata-update.tar.gz
- run: ./autogen.sh
- run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-unittests
- run: make -j2
- run: make check
- run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py
- run: make install
- run: suricata-update -V
- run: suricatasc -h

windows-msys2-mingw64:
name: Windows MSYS2 MINGW64
Expand Down Expand Up @@ -1168,3 +1196,5 @@ jobs:
./src/suricata -u -l /tmp/
# need cwd in path due to npcap dlls (see above)
PATH="$PATH:$(pwd)" python3 ./suricata-verify/run.py
- run: make install
- run: suricata-update -V

0 comments on commit a7d353e

Please sign in to comment.