1# $FreeBSD$ 2 3. $(atf_get_srcdir)/utils.subr 4 5atf_test_case "set_skip_group" "cleanup" 6set_skip_group_head() 7{ 8 atf_set descr 'Basic set skip test' 9 atf_set require.user root 10} 11 12set_skip_group_body() 13{ 14 # See PR 229241 15 pft_init 16 17 pft_mkjail alcatraz 18 jexec alcatraz ifconfig lo0 127.0.0.1/8 up 19 jexec alcatraz ifconfig lo0 group foo 20 jexec alcatraz pfctl -e 21 pft_set_rules alcatraz "set skip on foo" \ 22 "block in proto icmp" 23 24 jexec alcatraz ifconfig 25 atf_check -s exit:0 -o ignore jexec alcatraz ping -c 1 127.0.0.1 26} 27 28set_skip_group_cleanup() 29{ 30 pft_cleanup 31} 32 33atf_init_test_cases() 34{ 35 atf_add_test_case "set_skip_group" 36} 37