From patchwork Wed Jun 17 21:51:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49991 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 20EFE228FF for ; Wed, 17 Jun 2015 21:53:04 +0000 (UTC) Received: by wgez8 with SMTP id z8sf15307990wge.2 for ; Wed, 17 Jun 2015 14:53:03 -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=vrAUT6aeQi4CG3hatbGLxK+mZXoNcHjGPOqwfti97Z0=; b=WIcWFoJD9OA58XgmwJi4XxUwUwuZ8JsSPHwsRP3Vsw5rA/+RNWSCT9kx7rPI/ER6Z9 6avW/rd/rLESMfP8khiIc7mS5IpVCTwBXllpRExl4Fz78M1DM2WlLm/S/4Tu/gGSKTJQ Gl8Knf15BpBgpWM7OtS4kTawvSnxvIqCG3g0+BxGa67DX1JEa6ZoU+5ZO614QaO57un7 iGur7Ro+rYlUr6NVt1pI7Rn+E5a2B+lgYU0iIxRtrbdj487q/EvaMglw5x4fE33mhEG+ esF7AfAEd5MgyxgitVmDZjwND6sGOZtEfl7a7Xns37vuNhA859diNpVlZovSRMBoafGU Y27w== X-Gm-Message-State: ALoCoQmn2nG2OvI7dVmMB56LtTWj0N8jtMrIilCoR/leOwO76dPuIgv3fRObAzMOsmg5hyzzVphA X-Received: by 10.112.55.104 with SMTP id r8mr6915005lbp.18.1434577983254; Wed, 17 Jun 2015 14:53:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.1.73 with SMTP id 9ls334349lak.17.gmail; Wed, 17 Jun 2015 14:53:03 -0700 (PDT) X-Received: by 10.112.72.104 with SMTP id c8mr10064044lbv.77.1434577983038; Wed, 17 Jun 2015 14:53:03 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id b1si4730238laf.78.2015.06.17.14.53.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2015 14:53:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lblr1 with SMTP id r1so40716389lbl.0 for ; Wed, 17 Jun 2015 14:53:02 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr4688332lbb.35.1434577982905; Wed, 17 Jun 2015 14:53:02 -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.108.230 with SMTP id hn6csp751590lbb; Wed, 17 Jun 2015 14:53:02 -0700 (PDT) X-Received: by 10.140.84.179 with SMTP id l48mr10663264qgd.11.1434577981678; Wed, 17 Jun 2015 14:53:01 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u68si5800694qge.89.2015.06.17.14.53.00; Wed, 17 Jun 2015 14:53:01 -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 CFF8461E26; Wed, 17 Jun 2015 21:53:00 +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 CE62E61F97; Wed, 17 Jun 2015 21:52:28 +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 BD77B61E26; Wed, 17 Jun 2015 21:52:23 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id B740E61CB3 for ; Wed, 17 Jun 2015 21:52:04 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2so40593604lbb.3 for ; Wed, 17 Jun 2015 14:52:03 -0700 (PDT) X-Received: by 10.112.125.65 with SMTP id mo1mr10213051lbb.0.1434577923650; Wed, 17 Jun 2015 14:52:03 -0700 (PDT) Received: from mobile-VirtualBox.caveonetworks.com (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id k10sm1273417lbq.9.2015.06.17.14.52.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jun 2015 14:52:02 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 17 Jun 2015 23:51:41 +0200 Message-Id: <1434577905-11797-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434577905-11797-1-git-send-email-christophe.milard@linaro.org> References: <1434577905-11797-1-git-send-email-christophe.milard@linaro.org> X-Topics: crypto patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 1/5] validation: own main in odp_crypto.c 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.173 as permitted sender) smtp.mail=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 --- test/validation/Makefile.am | 2 ++ test/validation/odp_crypto.c | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 6968301..e40bc7d 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -38,6 +38,8 @@ dist_odp_classification_SOURCES = classification/odp_classification_tests.c \ classification/odp_classification_basic.c \ odp_classification.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto +odp_crypto_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_crypto_SOURCES = crypto/odp_crypto_test_inp.c \ odp_crypto.c dist_odp_init_SOURCES = init/odp_init.c diff --git a/test/validation/odp_crypto.c b/test/validation/odp_crypto.c index 2a20ea1..ef0abbc 100644 --- a/test/validation/odp_crypto.c +++ b/test/validation/odp_crypto.c @@ -14,7 +14,7 @@ #define SHM_COMPL_POOL_SIZE (128*1024) #define SHM_COMPL_POOL_BUF_SIZE 128 -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo crypto_suites[] = { {ODP_CRYPTO_SYNC_INP, suite_sync_inp_init, NULL, NULL, NULL, test_array_inp}, {ODP_CRYPTO_ASYNC_INP, suite_async_inp_init, NULL, NULL, NULL, @@ -92,3 +92,14 @@ int tests_global_term(void) return 0; } + +static int crypto_main(void) +{ + return odp_cunit_run(crypto_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return crypto_main(); +}