Changeset View
Changeset View
Standalone View
Standalone View
crypto/opencrypto/t_opencrypto.sh
Property | Old Value | New Value |
---|---|---|
File Mode | 100755 | 100644 |
# $NetBSD: t_opencrypto.sh,v 1.6 2015/12/26 07:10:03 pgoyette Exp $ | # $NetBSD: t_opencrypto.sh,v 1.9 2019/12/03 04:20:45 hikaru Exp $ | ||||
# | # | ||||
# Copyright (c) 2014 The NetBSD Foundation, Inc. | # Copyright (c) 2014 The NetBSD Foundation, Inc. | ||||
# All rights reserved. | # All rights reserved. | ||||
# | # | ||||
# Redistribution and use in source and binary forms, with or without | # Redistribution and use in source and binary forms, with or without | ||||
# modification, are permitted provided that the following conditions | # modification, are permitted provided that the following conditions | ||||
# are met: | # are met: | ||||
# 1. Redistributions of source code must retain the above copyright | # 1. Redistributions of source code must retain the above copyright | ||||
▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
cbcdes_body() { | cbcdes_body() { | ||||
common_body h_cbcdes | common_body h_cbcdes | ||||
} | } | ||||
cbcdes_cleanup() { | cbcdes_cleanup() { | ||||
common_cleanup | common_cleanup | ||||
} | } | ||||
atf_test_case cbc3des cleanup | |||||
cbc3des_head() { | |||||
common_head "Test 3DES_CBC crypto" | |||||
} | |||||
cbc3des_body() { | |||||
common_body h_cbc3des | |||||
} | |||||
cbc3des_cleanup() { | |||||
common_cleanup | |||||
} | |||||
atf_test_case comp cleanup | atf_test_case comp cleanup | ||||
comp_head() { | comp_head() { | ||||
common_head "Test GZIP_COMP Compression" | common_head "Test GZIP_COMP Compression" | ||||
} | } | ||||
comp_body() { | comp_body() { | ||||
common_body h_comp | common_body h_comp | ||||
} | } | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
aesctr2_body() { | aesctr2_body() { | ||||
common_body h_aesctr2 | common_body h_aesctr2 | ||||
} | } | ||||
aesctr2_cleanup() { | aesctr2_cleanup() { | ||||
common_cleanup | common_cleanup | ||||
} | } | ||||
atf_test_case aescbc cleanup | |||||
aescbc_head() { | |||||
common_head "Test AES_CBC crypto" | |||||
} | |||||
aescbc_body() { | |||||
common_body h_aescbc | |||||
} | |||||
aescbc_cleanup() { | |||||
common_cleanup | |||||
} | |||||
atf_test_case gcm cleanup | atf_test_case gcm cleanup | ||||
gcm_head() { | gcm_head() { | ||||
common_head "Test AES_GCM_16 crypto" | common_head "Test AES_GCM_16 crypto" | ||||
} | } | ||||
gcm_body() { | gcm_body() { | ||||
common_body h_gcm | common_body h_gcm | ||||
} | } | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
sha1_hmac_body() { | sha1_hmac_body() { | ||||
common_body h_sha1hmac | common_body h_sha1hmac | ||||
} | } | ||||
sha1_hmac_cleanup() { | sha1_hmac_cleanup() { | ||||
common_cleanup | common_cleanup | ||||
} | } | ||||
atf_test_case sha2_hmac cleanup | |||||
sha2_hmac_head() { | |||||
common_head "Test SHA2_HMAC crypto" | |||||
} | |||||
sha2_hmac_body() { | |||||
common_body h_sha2hmac | |||||
} | |||||
sha2_hmac_cleanup() { | |||||
common_cleanup | |||||
} | |||||
atf_test_case xcbcmac cleanup | atf_test_case xcbcmac cleanup | ||||
xcbcmac_head() { | xcbcmac_head() { | ||||
common_head "Test XCBC_MAC_96 crypto" | common_head "Test XCBC_MAC_96 crypto" | ||||
} | } | ||||
xcbcmac_body() { | xcbcmac_body() { | ||||
common_body h_xcbcmac | common_body h_xcbcmac | ||||
} | } | ||||
xcbcmac_cleanup() { | xcbcmac_cleanup() { | ||||
common_cleanup | common_cleanup | ||||
} | } | ||||
atf_test_case ioctl cleanup | |||||
ioctl_head() { | |||||
common_head "Test ioctl for /dev/crypto" | |||||
} | |||||
ioctl_body() { | |||||
common_body h_ioctl | |||||
} | |||||
ioctl_cleanup() { | |||||
common_cleanup | |||||
} | |||||
atf_init_test_cases() { | atf_init_test_cases() { | ||||
RUMP_SERVER="unix://t_opencrypto_socket" ; export RUMP_SERVER | RUMP_SERVER="unix://t_opencrypto_socket" ; export RUMP_SERVER | ||||
atf_add_test_case arc4 | atf_add_test_case arc4 | ||||
atf_add_test_case camellia | atf_add_test_case camellia | ||||
atf_add_test_case cbcdes | atf_add_test_case cbcdes | ||||
atf_add_test_case cbc3des | |||||
atf_add_test_case comp | atf_add_test_case comp | ||||
atf_add_test_case comp_deflate | atf_add_test_case comp_deflate | ||||
atf_add_test_case comp_zlib_rnd | atf_add_test_case comp_zlib_rnd | ||||
atf_add_test_case aesctr1 | atf_add_test_case aesctr1 | ||||
atf_add_test_case aesctr2 | atf_add_test_case aesctr2 | ||||
atf_add_test_case aescbc | |||||
atf_add_test_case gcm | atf_add_test_case gcm | ||||
atf_add_test_case md5 | atf_add_test_case md5 | ||||
atf_add_test_case md5_hmac | atf_add_test_case md5_hmac | ||||
atf_add_test_case null | atf_add_test_case null | ||||
atf_add_test_case sha1_hmac | atf_add_test_case sha1_hmac | ||||
atf_add_test_case sha2_hmac | |||||
atf_add_test_case xcbcmac | atf_add_test_case xcbcmac | ||||
atf_add_test_case ioctl | |||||
} | } |