diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-04-04 16:32:20 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-04-09 21:42:16 +0200 |
commit | fd9361feaafe075c50c2a2a2a627553d097cb1b3 (patch) | |
tree | 2628c04a8c329fe2ea102af0d882a01e61610bd8 /tests/check_extensions | |
parent | 2222b6adb0be1bdffd58875c5c874e89b0aec4cd (diff) |
Add new testsuite entries to verify counters and the new type implementations
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'tests/check_extensions')
-rw-r--r-- | tests/check_extensions | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/check_extensions b/tests/check_extensions new file mode 100644 index 0000000..5848b38 --- /dev/null +++ b/tests/check_extensions @@ -0,0 +1,10 @@ +#!/bin/bash + +read ip t timeout p packets b bytes <<< $(../src/ipset l $1 | grep ^$2) +test -z "$timeout" -o -z "$packets" -o -z "$bytes" && exit 1 +test $timeout -gt $3 -o $timeout -lt $(($3 - 10)) && exit 1 +test $packets -ne $4 -o $bytes -ne $5 && exit 1 +exit 0 + + + |