From b685454a1107a512e105ceb09b5ff04dadc04d1a Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Thu, 16 May 2019 02:18:57 +0000 Subject: [PATCH] ipsec tests: Skip if ipsec.ko is not loaded As of r347410 IPSec is no longer built into GENERIC. The ipsec.ko module must be loaded before we can execute the IPSec tests. Check this, and skip the tests if IPSec is not available. --- tests/sys/netipsec/tunnel/utils.subr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/sys/netipsec/tunnel/utils.subr b/tests/sys/netipsec/tunnel/utils.subr index 3d6da3f35ccc..9063a2d394e4 100644 --- a/tests/sys/netipsec/tunnel/utils.subr +++ b/tests/sys/netipsec/tunnel/utils.subr @@ -8,6 +8,10 @@ ist_init() { + if ! sysctl -q kern.features.ipsec >/dev/null ; then + atf_skip "This test requires ipsec" + fi + vnet_init }