summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/bogons/assert_failures
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/bogons/assert_failures')
-rwxr-xr-xtests/shell/testcases/bogons/assert_failures12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/assert_failures b/tests/shell/testcases/bogons/assert_failures
new file mode 100755
index 0000000..7909942
--- /dev/null
+++ b/tests/shell/testcases/bogons/assert_failures
@@ -0,0 +1,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