Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/many_netns_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ PORT=5201
SLEEPTIME=1
TIMEOUT=30

set +e
LSOF=$(which lsof 2>/dev/null)
if [[ -z "$LSOF" ]]; then
echo "lsof not available, skipping..."
exit 0
fi
set -e

for i in $(seq 1 1000); do
ip netns add ${NETNS_PREFIX}-extra${i}
Expand Down
8 changes: 8 additions & 0 deletions test/syn_flood_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@

. ./test_lib.sh

set +e
$HPING --help >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "hping ($HPING) unavailable/does not work, skipping test..."
exit 0
fi
set -e

LOGFILE=$TESTLOG_LAST

SLEEPTIME=1
Expand Down
1 change: 0 additions & 1 deletion test/test_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ check_prog "$NC" nc nmap-netcat
export STRESS_NG=$(which stress-ng 2>/dev/null)
check_prog "$STRESS_NG" stress-ng stress-ng
export HPING=$(which hping3 2>/dev/null)
check_prog "$HPING" hping3 hping3
export FIREWALL_CMD=$(which firewall-cmd 2>/dev/null)
export AUDIT_CMD=$(which auditctl 2>/dev/null)
export JQ_CMD=$(which jq 2>/dev/null)
Expand Down