Index: head/sbin/pfctl/tests/Makefile =================================================================== --- head/sbin/pfctl/tests/Makefile (revision 339837) +++ head/sbin/pfctl/tests/Makefile (revision 339838) @@ -1,7 +1,8 @@ # $FreeBSD$ -ATF_TESTS_SH= pfctl_test +ATF_TESTS_SH= pfctl_test \ + macro SUBDIR+= files .include Index: head/sbin/pfctl/tests/macro.sh =================================================================== --- head/sbin/pfctl/tests/macro.sh (nonexistent) +++ head/sbin/pfctl/tests/macro.sh (revision 339838) @@ -0,0 +1,28 @@ +# $FreeBSD$ + +atf_test_case "space" cleanup +space_head() +{ + atf_set descr "Test macros with spaces" +} + +space_body() +{ + echo \"this is\" = \"a variable\" > pf.conf + cat pf.conf + atf_check -o ignore -e ignore -s exit:1 pfctl -nvf pf.conf + + echo this = \"a variable\" > pf.conf + cat pf.conf + atf_check -o ignore -s exit:0 pfctl -nvf pf.conf +} + +space_cleanup() +{ + rm -f pf.conf +} + +atf_init_test_cases() +{ + atf_add_test_case "space" +} Property changes on: head/sbin/pfctl/tests/macro.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