]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/pfctl/tests/macro.sh
sysctl(9): Fix a few mandoc related issues
[FreeBSD/FreeBSD.git] / sbin / pfctl / tests / macro.sh
1 # $FreeBSD$
2
3 atf_test_case "space" cleanup
4 space_head()
5 {
6         atf_set descr "Test macros with spaces"
7 }
8
9 space_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
20 space_cleanup()
21 {
22         rm -f pf.conf
23 }
24
25 atf_init_test_cases()
26 {
27         atf_add_test_case "space"
28 }