File: internaltest-py.sh

package info (click to toggle)
nftables 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,828 kB
  • sloc: ansic: 38,745; sh: 9,154; yacc: 4,517; python: 1,548; lex: 963; makefile: 266
file content (12 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
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