From ed183e43dbe5a896909470be172ad6ee45219f76 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 5 Mar 2018 16:19:02 +0100 Subject: tests: shell: set timeout and size combination coverage Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/0031set_timeout_size_0 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tests/shell/testcases/sets/0031set_timeout_size_0 (limited to 'tests/shell/testcases/sets/0031set_timeout_size_0') diff --git a/tests/shell/testcases/sets/0031set_timeout_size_0 b/tests/shell/testcases/sets/0031set_timeout_size_0 new file mode 100755 index 00000000..ef65972a --- /dev/null +++ b/tests/shell/testcases/sets/0031set_timeout_size_0 @@ -0,0 +1,15 @@ +#!/bin/bash + +tmpfile=$(mktemp) +if [ ! -w $tmpfile ] ; then + echo "Failed to create tmp file" >&2 + exit 0 +fi + +trap "rm -rf $tmpfile" EXIT # cleanup if aborted + +echo "add table x +add set x y { type ipv4_addr; size 128; timeout 30s; }" + +set -e +$NFT -f $tmpfile -- cgit v1.2.3