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