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
  • Loading branch information
jasonish authored and victorjulien committed Aug 9, 2022
1 parent 9a1d6af commit d9b6e1d
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 @@ -253,6 +253,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 @@ -326,6 +329,8 @@ jobs:
path: prep
- run: tar xf prep/suricata-verify.tar.gz
- run: python3 ./suricata-verify/run.py -q
- run: suricata-update -V
- run: suricatasc -h

fedora-36:
name: Fedora 36 (debug, clang, asan, wshadow, rust-strict)
Expand Down Expand Up @@ -383,6 +388,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 Down Expand Up @@ -413,6 +419,9 @@ jobs:
- run: test -e /usr/local/lib/libsuricata_rust.a
- run: test -e /usr/local/bin/libsuricata-config
- run: test ! -e /usr/local/lib/libsuricata.so
- 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 @@ -470,6 +479,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 Down Expand Up @@ -500,6 +510,9 @@ jobs:
- run: test -e /usr/local/lib/libsuricata_rust.a
- run: test -e /usr/local/bin/libsuricata-config
- run: test ! -e /usr/local/lib/libsuricata.so
- run: make install
- run: suricata-update -V
- run: suricatasc -h

fedora-35-no-jansson:
name: Fedora 35 (no jansson)
Expand Down Expand Up @@ -857,6 +870,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 Down Expand Up @@ -885,6 +899,8 @@ jobs:
- run: test -e /usr/local/bin/libsuricata-config
- run: test -e /usr/local/lib/libsuricata.so
- run: test -e /usr/local/lib/$(readlink /usr/local/lib/libsuricata.so)
- run: suricata-update -V
- run: suricatasc -h

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

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

macos-latest:
name: MacOS Latest
Expand Down Expand Up @@ -1339,6 +1361,7 @@ 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
Expand All @@ -1347,6 +1370,9 @@ jobs:
- run: tar xf prep/suricata-verify.tar.gz
- name: Running suricata-verify
run: python3 ./suricata-verify/run.py -q
- run: make install
- run: suricata-update -V
- run: suricatasc -h

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

windows-msys2-mingw64-libpcap:
name: Windows MSYS2 MINGW64 (libpcap)
Expand Down Expand Up @@ -1433,3 +1461,5 @@ jobs:
./src/suricata --build-info
./src/suricata -u -l /tmp/
python3 ./suricata-verify/run.py -q
- run: make install
- run: suricata-update -V

0 comments on commit d9b6e1d

Please sign in to comment.