1# $FreeBSD$ 2 3. $(atf_get_srcdir)/utils.subr 4 5atf_test_case "v4" "cleanup" 6v4_head() 7{ 8 atf_set descr 'IPSec inet4 tunnel using chacha20-poly1305' 9 atf_set require.user root 10} 11 12v4_body() 13{ 14 ist_test 4 chacha20-poly1305 "123456789012345678901234567890123456" 15} 16 17v4_cleanup() 18{ 19 ist_cleanup 20} 21 22atf_test_case "v6" "cleanup" 23v6_head() 24{ 25 atf_set descr 'IPSec inet6 tunnel using chacha20-poly1305' 26 atf_set require.user root 27} 28 29v6_body() 30{ 31 ist_test 6 chacha20-poly1305 "123456789012345678901234567890123456" 32} 33 34v6_cleanup() 35{ 36 ist_cleanup 37} 38 39atf_init_test_cases() 40{ 41 atf_add_test_case "v4" 42 atf_add_test_case "v6" 43} 44