xref: /freebsd/tests/sys/netipsec/tunnel/empty.sh (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1*4fbebc74SKristof Provost
2*4fbebc74SKristof Provost. $(atf_get_srcdir)/utils.subr
3*4fbebc74SKristof Provost
4*4fbebc74SKristof Provostatf_test_case "v4" "cleanup"
5*4fbebc74SKristof Provostv4_head()
6*4fbebc74SKristof Provost{
7*4fbebc74SKristof Provost	atf_set descr 'IPSec inet4 tunnel using NULL encryption'
8*4fbebc74SKristof Provost	atf_set require.user root
9*4fbebc74SKristof Provost}
10*4fbebc74SKristof Provost
11*4fbebc74SKristof Provostv4_body()
12*4fbebc74SKristof Provost{
13*4fbebc74SKristof Provost	# Can't use filename "null" for this script: PR 223564
14*4fbebc74SKristof Provost	ist_test 4 null ""
15*4fbebc74SKristof Provost}
16*4fbebc74SKristof Provost
17*4fbebc74SKristof Provostv4_cleanup()
18*4fbebc74SKristof Provost{
19*4fbebc74SKristof Provost	ist_cleanup
20*4fbebc74SKristof Provost}
21*4fbebc74SKristof Provost
22*4fbebc74SKristof Provostatf_test_case "v6" "cleanup"
23*4fbebc74SKristof Provostv6_head()
24*4fbebc74SKristof Provost{
25*4fbebc74SKristof Provost	atf_set descr 'IPSec inet6 tunnel using NULL encryption'
26*4fbebc74SKristof Provost	atf_set require.user root
27*4fbebc74SKristof Provost}
28*4fbebc74SKristof Provost
29*4fbebc74SKristof Provostv6_body()
30*4fbebc74SKristof Provost{
31*4fbebc74SKristof Provost	ist_test 6 null ""
32*4fbebc74SKristof Provost}
33*4fbebc74SKristof Provost
34*4fbebc74SKristof Provostv6_cleanup()
35*4fbebc74SKristof Provost{
36*4fbebc74SKristof Provost	ist_cleanup
37*4fbebc74SKristof Provost}
38*4fbebc74SKristof Provost
39*4fbebc74SKristof Provostatf_init_test_cases()
40*4fbebc74SKristof Provost{
41*4fbebc74SKristof Provost	atf_add_test_case "v4"
42*4fbebc74SKristof Provost	atf_add_test_case "v6"
43*4fbebc74SKristof Provost}
44