summaryrefslogtreecommitdiffstats
path: root/tests/runtest.sh
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-04-04 16:32:20 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-04-09 21:42:16 +0200
commitfd9361feaafe075c50c2a2a2a627553d097cb1b3 (patch)
tree2628c04a8c329fe2ea102af0d882a01e61610bd8 /tests/runtest.sh
parent2222b6adb0be1bdffd58875c5c874e89b0aec4cd (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/runtest.sh')
-rwxr-xr-xtests/runtest.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index ad2ac42..c34400b 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -27,11 +27,11 @@ add_tests() {
cmd=ip6tables-save
add=match_target6
fi
- line="`dmesg | tail -1 | cut -d " " -f 2-`"
- if [ ! -e /var/log/kern.log -o -z "`grep -F \"$line\" /var/log/kern.log`" ]; then
- echo "The destination for kernel log is not /var/log/kern.log, skipping $1 match and target tests"
- return
- fi
+ #line="`dmesg | tail -1 | cut -d " " -f 2-`"
+ #if [ ! -e /var/log/kern.log -o -z "`grep -F \"$line\" /var/log/kern.log`" ]; then
+ # echo "The destination for kernel log is not /var/log/kern.log, skipping $1 match and target tests"
+ # return
+ #fi
c=${cmd%%-save}
if [ "`$c -m set -h 2>&1| grep 'cannot open shared object'`" ]; then
echo "$c does not support set match, skipping $1 match and target tests"
@@ -75,6 +75,14 @@ for types in $tests; do
what=$cmd
continue
;;
+ skip)
+ eval $cmd
+ if [ $? -ne 0 ]; then
+ echo "Skipping tests, '$cmd' failed"
+ break
+ fi
+ continue
+ ;;
*)
;;
esac