xref: /freebsd/sbin/pfctl/tests/macro.sh (revision 43a5ec4eb41567cc92586503212743d89686d78f)
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