From patchwork Tue Jun 9 11:44:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49646 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F15D621419 for ; Tue, 9 Jun 2015 11:46:04 +0000 (UTC) Received: by laboh3 with SMTP id oh3sf4064931lab.0 for ; Tue, 09 Jun 2015 04:46: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=OAzb9cTtDI/kbENlb7Yhl8jS4AaOTtyehJFR6TobRQM=; b=kGtOLdtVfjVteNN3cKxNCc2k9AUK0WkriaOejn0z8CLqaPT7N/EWtDaNu7TqXR64Wh Bq/oZbp+wRzZZf5pkyjTrY3zpku3Gj8qZIobFyhpe8w6B3lrhbZSmT+B+FcwyNoYSE4l E//5wtirINT+0kKkbWW/AXvX92wRzIiC3Lzxs9zW1zUEmsFfXzmwX0bgcPu4NDdrW/1/ 3VF1xwqYdcQgymd3x+f2c4ggXGpHJA3o40fKh9T7TWlYpM8H6WX9DUvdM9c2tI0HFqAF ADJj3TL4co+vmgbbPrGh162scf4T4bcKgib5Wv3anStqFcRSsu4vaOkImMtC0GrMwLxr /IQA== X-Gm-Message-State: ALoCoQnbHioNaFBzdR49Eqxdc2QNwkv8dCF2+lfgz/8Rnp9xfrmu8pA0TZ0roBum13oLMJj7juoY X-Received: by 10.152.4.230 with SMTP id n6mr21513608lan.2.1433850363924; Tue, 09 Jun 2015 04:46:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.10 with SMTP id z10ls60492lae.24.gmail; Tue, 09 Jun 2015 04:46:03 -0700 (PDT) X-Received: by 10.112.72.132 with SMTP id d4mr21991876lbv.1.1433850363780; Tue, 09 Jun 2015 04:46:03 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id y6si5551810lbj.20.2015.06.09.04.46.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 04:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbtu8 with SMTP id tu8so8831058lbb.2 for ; Tue, 09 Jun 2015 04:46:03 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr22132845lbc.73.1433850363656; Tue, 09 Jun 2015 04:46:03 -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 hn6csp2546372lbb; Tue, 9 Jun 2015 04:46:02 -0700 (PDT) X-Received: by 10.229.84.70 with SMTP id i6mr26432537qcl.20.1433850362696; Tue, 09 Jun 2015 04:46:02 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m70si5092622qhb.89.2015.06.09.04.46.01; Tue, 09 Jun 2015 04:46:02 -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 D3F7F61B6A; Tue, 9 Jun 2015 11:46:01 +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 5A2A76183F; Tue, 9 Jun 2015 11:45: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 B614B61828; Tue, 9 Jun 2015 11:45:21 +0000 (UTC) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id 373C561CE2 for ; Tue, 9 Jun 2015 11:44:49 +0000 (UTC) Received: by laew7 with SMTP id w7so10129522lae.1 for ; Tue, 09 Jun 2015 04:44:47 -0700 (PDT) X-Received: by 10.112.28.74 with SMTP id z10mr21785822lbg.48.1433850287792; Tue, 09 Jun 2015 04:44:47 -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 bm5sm44272lbc.45.2015.06.09.04.44.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jun 2015 04:44:46 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Tue, 9 Jun 2015 13:44:15 +0200 Message-Id: <1433850261-1302-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433850261-1302-1-git-send-email-christophe.milard@linaro.org> References: <1433850261-1302-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv4 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.217.171 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(); +}