From patchwork Fri Jun 26 11:09:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50341 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B396A228FD for ; Fri, 26 Jun 2015 11:14:17 +0000 (UTC) Received: by lbcui10 with SMTP id ui10sf25791046lbc.0 for ; Fri, 26 Jun 2015 04:14:16 -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=QGQthH7lqMt+CCC+Sq83wihgALeVNE2hpj7JXn0MYkM=; b=ZQww6kzADhmHsRkTDGCqXaYCvEReedWOCBJyY4Xg4qmae0ONtE8iPhMnzyOFk9wYAt RlEw2BOOey3wzlZGuKakI6n3YO4adIFe87gyo+YIJ14U73qi1GIOvNxumhQw8HTWFbie yTdLayDJqAj8BG13exBaAL44jHsZBHb13Ssce4QRrFHnhr0svwrLG2sfFlDyZTBqGnv5 ZKINaMTcsHtz3St2IUveBcqfph9MLMB5RK+HIh5TNlsJiFrHInl0d/b3tq/aGwq6CKaF ruO3ZIoE+E01PeB18G4dImpHblI2VyAZJwt6eJVcgMCMTy+L22ppa7hhVtu6CgBgKKj6 Xd9Q== X-Gm-Message-State: ALoCoQkHACT7POH2ZGS3UbHLgKQxlxMh4ZHgk+T7HTlPSmwRyGn/628E2LkjYYgKMzNeS/Ne63Gu X-Received: by 10.180.87.201 with SMTP id ba9mr1534430wib.3.1435317256116; Fri, 26 Jun 2015 04:14:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.242.2 with SMTP id wm2ls450103lac.38.gmail; Fri, 26 Jun 2015 04:14:15 -0700 (PDT) X-Received: by 10.112.53.226 with SMTP id e2mr1121496lbp.124.1435317255823; Fri, 26 Jun 2015 04:14:15 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id p5si1633903lap.109.2015.06.26.04.14.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 04:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbnk3 with SMTP id k3so62411433lbn.1 for ; Fri, 26 Jun 2015 04:14:15 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr1150158lbc.32.1435317255703; Fri, 26 Jun 2015 04:14:15 -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 hn6csp1242745lbb; Fri, 26 Jun 2015 04:14:14 -0700 (PDT) X-Received: by 10.55.24.41 with SMTP id j41mr2105683qkh.91.1435317254139; Fri, 26 Jun 2015 04:14:14 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j87si5998295qkh.52.2015.06.26.04.14.13; Fri, 26 Jun 2015 04:14:14 -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 587C861EC4; Fri, 26 Jun 2015 11:14:13 +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 3001D620FC; Fri, 26 Jun 2015 11:12:50 +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 DC12862104; Fri, 26 Jun 2015 11:12:39 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id 3939162103 for ; Fri, 26 Jun 2015 11:09:54 +0000 (UTC) Received: by lagi2 with SMTP id i2so61615439lag.2 for ; Fri, 26 Jun 2015 04:09:53 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr1084716lal.35.1435316993070; Fri, 26 Jun 2015 04:09:53 -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 ja1sm8073835lbc.38.2015.06.26.04.09.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 04:09:52 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 26 Jun 2015 13:09:37 +0200 Message-Id: <1435316981-22355-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435316981-22355-1-git-send-email-christophe.milard@linaro.org> References: <1435316981-22355-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_packet.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.178 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_packet.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 8c2ed7b..2ce00a0 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -31,6 +31,8 @@ dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.c +odp_packet_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_packet_SOURCES = odp_packet.c dist_odp_cpumask_SOURCES = odp_cpumask.c dist_odp_thread_SOURCES = odp_thread.c diff --git a/test/validation/odp_packet.c b/test/validation/odp_packet.c index 5915aba..a621747 100644 --- a/test/validation/odp_packet.c +++ b/test/validation/odp_packet.c @@ -700,7 +700,7 @@ static void packet_offset(void) CU_ASSERT(ptr != NULL); } -CU_TestInfo packet_tests[] = { +static CU_TestInfo packet_tests[] = { _CU_TEST_INFO(packet_alloc_free), _CU_TEST_INFO(packet_alloc_segmented), _CU_TEST_INFO(packet_basic_metadata), @@ -722,7 +722,7 @@ CU_TestInfo packet_tests[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo packet_suites[] = { { .pName = "packet tests", .pTests = packet_tests, .pInitFunc = packet_testsuite_init, @@ -730,3 +730,14 @@ CU_SuiteInfo odp_testsuites[] = { }, CU_SUITE_INFO_NULL, }; + +static int packet_main(void) +{ + return odp_cunit_run(packet_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return packet_main(); +}