From patchwork Thu Jun 4 18:06:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49549 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1365121562 for ; Thu, 4 Jun 2015 18:11:40 +0000 (UTC) Received: by lbbti3 with SMTP id ti3sf12432530lbb.1 for ; Thu, 04 Jun 2015 11:11:39 -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=82dMy7jDwyCJ8CC3JTJtKeajT/EL3KpkXzqP9UkT8IU=; b=ZK+TSB4tiT060Q2rZI3r7qRe/aWXXlkk+1t35HPLn4DcIA1NJAbds4whKcuQWHb5RY sIq5DNpHNVHVbWYS99iDctcS12sz4Tm4tONsvrnwjjZrQz/fIIFbyXtw0gFGBzjiQ9b0 YUTctoTm7yGdlulP98isn9dTkiL5cgGUsoy08JiMn7GlblQk/TgQEVAq88rQAQyXZWV1 00RXwa2b13KjdEuEqkFvX1jHD8P3u3bRtXHOPryvIOH5rzuEzZn2uyePvw1LhfUArZO4 gyVVOnPCIDUg81aBNoigPIxFnm2VyPmnEwCquShJRBhW9TcGldwBbFt6tcEY1tP7jLPt O3AQ== X-Gm-Message-State: ALoCoQmTDz3B08DtE4HfdqgscvqhaGtcJQXuQXpCzI326IZlt8Mv661ZNfcyiFti7+mQAAbC12cl X-Received: by 10.112.161.105 with SMTP id xr9mr36715356lbb.20.1433441499029; Thu, 04 Jun 2015 11:11:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.227 with SMTP id kt3ls217301lac.18.gmail; Thu, 04 Jun 2015 11:11:38 -0700 (PDT) X-Received: by 10.152.7.65 with SMTP id h1mr39012869laa.33.1433441498754; Thu, 04 Jun 2015 11:11:38 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id of3si2503085lbb.110.2015.06.04.11.11.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 11:11:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by labpy14 with SMTP id py14so37856606lab.0 for ; Thu, 04 Jun 2015 11:11:38 -0700 (PDT) X-Received: by 10.112.234.200 with SMTP id ug8mr38320624lbc.117.1433441498610; Thu, 04 Jun 2015 11:11:38 -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 hn6csp796306lbb; Thu, 4 Jun 2015 11:11:37 -0700 (PDT) X-Received: by 10.140.95.204 with SMTP id i70mr43513999qge.51.1433441497012; Thu, 04 Jun 2015 11:11:37 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 123si4882118qhx.2.2015.06.04.11.11.36; Thu, 04 Jun 2015 11:11:36 -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 0804862097; Thu, 4 Jun 2015 18:11:36 +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 31633620B2; Thu, 4 Jun 2015 18:08:25 +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 C12696209A; Thu, 4 Jun 2015 18:08:10 +0000 (UTC) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id A68336208E for ; Thu, 4 Jun 2015 18:07:29 +0000 (UTC) Received: by laew7 with SMTP id w7so37708954lae.1 for ; Thu, 04 Jun 2015 11:07:28 -0700 (PDT) X-Received: by 10.112.72.132 with SMTP id d4mr38794033lbv.1.1433441248600; Thu, 04 Jun 2015 11:07:28 -0700 (PDT) Received: from localhost.localdomain (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id x9sm955058lag.18.2015.06.04.11.07.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 11:07:27 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 4 Jun 2015 20:06:54 +0200 Message-Id: <1433441220-25295-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1433441220-25295-1-git-send-email-christophe.milard@linaro.org> References: <1433441220-25295-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 2/8] validation: own main in odp_pktio.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.215.53 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_pktio.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index e1474aa..d4bbdb5 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -58,6 +58,8 @@ dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_time_SOURCES = odp_time.c dist_odp_timer_SOURCES = odp_timer.c +odp_pktio_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_pktio_SOURCES = odp_pktio.c dist_odp_packet_SOURCES = odp_packet.c dist_odp_pool_SOURCES = odp_pool.c diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c index 7c1a666..592136f 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -688,7 +688,7 @@ static int term_pktio_suite(void) return ret; } -CU_TestInfo pktio_tests[] = { +static CU_TestInfo pktio_tests[] = { {"pktio open", test_odp_pktio_open}, {"pktio lookup", test_odp_pktio_lookup}, {"pktio inq", test_odp_pktio_inq}, @@ -704,8 +704,19 @@ CU_TestInfo pktio_tests[] = { CU_TEST_INFO_NULL }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo pktio_suites[] = { {"Packet I/O", init_pktio_suite, term_pktio_suite, NULL, NULL, pktio_tests}, CU_SUITE_INFO_NULL }; + +static int pktio_main(void) +{ + return odp_cunit_run(pktio_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return pktio_main(); +}