summaryrefslogtreecommitdiffstats
path: root/debian/tests/internaltest-shell.sh
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/internaltest-shell.sh')
-rw-r--r--debian/tests/internaltest-shell.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/internaltest-shell.sh b/debian/tests/internaltest-shell.sh
new file mode 100644
index 0000000..a3fdcbc
--- /dev/null
+++ b/debian/tests/internaltest-shell.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Run the internal tests of nftables (shell)
+
+# The testsuite requires kernel at least 5.x
+if [ "$(uname -r | cut -d. -f1)" -lt 5 ] ; then
+ echo "W: this testsuite is likely to produce many fails because of old kernel, ending now"
+ exit 0
+fi
+
+set -e
+cd tests/shell
+NFT=$(which nft) ./run-tests.sh -v