Skip the pftcl(8) tests if pf isn't loaded.

Previously, they would simply fail.

MFC after:	2 weeks
This commit is contained in:
Alan Somers 2018-07-22 03:58:01 +00:00
parent 46e1f0715d
commit 8707733f71
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336595

View File

@ -30,6 +30,7 @@ for i in ${pftests} ; do
atf_test_case "pf${i}"
eval "pf${i}_head () { atf_set descr \"$(pf${i}_descr)\" ; }"
eval "pf${i}_body () { \
kldstat -m pf || atf_skip \"pf(4) is not loaded\" && \
cd $(atf_get_srcdir)/files && \
atf_check -o file:pf${i}.ok \
pfctl -o none -nvf - < pf${i}.in ; }"