diff options
Diffstat (limited to 'tests/shell/testcases/listing/0004table_0')
-rwxr-xr-x | tests/shell/testcases/listing/0004table_0 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/shell/testcases/listing/0004table_0 b/tests/shell/testcases/listing/0004table_0 new file mode 100755 index 00000000..2c7c9952 --- /dev/null +++ b/tests/shell/testcases/listing/0004table_0 @@ -0,0 +1,19 @@ +#!/bin/bash + +# list table only show table asked for + +EXPECTED="table ip test { +}" + +set -e + +$NFT add table test +$NFT add table test2 + +GET="$($NFT list table test)" +if [ "$EXPECTED" != "$GET" ] ; then + DIFF="$(which diff)" + [ -x $DIFF ] && $DIFF -u <(echo "$EXPECTED") <(echo "$GET") + exit 1 +fi + |