From patchwork Wed Jun 10 16:54:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49714 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3269A245D4 for ; Wed, 10 Jun 2015 16:55:36 +0000 (UTC) Received: by wgme6 with SMTP id e6sf13396527wgm.3 for ; Wed, 10 Jun 2015 09:55:35 -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=89RE+DAPmf3YA+wNg9KLlPChMGmn24Bu2cdZLliVEgQ=; b=GpecnVWaPC/F7SlIubyHAn9YwgBerZaXA4X1k4+TJdaVTSS/nVepm0EK5+FXnQmwZf SFk9gB+e7xxdoK6vS342lGAkzcUS3GAdIWSkF+J30HxHWVpRWjKWDX7IJA4dwH214L4h 77vYarVvJtCce+9eqoIwIxXFgAotmOZMiA/Dvzije26s85eJBiymnd9kIr6hebwe/c74 ZVN+z0Pcr5bhpfJcfIf2UBiYT28MtO+qeLFN75/1tJ7Xi+0cgHk5eaYezkzcgYtgEbBv AG0IQP4MMd/j3S68BAwC5/aeRnuKch+JRvKtE7++HouVIk58NiHqmkLOfvGRL3s2appy 1xzg== X-Gm-Message-State: ALoCoQmFrzzcCjDRpQ7avcLEa3G9cdkKBCahFmm5eO5373cOPXnEkTELqrbFAgyVS3oiaAqK8s3X X-Received: by 10.112.122.13 with SMTP id lo13mr3693901lbb.5.1433955335448; Wed, 10 Jun 2015 09:55:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.162 with SMTP id rd2ls257722lac.84.gmail; Wed, 10 Jun 2015 09:55:35 -0700 (PDT) X-Received: by 10.112.125.166 with SMTP id mr6mr5108215lbb.83.1433955335297; Wed, 10 Jun 2015 09:55:35 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id th3si9496752lbb.146.2015.06.10.09.55.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 09:55:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labpy14 with SMTP id py14so37493707lab.0 for ; Wed, 10 Jun 2015 09:55:35 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr5080608lbc.112.1433955335135; Wed, 10 Jun 2015 09:55:35 -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 hn6csp3460714lbb; Wed, 10 Jun 2015 09:55:34 -0700 (PDT) X-Received: by 10.140.108.6 with SMTP id i6mr5177239qgf.73.1433955333478; Wed, 10 Jun 2015 09:55:33 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p186si216452qha.8.2015.06.10.09.55.32; Wed, 10 Jun 2015 09:55:33 -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 9C8A661F63; Wed, 10 Jun 2015 16:55:32 +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 6FA8761EE0; Wed, 10 Jun 2015 16:55:29 +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 615F961840; Wed, 10 Jun 2015 16:55:24 +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 211A961F65 for ; Wed, 10 Jun 2015 16:54:51 +0000 (UTC) Received: by laar3 with SMTP id r3so37273269laa.3 for ; Wed, 10 Jun 2015 09:54:50 -0700 (PDT) X-Received: by 10.112.25.69 with SMTP id a5mr5120322lbg.16.1433955289987; Wed, 10 Jun 2015 09:54:49 -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 i1sm2328544lae.45.2015.06.10.09.54.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Jun 2015 09:54:48 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 10 Jun 2015 18:54:19 +0200 Message-Id: <1433955265-4180-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433955265-4180-1-git-send-email-christophe.milard@linaro.org> References: <1433955265-4180-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv5 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.42 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 Reviewed-by: Mike Holmes Reviewed-by: Stuart Haslam --- 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 e1025d6..c347913 100644 --- a/test/validation/odp_pktio.c +++ b/test/validation/odp_pktio.c @@ -689,7 +689,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}, @@ -705,8 +705,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(); +}