summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/bogons/assert_failures
blob: 79099427c98a4339f33541e9ae8f406d2b03129d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

dir=$(dirname $0)/nft-f/

for f in $dir/*; do
	$NFT --check -f "$f"

	if [ $? -ne 1 ]; then
		echo "Bogus input file $f did not cause expected error code" 1>&2
		exit 111
	fi
done