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