aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netpfil/pf/Makefile
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2017-10-06 20:43:14 +0000
committerKristof Provost <kp@FreeBSD.org>2017-10-06 20:43:14 +0000
commit1d6f5f214a6ee80570ad56583cb58acfc6cf84d2 (patch)
treea5ebb4acd7318b32d6d5ff146271ab4489d6278e /tests/sys/netpfil/pf/Makefile
parente29c55e4bb38245e20b138dc833e20b141c2bcac (diff)
downloadsrc-1d6f5f214a6ee80570ad56583cb58acfc6cf84d2.tar.gz
src-1d6f5f214a6ee80570ad56583cb58acfc6cf84d2.zip
pf: Basic automated test using VIMAGE
If VIMAGE is present we can start jails with their own pf instance. This makes it fairly easy to run tests. For example, this basic test verifies that drop/pass and icmp classification works. It's a basic sanity test for pf, and hopefully an example on how to write more pf tests. The tests are skipped if VIMAGE is not enabled. This work is inspired by the GSoC work of Panagiotes Mousikides. Differential Revision: https://reviews.freebsd.org/D12580
Notes
Notes: svn path=/head/; revision=324375
Diffstat (limited to 'tests/sys/netpfil/pf/Makefile')
-rw-r--r--tests/sys/netpfil/pf/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/sys/netpfil/pf/Makefile b/tests/sys/netpfil/pf/Makefile
new file mode 100644
index 000000000000..72e373db3310
--- /dev/null
+++ b/tests/sys/netpfil/pf/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+PACKAGE= tests
+
+TESTSDIR= ${TESTSBASE}/sys/netpfil/pf
+
+ATF_TESTS_SH+= pass_block
+
+${PACKAGE}FILES+= utils.subr
+
+.include <bsd.test.mk>