Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/netipsec/tunnel/aes_cbc_128_hmac_sha1.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:executable | null | * \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
Lint: Invalid Executable: Executable files should either be binary or contain a shebang. | |||||
. $(atf_get_srcdir)/utils.subr | |||||
atf_test_case "v4" "cleanup" | |||||
v4_head() | |||||
{ | |||||
atf_set descr 'IPSec inet4 tunnel using aes-cbc-128-hmac-sha1' | |||||
atf_set require.user root | |||||
# Unload AESNI module if loaded | |||||
kldstat -q -n aesni && kldunload aesni | |||||
} | |||||
v4_body() | |||||
{ | |||||
ist_test 4 rijndael-cbc "1234567890123456" hmac-sha1 "12345678901234567890" | |||||
} | |||||
v4_cleanup() | |||||
{ | |||||
ist_cleanup | |||||
} | |||||
atf_test_case "v6" "cleanup" | |||||
Done Inline ActionsI think it's better to keep these files in the current working directory, rather than /tmp/. kp: I think it's better to keep these files in the current working directory, rather than /tmp/.
I… | |||||
v6_head() | |||||
{ | |||||
atf_set descr 'IPSec inet6 tunnel using aes-cbc-128-hmac-sha1' | |||||
atf_set require.user root | |||||
# Unload AESNI module if loaded | |||||
kldstat -q -n aesni && kldunload aesni | |||||
} | |||||
v6_body() | |||||
{ | |||||
ist_test 6 rijndael-cbc "1234567890123456" hmac-sha1 "12345678901234567890" | |||||
} | |||||
v6_cleanup() | |||||
{ | |||||
ist_cleanup | |||||
} | |||||
atf_init_test_cases() | |||||
{ | |||||
atf_add_test_case "v4" | |||||
atf_add_test_case "v6" | |||||
Done Inline ActionsThese tests tend to repeat a lot of code. I'd look at trying to write an ist_test() function or similar, which takes the IPSec configuration parameters , does the init calls and actually performs the test. kp: These tests tend to repeat a lot of code. I'd look at trying to write an ist_test() function or… | |||||
} |
Executable files should either be binary or contain a shebang.