mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
netpfil tests: run in parallel
Run these tests in their own (vnet) jail so we don't have to worry about IP
range or jail name conflicts.
Reviewed by: markj
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D46040
This commit is contained in:
parent
b0fcf4d522
commit
4f752a1583
3 changed files with 10 additions and 4 deletions
|
|
@ -12,8 +12,9 @@ ATF_TESTS_SH+= \
|
|||
fragments \
|
||||
forward
|
||||
|
||||
# Tests reuse jail names and so cannot run in parallel.
|
||||
TEST_METADATA+= is_exclusive=true
|
||||
# Allow tests to run in parallel in their own jails
|
||||
TEST_METADATA+= execenv="jail"
|
||||
TEST_METADATA+= execenv_jail_params="vnet allow.raw_sockets"
|
||||
|
||||
${PACKAGE}FILES+= \
|
||||
utils.subr \
|
||||
|
|
|
|||
|
|
@ -5,4 +5,8 @@ TESTSDIR= ${TESTSBASE}/sys/netpfil/ipfw
|
|||
ATF_TESTS_SH+= fwd
|
||||
${PACKAGE}FILES+= fwd_inetd.conf
|
||||
|
||||
# Allow tests to run in parallel in their own jails
|
||||
TEST_METADATA+= execenv="jail"
|
||||
TEST_METADATA+= execenv_jail_params="vnet allow.raw_sockets"
|
||||
|
||||
.include <bsd.test.mk>
|
||||
|
|
|
|||
|
|
@ -54,8 +54,9 @@ ATF_TESTS_PYTEST+= frag6.py
|
|||
ATF_TESTS_PYTEST+= nat66.py
|
||||
ATF_TESTS_PYTEST+= sctp.py
|
||||
|
||||
# Tests reuse jail names and so cannot run in parallel.
|
||||
TEST_METADATA+= is_exclusive=true
|
||||
# Allow tests to run in parallel in their own jails
|
||||
TEST_METADATA+= execenv="jail"
|
||||
TEST_METADATA+= execenv_jail_params="vnet allow.raw_sockets"
|
||||
|
||||
PROGS= divapp
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue