summaryrefslogtreecommitdiff
path: root/tests/conntrack/run-test.sh
blob: 2b7b6f21a9d140b1c93d84327fe7965b378c1cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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