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.
This commit is contained in:
Kristof Provost 2019-05-16 02:18:57 +00:00
parent 88a950762a
commit b685454a11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347641

View File

@ -8,6 +8,10 @@
ist_init()
{
if ! sysctl -q kern.features.ipsec >/dev/null ; then
atf_skip "This test requires ipsec"
fi
vnet_init
}