From patchwork Thu Aug 20 10:05:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 52576 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 9517922E4F for ; Thu, 20 Aug 2015 10:09:49 +0000 (UTC) Received: by labpx14 with SMTP id px14sf9879250lab.1 for ; Thu, 20 Aug 2015 03:09:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=cKWy7oRu/PzkR52afkG4QLU0V/SS0QMqnpY+c4ZihaY=; b=e+CmSRp5e5BVQVvEnyVqLCwgrqfPXMhYd8N8Pr5A+QFUrRjx9sIxlue21LjFpePKoK dT0lQxEHNPqRc9UzQu+kmHFu920DwxlD9mQH5BS3lGIEkBKQ923SPYEw0AZQ258tGns1 3umfgToPy8orSS4iL98UzVWKGhtj0yEst4pOjeLcMTxpE7KBrFBFZzC56mghLCPhzjnX Bmdrwxl8f79WbdPLB+aZGXBJx/BI0R7MPrxrWSA7cd1QBJzopBFFxyKRHY3PPEFE9+zv fhggVluCLuRQSVpXEUzXz2togxwFuxDl9J6T2abYtCbCZlDvPOudL+wB0el7l5yiPqGl DOKw== X-Gm-Message-State: ALoCoQlFMeGyaXpxe7BhTUNYJKNaoy893DLMPf9FhmvmChwT/is4TD1HT8VMusLTbqi7Quh/Y7kW X-Received: by 10.152.3.72 with SMTP id a8mr644694laa.9.1440065388542; Thu, 20 Aug 2015 03:09:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.36 with SMTP id v4ls138464laj.109.gmail; Thu, 20 Aug 2015 03:09:48 -0700 (PDT) X-Received: by 10.152.121.37 with SMTP id lh5mr2147280lab.2.1440065388358; Thu, 20 Aug 2015 03:09:48 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id ca10si3268141lad.158.2015.08.20.03.09.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Aug 2015 03:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbsx3 with SMTP id sx3so20558163lbb.0 for ; Thu, 20 Aug 2015 03:09:48 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr2162881laj.19.1440065388253; Thu, 20 Aug 2015 03:09:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp924502lbb; Thu, 20 Aug 2015 03:09:45 -0700 (PDT) X-Received: by 10.50.138.193 with SMTP id qs1mr6766765igb.2.1440065385118; Thu, 20 Aug 2015 03:09:45 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j12si4009494igf.95.2015.08.20.03.09.44; Thu, 20 Aug 2015 03:09:45 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 1E3596206C; Thu, 20 Aug 2015 10:09:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9E4E36210C; Thu, 20 Aug 2015 10:07:03 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 069C162062; Thu, 20 Aug 2015 10:06:52 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by lists.linaro.org (Postfix) with ESMTPS id 9756C61DF3 for ; Thu, 20 Aug 2015 10:06:22 +0000 (UTC) Received: by lbbpu9 with SMTP id pu9so20487307lbb.3 for ; Thu, 20 Aug 2015 03:06:21 -0700 (PDT) X-Received: by 10.112.199.5 with SMTP id jg5mr2165705lbc.57.1440065181533; Thu, 20 Aug 2015 03:06:21 -0700 (PDT) Received: from mobile-VirtualBox.localdomain (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id un4sm1069852lbb.7.2015.08.20.03.06.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Aug 2015 03:06:20 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 20 Aug 2015 12:05:51 +0200 Message-Id: <1440065161-18967-4-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440065161-18967-1-git-send-email-christophe.milard@linaro.org> References: <1440065161-18967-1-git-send-email-christophe.milard@linaro.org> X-Topics: crypto patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 03/13] validation: crypto: using _CU_TEST_INFO() X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christophe.milard@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Christophe Milard Reviewed-by: Stuart Haslam --- test/validation/crypto/odp_crypto_test_inp.c | 18 ++++++------------ 1 file 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 90fe8d0..187a04c 100644 --- a/test/validation/crypto/odp_crypto_test_inp.c +++ b/test/validation/crypto/odp_crypto_test_inp.c @@ -6,6 +6,7 @@ #include #include +#include #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, };