opnsense-src/tests/sys/net/Makefile
Kristof Provost 3e87f800f0 net tests: basic test case for bpf(4)'s ability to set vlan pcp
Use dhclient with its 'vlan-pcp' option to set a VLAN PCP value and
verify that it actually gets set.

MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31276
2021-07-26 23:13:31 +02:00

36 lines
740 B
Makefile

# $FreeBSD$
PACKAGE= tests
TESTSDIR= ${TESTSBASE}/sys/net
BINDIR= ${TESTSDIR}
ATF_TESTS_C+= if_epair
ATF_TESTS_SH+= if_bridge_test
TEST_METADATA.if_bridge_test+= required_programs="python"
ATF_TESTS_SH+= if_clone_test
ATF_TESTS_SH+= if_lagg_test
ATF_TESTS_SH+= if_tun_test
ATF_TESTS_SH+= if_vlan
TESTS_SUBDIRS+= routing
# 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 \
stp.py
${PACKAGE}FILESMODE_pcp.py= 0555
${PACKAGE}FILESMODE_stp.py= 0555
MAN=
PROGS+= randsleep
CFLAGS+= -I${.CURDIR:H:H}
.include <bsd.test.mk>