Index: head/tests/sys/netpfil/pf/Makefile =================================================================== --- head/tests/sys/netpfil/pf/Makefile (revision 337645) +++ head/tests/sys/netpfil/pf/Makefile (revision 337646) @@ -1,21 +1,22 @@ # $FreeBSD$ PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/netpfil/pf TESTS_SUBDIRS+= ioctl ATF_TESTS_SH+= pass_block \ forward \ fragmentation \ set_tos \ route_to \ - synproxy + synproxy \ + set_skip ${PACKAGE}FILES+= utils.subr \ echo_inetd.conf \ pft_ping.py ${PACKAGE}FILESMODE_pft_ping.py= 0555 .include <bsd.test.mk> Index: head/tests/sys/netpfil/pf/set_skip.sh =================================================================== --- head/tests/sys/netpfil/pf/set_skip.sh (nonexistent) +++ head/tests/sys/netpfil/pf/set_skip.sh (revision 337646) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +. $(atf_get_srcdir)/utils.subr + +atf_test_case "set_skip_group" "cleanup" +set_skip_group_head() +{ + atf_set descr 'Basic set skip test' + atf_set require.user root +} + +set_skip_group_body() +{ + # See PR 229241 + pft_init + + pft_mkjail alcatraz + jexec alcatraz ifconfig lo0 127.0.0.1/8 up + jexec alcatraz ifconfig lo0 group foo + jexec alcatraz pfctl -e + pft_set_rules alcatraz "set skip on foo" \ + "block in proto icmp" + + jexec alcatraz ifconfig + atf_check -s exit:0 -o ignore jexec alcatraz ping -c 1 127.0.0.1 +} + +set_skip_group_cleanup() +{ + pft_cleanup +} + +atf_init_test_cases() +{ + atf_add_test_case "set_skip_group" +} Property changes on: head/tests/sys/netpfil/pf/set_skip.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property