git: 6ab30433a73b - main - tests/net: Run all tests with execenv=jail and enable parallelism
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 May 2026 14:54:43 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=6ab30433a73b5e52a0562010b75257bcfc57bcbd
commit 6ab30433a73b5e52a0562010b75257bcfc57bcbd
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-05-22 14:44:08 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-05-22 14:44:08 +0000
tests/net: Run all tests with execenv=jail and enable parallelism
This has been stable in my testing, and enabling parallelism speeds up
test runs considerably. In particular, with -v parallelism=16 in a
16-vcpu bhyve VM my test runs go from ~50m to ~40m; the exact numbers
depend on the kernel config in use.
Reviewed by: pouria
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D57094
---
tests/sys/net/Makefile | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/tests/sys/net/Makefile b/tests/sys/net/Makefile
index 6dcc23b49b67..b1bd2c06f729 100644
--- a/tests/sys/net/Makefile
+++ b/tests/sys/net/Makefile
@@ -6,8 +6,6 @@ BINDIR= ${TESTSDIR}
ATF_TESTS_C+= if_epair
ATF_TESTS_SH+= if_epair_test
ATF_TESTS_SH+= if_bridge_test
-TEST_METADATA.if_bridge_test+= execenv="jail"
-TEST_METADATA.if_bridge_test+= execenv_jail_params="vnet allow.raw_sockets"
ATF_TESTS_SH+= if_clone_test
ATF_TESTS_SH+= if_gif
ATF_TESTS_SH+= if_lagg_test
@@ -16,6 +14,8 @@ ATF_TESTS_SH+= if_tun_test
ATF_TESTS_SH+= if_vlan
ATF_TESTS_SH+= if_wg
ATF_TESTS_SH+= if_geneve
+TEST_METADATA+= execenv="jail"
+TEST_METADATA+= execenv_jail_params="vnet allow.raw_sockets"
TESTS_SUBDIRS+= bpf
TESTS_SUBDIRS+= if_ovpn
@@ -26,11 +26,6 @@ TESTS_SUBDIRS+= routing
PROGS+= bridge
LIBADD.bridge+= netmap
-# The tests are written to be run in parallel, but doing so leads to random
-# panics. I think it's because the kernel's list of interfaces isn't properly
-# locked.
-TEST_METADATA+= is_exclusive=true
-
${PACKAGE}FILES+= \
dhclient_pcp.conf \
pcp.py \