]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Basic automated test using VIMAGE
authorkp <kp@FreeBSD.org>
Fri, 6 Oct 2017 20:43:14 +0000 (20:43 +0000)
committerkp <kp@FreeBSD.org>
Fri, 6 Oct 2017 20:43:14 +0000 (20:43 +0000)
commit2646db1c87c59c249faa0ae96b2507891000a2a0
treea5ebb4acd7318b32d6d5ff146271ab4489d6278e
parentd48dcca3118bfebc7b0e768a2dddbf041681a901
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
etc/mtree/BSD.tests.dist
tests/sys/Makefile
tests/sys/netpfil/Makefile [new file with mode: 0644]
tests/sys/netpfil/pf/Makefile [new file with mode: 0644]
tests/sys/netpfil/pf/pass_block.sh [new file with mode: 0755]
tests/sys/netpfil/pf/utils.subr [new file with mode: 0644]