xref: /freebsd/sbin/pfctl/tests/macro.sh (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
1# $FreeBSD$
2
3atf_test_case "space" cleanup
4space_head()
5{
6	atf_set descr "Test macros with spaces"
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