xref: /freebsd/sbin/pfctl/tests/macro.sh (revision 939aacb600776ec11a524c81be85a39527d2d7c8)
1
2atf_test_case "space" cleanup
3space_head()
4{
5	atf_set descr "Test macros with spaces"
6	atf_set require.kmods "pf"
7}
8
9space_body()
10{
11	echo \"this is\" = \"a variable\" > pf.conf
12	cat pf.conf
13	atf_check -o ignore -e ignore -s exit:1 pfctl -nvf pf.conf
14
15	echo this = \"a variable\" > pf.conf
16	cat pf.conf
17	atf_check -o ignore -s exit:0 pfctl -nvf pf.conf
18}
19
20space_cleanup()
21{
22	rm -f pf.conf
23}
24
25atf_init_test_cases()
26{
27	atf_add_test_case "space"
28}
29