aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netgraph/Makefile
diff options
context:
space:
mode:
authorLutz Donnerhacke <donner@FreeBSD.org>2021-06-02 22:29:46 +0000
committerLutz Donnerhacke <donner@FreeBSD.org>2021-06-15 12:31:32 +0000
commit36c7408818c53ae0c1f1aee0250c5d3fe16b06e0 (patch)
treee9c680fe4f0a76a3083be5f20f599f0f9695a9a9 /tests/sys/netgraph/Makefile
parentd0eaf95edcafcaeebfbc3ce9f361e98914830a49 (diff)
downloadsrc-36c7408818c53ae0c1f1aee0250c5d3fe16b06e0.tar.gz
src-36c7408818c53ae0c1f1aee0250c5d3fe16b06e0.zip
tests/netgraph: Inital framework for testing libnetgraph
Provide a framework of functions to test various netgraph modules. Tests contain: - creating, renaming, and destroying nodes - connecting and removing hooks - sending and receiving data - sending ASCII messages and receiving binary responses - errors can be passed for indiviual inspection or fail the test Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D30629 Differential Revision: https://reviews.freebsd.org/D30657 Differential Revision: https://reviews.freebsd.org/D30671 Differential Revision: https://reviews.freebsd.org/D30699 (cherry picked from commit 24ea1dbf257aa6757f469bcd859f90e9ad851e59) (cherry picked from commit 09307dbfb888a98232096c751a96ecb3344aa77c) (cherry picked from commit 9021c46603bf29b9700f24b8dce8796b434d7c8f) (cherry picked from commit 5554abd9cc9702af30af90925b33c5efff4e7d88) Also contains some fixups: - indent all files correctly - finish factoring out - remove debugging code - check for renaming issues reported in PR241954 PR: 241954 Differential Revision: https://reviews.freebsd.org/D30692 Differential Revision: https://reviews.freebsd.org/D30714 Differential Revision: https://reviews.freebsd.org/D30713 (cherry picked from commit a664ade93972ce617f0888ff79e715dff9cf0f87) (cherry picked from commit 0afa9be03937d60cb5aeba64c81e3e2165bd3737) (cherry picked from commit 43e4821315c31db067e23564b9bfafb519e77b2b)
Diffstat (limited to 'tests/sys/netgraph/Makefile')
-rw-r--r--tests/sys/netgraph/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/sys/netgraph/Makefile b/tests/sys/netgraph/Makefile
index aef190bbe178..9f220a620bbe 100644
--- a/tests/sys/netgraph/Makefile
+++ b/tests/sys/netgraph/Makefile
@@ -10,6 +10,10 @@ TAP_TESTS_SH+= ng_macfilter_test
TEST_METADATA.ng_macfilter_test+= required_user="root"
TEST_METADATA.ng_macfilter_test+= required_programs="perl"
-MAN=
+ATF_TESTS_C+= basic \
+
+SRCS.basic= basic.c util.c
+
+LIBADD+= netgraph
.include <bsd.test.mk>