svn commit: r347641 - head/tests/sys/netipsec/tunnel

Kristof Provost kp at FreeBSD.org
Thu May 16 02:18:58 UTC 2019


Author: kp
Date: Thu May 16 02:18:57 2019
New Revision: 347641
URL: https://svnweb.freebsd.org/changeset/base/347641

Log:
  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.

Modified:
  head/tests/sys/netipsec/tunnel/utils.subr

Modified: head/tests/sys/netipsec/tunnel/utils.subr
==============================================================================
--- head/tests/sys/netipsec/tunnel/utils.subr	Thu May 16 02:11:33 2019	(r347640)
+++ head/tests/sys/netipsec/tunnel/utils.subr	Thu May 16 02:18:57 2019	(r347641)
@@ -8,6 +8,10 @@
 
 ist_init()
 {
+	if ! sysctl -q kern.features.ipsec >/dev/null ; then
+		atf_skip "This test requires ipsec"
+	fi
+
 	vnet_init
 }
 


More information about the svn-src-head mailing list