From patchwork Thu Jun 25 14:22:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50323 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 10AE9228FC for ; Thu, 25 Jun 2015 14:25:59 +0000 (UTC) Received: by wilk19 with SMTP id k19sf22194365wil.3 for ; Thu, 25 Jun 2015 07:25:58 -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=BsiLG+pdhimqA7B2kcvh6yN7XGpv0QfZLYE7U405dPn/+GCLzNZAjb5NADNKa/V9zX 8lSANZcFSGvytA30Fp+4WS3HfQKGUV4O3230S5hQwOi2wVReCBpheJaaY+HIm55LRzLP TYem/2vaonLM0Sp+nR00NfjmFhqSpIuRkY5wY4BVpexVmtg+EDeJcLHnWXSB2GdyDES3 Rxqyp8/AllefH/LoTb5N/0JgR4FmWI5BPFB6N0AhTLg8QtPRWXUgbcd5ZzJDc/0mR1DZ yLdQmOW5jQHARX2kxy7l6zBLwEJmFw1gt1crdEn/MdTj0b6kPIDHYp3uUAh759i8wrlz S30g== X-Gm-Message-State: ALoCoQnnoy9NL9/ths2YKVUBVdpVI8moTD+0eA4MH2FMl7R3s3USutso6HGxjn9TZCsPkGOzKvLL X-Received: by 10.112.9.100 with SMTP id y4mr40076521lba.20.1435242358404; Thu, 25 Jun 2015 07:25:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.10 with SMTP id j10ls29688lae.6.gmail; Thu, 25 Jun 2015 07:25:58 -0700 (PDT) X-Received: by 10.152.44.166 with SMTP id f6mr45290844lam.86.1435242358185; Thu, 25 Jun 2015 07:25:58 -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 g10si11066219lam.152.2015.06.25.07.25.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 07:25:58 -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 k3so46664580lbn.1 for ; Thu, 25 Jun 2015 07:25:58 -0700 (PDT) X-Received: by 10.112.93.37 with SMTP id cr5mr45703870lbb.106.1435242357940; Thu, 25 Jun 2015 07:25:57 -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 hn6csp644153lbb; Thu, 25 Jun 2015 07:25:57 -0700 (PDT) X-Received: by 10.55.40.91 with SMTP id o88mr62375779qkh.103.1435242356579; Thu, 25 Jun 2015 07:25:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 34si29511581qky.7.2015.06.25.07.25.55; Thu, 25 Jun 2015 07:25:56 -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 9F86261E6E; Thu, 25 Jun 2015 14:25:55 +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 325B361E56; Thu, 25 Jun 2015 14:23:24 +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 1523C61E83; Thu, 25 Jun 2015 14:23:18 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 3FF4261DEC for ; Thu, 25 Jun 2015 14:22:58 +0000 (UTC) Received: by laka10 with SMTP id a10so46084447lak.0 for ; Thu, 25 Jun 2015 07:22:57 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr45134629lbp.88.1435242176967; Thu, 25 Jun 2015 07:22:56 -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 q17sm4442749lal.37.2015.06.25.07.22.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 07:22:56 -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:22:31 +0200 Message-Id: <1435242154-21503-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435242154-21503-1-git-send-email-christophe.milard@linaro.org> References: <1435242154-21503-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 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.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_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(); +}