From patchwork Mon Jun 29 12:48:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50408 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 B036A218E4 for ; Mon, 29 Jun 2015 12:49:16 +0000 (UTC) Received: by wgbbj7 with SMTP id bj7sf46658070wgb.2 for ; Mon, 29 Jun 2015 05:49: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=MXAa7VedrOyCt4TiZD/9HJtty16/NQ2Xr/3lITtozRQh6dcuXvJ3JaQwUNDnXmM5Gz 6nhWTj/3nOM7LqG5OmY61f+KAcwN4y86h5E4xMNIDpZcGadmxjKPqFqhH95MYLTVK89P C+8TcfnIKV+WvTqXCJBtCjNZg8xwVUCZREIKkJJ42e40D+9OVOHsVZHrB3QdlzIgLOZN CvHuWNTcrzQWpjd3yIcwlX7LmpNyVwNt5KZgzRpp6VsI5ZblkUXzx41sm9VAQJLfw2RU WCZ6/4uosOMu2RAu/EaDlU7NEHdFlu9zUzZf+CrCuMk2Mj8rvgKjQZkUCfKm6X5bKv3A uW+g== X-Gm-Message-State: ALoCoQkXN2y4+dAeMtEKVMR7qfDtSAl2d5V67wY8CJgEHjU/C9vVoZMWSxuDH2CReNCpWJtLuoDd X-Received: by 10.152.8.9 with SMTP id n9mr7912776laa.1.1435582155956; Mon, 29 Jun 2015 05:49:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.35 with SMTP id cj3ls781348lad.7.gmail; Mon, 29 Jun 2015 05:49:15 -0700 (PDT) X-Received: by 10.152.42.177 with SMTP id p17mr13889553lal.29.1435582155807; Mon, 29 Jun 2015 05:49:15 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id yo1si9171097lbb.167.2015.06.29.05.49.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 05:49:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by laar3 with SMTP id r3so62071981laa.0 for ; Mon, 29 Jun 2015 05:49:15 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr13971507lbp.88.1435582155702; Mon, 29 Jun 2015 05:49: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 hn6csp1683368lbb; Mon, 29 Jun 2015 05:49:14 -0700 (PDT) X-Received: by 10.140.29.55 with SMTP id a52mr18309538qga.25.1435582154173; Mon, 29 Jun 2015 05:49:14 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g6si41725201qce.39.2015.06.29.05.49.12; Mon, 29 Jun 2015 05:49: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 93FBF61DF8; Mon, 29 Jun 2015 12:49:12 +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 C82F161DD4; Mon, 29 Jun 2015 12:48:39 +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 662FD61DC5; Mon, 29 Jun 2015 12:48:34 +0000 (UTC) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id 5D74561C89 for ; Mon, 29 Jun 2015 12:48:33 +0000 (UTC) Received: by laar3 with SMTP id r3so62049012laa.0 for ; Mon, 29 Jun 2015 05:48:32 -0700 (PDT) X-Received: by 10.112.118.137 with SMTP id km9mr14087755lbb.28.1435582112374; Mon, 29 Jun 2015 05:48:32 -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 w7sm10798397lag.42.2015.06.29.05.48.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Jun 2015 05:48:31 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 29 Jun 2015 14:48:17 +0200 Message-Id: <1435582101-18831-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435582101-18831-1-git-send-email-christophe.milard@linaro.org> References: <1435582101-18831-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 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.215.44 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(); +}