Skip to content

Commit

Permalink
tests: add tcpdump as runtime dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Jarry <[email protected]>
  • Loading branch information
rjarry committed May 24, 2024
1 parent 28ab807 commit 65e2874
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
dnf install -y \
make gcc ccache ninja-build meson git gcovr scdoc \
socat \
tcpdump \
iproute \
iputils \
libasan \
Expand Down
5 changes: 4 additions & 1 deletion tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ test_scripts = files(
)

sudo = find_program('sudo', required: false)
if sudo.found()
tcpdump = find_program('tcpdump', required: false)
ping = find_program('ping', required: false)
ip = find_program('ip', required: false)
if sudo.found() and tcpdump.found() and ping.found() and ip.found()
foreach t : test_scripts
if run_command(sudo, '-ll', t, check: false).returncode() == 0
name = fs.replace_suffix(t, '')
Expand Down

0 comments on commit 65e2874

Please sign in to comment.