Some IPSec in tunnel mode allowing to test multiple IPSec configurations.
These tests are reusing the jail/vnet scripts from pf tests for generating complex network.
I've got still some questions:
- How to add the case of with and without AESNI without rewriting all these tests?
- And idea for adding TCP/MD5 tests?
- How about merging the utils.subr that share big part with the pf tests ?
Here is as example, the current results without and with AESNI (on a head r325309):
# kldunload aesni # kyua test -k /usr/tests/Kyuafile sys/netipsec/tunnel/ sys/netipsec/tunnel/aes_cbc_128_hmac_sha1:v4 -> failed: atf-check failed; see the output of the test for details [0.279s] sys/netipsec/tunnel/aes_cbc_128_hmac_sha1:v6 -> failed: atf-check failed; see the output of the test for details [2.402s] sys/netipsec/tunnel/aes_cbc_256_hmac_sha2_256:v4 -> failed: atf-check failed; see the output of the test for details [0.274s] sys/netipsec/tunnel/aes_cbc_256_hmac_sha2_256:v6 -> failed: atf-check failed; see the output of the test for details [2.399s] sys/netipsec/tunnel/aes_gcm_128:v4 -> passed [0.290s] sys/netipsec/tunnel/aes_gcm_128:v6 -> passed [2.408s] sys/netipsec/tunnel/aes_gcm_256:v4 -> passed [0.281s] sys/netipsec/tunnel/aes_gcm_256:v6 -> passed [2.296s] sys/netipsec/tunnel/empty:v4 -> passed [0.282s] sys/netipsec/tunnel/empty:v6 -> passed [2.410s] Results file id is usr_tests.20171109-141000-605659 Results saved to /root/.kyua/store/results.usr_tests.20171109-141000-605659.db 6/10 passed (4 failed)
Now with AESNI module loaded:
# kldload aesni # kyua test -k /usr/tests/Kyuafile sys/netipsec/tunnel/ sys/netipsec/tunnel/aes_cbc_128_hmac_sha1:v4 -> failed: atf-check failed; see the output of the test for details [0.272s] sys/netipsec/tunnel/aes_cbc_128_hmac_sha1:v6 -> failed: atf-check failed; see the output of the test for details [2.305s] sys/netipsec/tunnel/aes_cbc_256_hmac_sha2_256:v4 -> failed: atf-check failed; see the output of the test for details [0.272s] sys/netipsec/tunnel/aes_cbc_256_hmac_sha2_256:v6 -> failed: atf-check failed; see the output of the test for details [2.395s] sys/netipsec/tunnel/aes_gcm_128:v4 -> passed [0.280s] sys/netipsec/tunnel/aes_gcm_128:v6 -> failed: atf-check failed; see the output of the test for details [13.593s] sys/netipsec/tunnel/aes_gcm_256:v4 -> passed [0.288s] sys/netipsec/tunnel/aes_gcm_256:v6 -> failed: atf-check failed; see the output of the test for details [13.927s] sys/netipsec/tunnel/empty:v4 -> passed [0.285s] sys/netipsec/tunnel/empty:v6 -> passed [2.403s] Results file id is usr_tests.20171109-141055-597373 Results saved to /root/.kyua/store/results.usr_tests.20171109-141055-597373.db 4/10 passed (6 failed)
Notice the problem of current regarding HMAC keysize (D12770) and GCM behavior change with AESNI loaded.