libnetfilter_cttimeout/tests/run-test.sh
Jianwen Ji 09ab0adc95 initial gating tests for rhel10
JIRA: https://issues.redhat.com/browse/RHELMISC-3943

Signed-off-by: Jianwen Ji <jiji@redhat.com>
2024-05-10 22:07:09 +08:00

23 lines
541 B
Bash

#!/bin/bash
_UID=`id -u`
if [ $_UID -ne 0 ]
then
echo "Run this test as root"
exit 1
fi
gcc test.c -o test
#
# XXX: module auto-load not support by nfnetlink_cttimeout yet :-(
#
# any or all of these might be built-ins rather than modules, so don't error
# out on failure from modprobe
modprobe nf_conntrack_ipv4 || true
modprobe nf_conntrack_ipv6 || true
modprobe nf_conntrack_proto_udplite || true
modprobe nf_conntrack_proto_sctp || true
modprobe nf_conntrack_proto_dccp || true
modprobe nf_conntrack_proto_gre || true
./test timeout