From 51c506797a1b23921b66b9184f77ea8c02752cdb Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Thu, 3 Nov 2016 13:04:42 +0100 Subject: tests: shell: introduce the cache testcases directory This directory is for testcases related to the nft cache. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/cache_handling_0 | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 tests/shell/testcases/sets/cache_handling_0 (limited to 'tests/shell/testcases/sets') diff --git a/tests/shell/testcases/sets/cache_handling_0 b/tests/shell/testcases/sets/cache_handling_0 deleted file mode 100755 index 9a737695..00000000 --- a/tests/shell/testcases/sets/cache_handling_0 +++ /dev/null @@ -1,29 +0,0 @@ -#!/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 " -table inet test { - set test { - type ipv4_addr - elements = { 1.1.1.1} - } - - chain test { - ip saddr @test counter accept - ip daddr { 2.2.2.2} counter accept - } -}" > $tmpfile - -set -e - -$NFT -f $tmpfile -$NFT delete rule inet test test handle 2 -$NFT delete set inet test test -$NFT -f $tmpfile -- cgit v1.2.3