From fd9361feaafe075c50c2a2a2a627553d097cb1b3 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 4 Apr 2013 16:32:20 +0200 Subject: Add new testsuite entries to verify counters and the new type implementations Signed-off-by: Jozsef Kadlecsik --- tests/check_counters | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/check_counters (limited to 'tests/check_counters') diff --git a/tests/check_counters b/tests/check_counters new file mode 100644 index 0000000..0099f23 --- /dev/null +++ b/tests/check_counters @@ -0,0 +1,9 @@ +#!/bin/bash + +read ip p packets b bytes <<< $(../src/ipset l $1 | grep ^$2) +test -z "$packets" -o -z "$bytes" && exit 1 +test $packets -ne $3 -o $bytes -ne $4 && exit 1 +exit 0 + + + -- cgit v1.2.3