tests: soak gate via uploaded helper (quoting), 04/05 assertions fixed (pf interface name vs OS device)

This commit is contained in:
lgcosta committed 2026-11-11 19:59:27 -03:00
1 parent 3aa0c2d0d0
commit 18c0a69f74
4 files changed
+45 -26

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Helper executed ON pf0 by 14-soak.sh (uploaded with pfput to avoid quoting
# hell through two ssh hops).
# $1 = "slab" | "dmesg" | "states"
case "${1:-}" in
slab)
grep -E '^(pf|pfk)' /proc/slabinfo | tr -s ' ' | cut -d' ' -f1,3 | sort
;;
dmesg)
dmesg | grep -E 'BUG:|WARNING:|Oops|general protection|kernel BUG' || true
;;
states)
/opt/pf/pfctl -s states 2>/dev/null | grep -c 'icmp' || true
;;
esac