diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-05-26 17:47:15 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-05-26 17:47:15 +0200 |
commit | 5e4ce59027bf7170c865388d3d703086f187ce59 (patch) | |
tree | b33f8b77d97d4f7a59488d295376b94a2d0d08c8 | |
parent | 0e1ce4f491e2134d6207f55c4a5f52e157a54707 (diff) |
tests: conntrack: add run-test.sh script
For automated testing of the conntrack utility.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | tests/conntrack/run-test.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/conntrack/run-test.sh b/tests/conntrack/run-test.sh new file mode 100644 index 0000000..2b7b6f2 --- /dev/null +++ b/tests/conntrack/run-test.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +UID=`id -u` +if [ $UID -ne 0 ] +then + echo "Run this test as root" + exit 1 +fi + +gcc test-conntrack.c -o test +# +# XXX: module auto-load not support by nfnetlink_cttimeout yet :-( +# +modprobe nf_conntrack_ipv4 +modprobe nf_conntrack_ipv6 +modprobe nf_conntrack_proto_udplite +modprobe nf_conntrack_proto_sctp +modprobe nf_conntrack_proto_dccp +modprobe nf_conntrack_proto_gre +./test testcases |