From patchwork Thu Jun 25 14:42: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: 50327 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B7879228FC for ; Thu, 25 Jun 2015 14:43:16 +0000 (UTC) Received: by lbbwc1 with SMTP id wc1sf19390596lbb.3 for ; Thu, 25 Jun 2015 07:43:15 -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=MWhPPzr6RYXwacwz+b7Q0Nl8DoT+WyZV7w2hSisHUec=; b=H5kPPjdx1F0oMUVb9JCFIgoim5M9MmOEt/24Jt8gqWcPEm4iN2io5qAnN4sy8ftePf xoxwPpeTnF3VpfBosdIGcOnPPylyxGvAq1Q5RIxJHomjCs7ROuU8dX1d5BqiZpIEq323 gjIZYMBSeK2V2kqwM+jbiH4B1FFyOKhLxcP4MFxy7BMA7ALbiEG3EYZCBBdEJQP0jG7X 34J+QEIuXpmDm/rqrKmSGvkoUPsnbAuD3nwA5+3kyWW1Grb9tiaVCAQDeUkCOVf2AD65 4Ef2EjHEa+jJpx45jLQoANkv7MrdilsN3clTC5GJHrH54W7Eob2iVSnM+HuwgHcEwGMt C9vg== X-Gm-Message-State: ALoCoQn79m5YAiXBb3+b/+yrAm99YaP+JQE53koJZ5CK0bESz0iY0/lcbcM+Ias+0Vk7J0/7DjBy X-Received: by 10.112.42.236 with SMTP id r12mr40074327lbl.2.1435243395748; Thu, 25 Jun 2015 07:43:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.41 with SMTP id bd9ls369226lab.109.gmail; Thu, 25 Jun 2015 07:43:15 -0700 (PDT) X-Received: by 10.112.140.9 with SMTP id rc9mr45795948lbb.14.1435243395602; Thu, 25 Jun 2015 07:43:15 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id uk6si7201438lbc.154.2015.06.25.07.43.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 07:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbpo10 with SMTP id po10so46968253lbb.3 for ; Thu, 25 Jun 2015 07:43:15 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr44644781lbc.112.1435243395475; Thu, 25 Jun 2015 07:43: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 hn6csp654277lbb; Thu, 25 Jun 2015 07:43:14 -0700 (PDT) X-Received: by 10.140.149.129 with SMTP id 123mr63928296qhv.56.1435243394095; Thu, 25 Jun 2015 07:43:14 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r75si29559176qkr.49.2015.06.25.07.43.13; Thu, 25 Jun 2015 07:43: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 1261E61E6E; Thu, 25 Jun 2015 14:43: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 C52FD61E73; Thu, 25 Jun 2015 14:42:47 +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 8371261E73; Thu, 25 Jun 2015 14:42:43 +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 3567761E46 for ; Thu, 25 Jun 2015 14:42:35 +0000 (UTC) Received: by lagi2 with SMTP id i2so46525170lag.2 for ; Thu, 25 Jun 2015 07:42:33 -0700 (PDT) X-Received: by 10.112.24.71 with SMTP id s7mr44185591lbf.37.1435243353698; Thu, 25 Jun 2015 07:42:33 -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 lb8sm4057655lab.16.2015.06.25.07.42.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 07:42:32 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 25 Jun 2015 16:42:15 +0200 Message-Id: <1435243338-29958-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435243338-29958-1-git-send-email-christophe.milard@linaro.org> References: <1435243338-29958-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 1/4] validation: own main in odp_pool.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.181 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_pool.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index f7b35a9..b0e577c 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -33,6 +33,8 @@ dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c dist_odp_timer_SOURCES = odp_timer.c dist_odp_packet_SOURCES = odp_packet.c +odp_pool_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_pool_SOURCES = odp_pool.c dist_odp_cpumask_SOURCES = odp_cpumask.c dist_odp_thread_SOURCES = odp_thread.c diff --git a/test/validation/odp_pool.c b/test/validation/odp_pool.c index 1a518a0..4379eb5 100644 --- a/test/validation/odp_pool.c +++ b/test/validation/odp_pool.c @@ -127,7 +127,7 @@ static void pool_lookup_info_print(void) #define _CU_TEST_INFO(test_func) {#test_func, test_func} -CU_TestInfo pool_tests[] = { +static CU_TestInfo pool_tests[] = { _CU_TEST_INFO(pool_create_destroy_buffer), _CU_TEST_INFO(pool_create_destroy_packet), _CU_TEST_INFO(pool_create_destroy_timeout), @@ -136,9 +136,20 @@ CU_TestInfo pool_tests[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo pool_suites[] = { { .pName = "Pool tests", .pTests = pool_tests, }, CU_SUITE_INFO_NULL, }; + +static int pool_main(void) +{ + return odp_cunit_run(pool_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return pool_main(); +}