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 aes-gcm-256 and AESNI' 9 atf_set require.user root 10 # load AESNI module if not already 11 kldstat -q -n aesni || kldload aesni 12} 13 14v4_body() 15{ 16 ist_test 4 aes-gcm-16 "123456789012345678901234567890123456" 17} 18 19v4_cleanup() 20{ 21 ist_cleanup 22} 23 24atf_test_case "v6" "cleanup" 25v6_head() 26{ 27 atf_set descr 'IPSec inet6 tunnel using aes-gcm-256 and AESNI' 28 atf_set require.user root 29 # load AESNI module if not already 30 kldstat -q -n aesni || kldload aesni 31} 32 33v6_body() 34{ 35 atf_expect_fail "PR 201447" 36 ist_test 6 aes-gcm-16 "123456789012345678901234567890123456" 37} 38 39v6_cleanup() 40{ 41 ist_cleanup 42} 43 44atf_init_test_cases() 45{ 46 atf_add_test_case "v4" 47 atf_add_test_case "v6" 48} 49