diff options
author | Christophe Milard <christophe.milard@linaro.org> | 2015-08-20 12:05:51 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-08-24 13:33:04 +0300 |
commit | 606fd60864632a1121a4b75832a76c2344e1ca1d (patch) | |
tree | 9a761968230616de4a6d684897e0188a0f97aeff /test | |
parent | cb94d2d6a28eeacbdf86f24020b15b770d0c80d8 (diff) |
validation: crypto: using _CU_TEST_INFO()
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/validation/crypto/odp_crypto_test_inp.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/test/validation/crypto/odp_crypto_test_inp.c b/test/validation/crypto/odp_crypto_test_inp.c index 90fe8d039..187a04c28 100644 --- a/test/validation/crypto/odp_crypto_test_inp.c +++ b/test/validation/crypto/odp_crypto_test_inp.c @@ -6,6 +6,7 @@ #include <odp.h> #include <CUnit/Basic.h> +#include <odp_cunit_common.h> #include "test_vectors.h" #include "odp_crypto_test_inp.h" #include "crypto.h" @@ -132,7 +133,6 @@ cleanup: * operation for 3DES_CBC algorithm. IV for the operation is the session IV. * In addition the test verifies if the implementation can use the * packet buffer as completion event buffer.*/ -#define ASYNC_INP_ENC_ALG_3DES_CBC "ENC_ALG_3DES_CBC" void crypto_test_enc_alg_3des_cbc(void) { odp_crypto_key_t cipher_key = { .data = NULL, .length = 0 }, @@ -165,7 +165,6 @@ void crypto_test_enc_alg_3des_cbc(void) /* This test verifies the correctness of encode (plaintext -> ciphertext) * operation for 3DES_CBC algorithm. IV for the operation is the operation IV. * */ -#define ASYNC_INP_ENC_ALG_3DES_CBC_OVR_IV "ENC_ALG_3DES_CBC_OVR_IV" void crypto_test_enc_alg_3des_cbc_ovr_iv(void) { odp_crypto_key_t cipher_key = { .data = NULL, .length = 0 }, @@ -199,7 +198,6 @@ void crypto_test_enc_alg_3des_cbc_ovr_iv(void) * In addition the test verifies if the implementation can use the * packet buffer as completion event buffer. * */ -#define ASYNC_INP_DEC_ALG_3DES_CBC "DEC_ALG_3DES_CBC" void crypto_test_dec_alg_3des_cbc(void) { odp_crypto_key_t cipher_key = { .data = NULL, .length = 0 }, @@ -234,7 +232,6 @@ void crypto_test_dec_alg_3des_cbc(void) * In addition the test verifies if the implementation can use the * packet buffer as completion event buffer. * */ -#define ASYNC_INP_DEC_ALG_3DES_CBC_OVR_IV "DEC_ALG_3DES_CBC_OVR_IV" void crypto_test_dec_alg_3des_cbc_ovr_iv(void) { odp_crypto_key_t cipher_key = { .data = NULL, .length = 0 }, @@ -270,7 +267,6 @@ void crypto_test_dec_alg_3des_cbc_ovr_iv(void) * In addition the test verifies if the implementation can use the * packet buffer as completion event buffer. * */ -#define ASYNC_INP_ALG_HMAC_MD5 "ALG_HMAC_MD5" void crypto_test_alg_hmac_md5(void) { odp_crypto_key_t cipher_key = { .data = NULL, .length = 0 }, @@ -324,12 +320,10 @@ int crypto_suite_async_init(void) } CU_TestInfo crypto_suite[] = { - {ASYNC_INP_ENC_ALG_3DES_CBC, crypto_test_enc_alg_3des_cbc }, - {ASYNC_INP_DEC_ALG_3DES_CBC, crypto_test_dec_alg_3des_cbc }, - {ASYNC_INP_ENC_ALG_3DES_CBC_OVR_IV, - crypto_test_enc_alg_3des_cbc_ovr_iv }, - {ASYNC_INP_DEC_ALG_3DES_CBC_OVR_IV, - crypto_test_dec_alg_3des_cbc_ovr_iv }, - {ASYNC_INP_ALG_HMAC_MD5, crypto_test_alg_hmac_md5 }, + _CU_TEST_INFO(crypto_test_enc_alg_3des_cbc), + _CU_TEST_INFO(crypto_test_dec_alg_3des_cbc), + _CU_TEST_INFO(crypto_test_enc_alg_3des_cbc_ovr_iv), + _CU_TEST_INFO(crypto_test_dec_alg_3des_cbc_ovr_iv), + _CU_TEST_INFO(crypto_test_alg_hmac_md5), CU_TEST_INFO_NULL, }; |