From patchwork Thu Jun 25 10:50:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50310 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 49B19228FC for ; Thu, 25 Jun 2015 10:51:23 +0000 (UTC) Received: by wgfj7 with SMTP id j7sf18181103wgf.1 for ; Thu, 25 Jun 2015 03:51:22 -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=uyXnVIJPIvj+OVPyKxrG56eghYdpJfHDp+FYB8wZ8l0=; b=d8I4X8FSHNvKcmlme9RllJmWSK2zgQOUto9xFobxw7WhS1fVfFoMURx73oEt4VAn3w 08bg/qHCXOuH9hW493+pFQc3dqJ6cRqMkf8orcywwiEhgZdWcQ0EAtjxtiSml4lUlEj4 qkGgPPXb1CYDe26uAKtdIbIIRoWE2wEkRoI45MmFIeYh9uiGVLOKkk1Ik8Jpl2X46vmI Vr7P0oZZ/fWC72mvdBoinnSHvRrZmuBH7GHQsMeoOXbzxEEGnldostGfDbWTFPIXzYdt 4sUcVYervmfP5xHWAwFJfHwZ2pfDQmqDRz7ClPwgK9XW1f2afAKRMbXI1Hh/DmZwZVqt iHHA== X-Gm-Message-State: ALoCoQmZu2X3JKCSc4eXbXE+uoYUVSaMOaBOvAkrgWEVWzYmhqJjfAk3neoEDxIcu+9gy6GFQYE8 X-Received: by 10.112.13.200 with SMTP id j8mr39284506lbc.14.1435229482587; Thu, 25 Jun 2015 03:51:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.65 with SMTP id r1ls339320lag.61.gmail; Thu, 25 Jun 2015 03:51:22 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr44266527lbp.88.1435229482373; Thu, 25 Jun 2015 03:51:22 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id kp11si24365781lbb.167.2015.06.25.03.51.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 03:51:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbbpo10 with SMTP id po10so42987853lbb.3 for ; Thu, 25 Jun 2015 03:51:22 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr44265145lbc.73.1435229482145; Thu, 25 Jun 2015 03:51:22 -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 hn6csp513935lbb; Thu, 25 Jun 2015 03:51:21 -0700 (PDT) X-Received: by 10.141.19.11 with SMTP id v11mr61251962qhd.44.1435229480561; Thu, 25 Jun 2015 03:51:20 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id kb9si29010288qcb.31.2015.06.25.03.51.19; Thu, 25 Jun 2015 03:51:20 -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 B5BA861D7B; Thu, 25 Jun 2015 10:51:19 +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_H2, 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 9D44A61E2B; Thu, 25 Jun 2015 10:50:57 +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 BAF2A61DE0; Thu, 25 Jun 2015 10:50:52 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id B518061C6B for ; Thu, 25 Jun 2015 10:50:46 +0000 (UTC) Received: by lbbvz5 with SMTP id vz5so42983255lbb.0 for ; Thu, 25 Jun 2015 03:50:45 -0700 (PDT) X-Received: by 10.152.238.39 with SMTP id vh7mr43887203lac.71.1435229445359; Thu, 25 Jun 2015 03:50:45 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id j1sm7123460lbc.15.2015.06.25.03.50.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 03:50:44 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 25 Jun 2015 12:50:30 +0200 Message-Id: <1435229434-25384-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435229434-25384-1-git-send-email-christophe.milard@linaro.org> References: <1435229434-25384-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 1/5] validation: own main in odp_queue.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.169 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_queue.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index a4eafea..1c6c10d 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -27,6 +27,8 @@ ODP_CU_COMMON=common/odp_cunit_common.c odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer dist_odp_buffer_SOURCES = odp_buffer.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto +odp_queue_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_queue_SOURCES = odp_queue.c odp_random_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ $(LIB)/libodp.la diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c index 01a704c..e944677 100644 --- a/test/validation/odp_queue.c +++ b/test/validation/odp_queue.c @@ -107,13 +107,24 @@ static void test_odp_queue_sunnyday(void) return; } -CU_TestInfo test_odp_queue[] = { +static CU_TestInfo test_odp_queue[] = { {"queue sunnyday", test_odp_queue_sunnyday}, CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo queue_suites[] = { {"Queue", init_queue_suite, init_queue_finalize, NULL, NULL, test_odp_queue}, CU_SUITE_INFO_NULL, }; + +static int queue_main(void) +{ + return odp_cunit_run(queue_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return queue_main(); +}