From patchwork Fri Jul 10 00:44:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51002 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A84B9228E5 for ; Fri, 10 Jul 2015 00:53:14 +0000 (UTC) Received: by lagc2 with SMTP id c2sf34167738lag.0 for ; Thu, 09 Jul 2015 17:53:13 -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=8lboYBl/lLwTNH1GhjhqwUlhMM8ABaRmUofaMiyCBYw=; b=dSolSQ3YGgmKbSoZOubKK7OnfGeTi8jAAAAjVHIz0FhQJbogS0bkOKH7e2zM9/86DN wUSn9VD2yIu3YkV2Dtqqm0hLOoFWl8IzOHLn/58A5rcf+SB8PWFS/luYzis5gu8MlUsJ SPg3mA0qR6z4lchM/h1hVns/rqM1p6P3l8KMPCoslS0dmiwFlXu9jE8uRRGXXBDF97fA GedtfrJVq91p2kEDtcsM70MSe9YL00gWd+RsULE+78vutUnkZVz63D8/4KSKH3SGxg86 vcTWhmf0GQk7WnlFKrkB1I5I9HuZfkcpvHlTj5qICbTsjQ1FhYbDnTnBLJ+OA3LTvpY9 4d2w== X-Gm-Message-State: ALoCoQngl7DBd1ZqjL5X23dKIIeyISaTrFDcMooo7YKr6krcwDJQx9MErULz9iLSXyLrQ6q/reww X-Received: by 10.194.93.198 with SMTP id cw6mr9381228wjb.3.1436489593632; Thu, 09 Jul 2015 17:53:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.146 with SMTP id j18ls1174670laa.22.gmail; Thu, 09 Jul 2015 17:53:13 -0700 (PDT) X-Received: by 10.152.8.168 with SMTP id s8mr17479210laa.116.1436489593458; Thu, 09 Jul 2015 17:53:13 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id p5si5869665lap.109.2015.07.09.17.53.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labgy5 with SMTP id gy5so104000759lab.2 for ; Thu, 09 Jul 2015 17:53:13 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr16960857lbc.41.1436489593366; Thu, 09 Jul 2015 17:53:13 -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 hn6csp1013277lbb; Thu, 9 Jul 2015 17:53:12 -0700 (PDT) X-Received: by 10.55.22.100 with SMTP id g97mr29272000qkh.6.1436489592228; Thu, 09 Jul 2015 17:53:12 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f94si8128346qkf.121.2015.07.09.17.53.11; Thu, 09 Jul 2015 17:53:12 -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 6E54D62075; Fri, 10 Jul 2015 00:53:11 +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 DF6C8620A0; Fri, 10 Jul 2015 00:46:54 +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 B57A962076; Fri, 10 Jul 2015 00:46:34 +0000 (UTC) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id DCAF36208A for ; Fri, 10 Jul 2015 00:44:55 +0000 (UTC) Received: by lagx9 with SMTP id x9so256016838lag.1 for ; Thu, 09 Jul 2015 17:44:54 -0700 (PDT) X-Received: by 10.112.133.72 with SMTP id pa8mr5584190lbb.117.1436489094903; Thu, 09 Jul 2015 17:44:54 -0700 (PDT) Received: from localhost.localdomain (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id o18sm1936473lbg.1.2015.07.09.17.44.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:54 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Fri, 10 Jul 2015 02:44:24 +0200 Message-Id: <1436489068-8929-14-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1436489068-8929-1-git-send-email-christophe.milard@linaro.org> References: <1436489068-8929-1-git-send-email-christophe.milard@linaro.org> X-Topics: timers patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 13/17] validation: timer: lib populated 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.47 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 test symbols are now exported in the module lib. Signed-off-by: Christophe Milard --- test/validation/timer/timer.c | 12 ++++++------ test/validation/timer/timer.h | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/test/validation/timer/timer.c b/test/validation/timer/timer.c index 492d52f..3cda428 100644 --- a/test/validation/timer/timer.c +++ b/test/validation/timer/timer.c @@ -50,7 +50,7 @@ struct test_timer { #define TICK_INVALID (~(uint64_t)0) -static void timer_test_timeout_pool_alloc(void) +void timer_test_timeout_pool_alloc(void) { odp_pool_t pool; const int num = 3; @@ -94,7 +94,7 @@ static void timer_test_timeout_pool_alloc(void) CU_ASSERT(odp_pool_destroy(pool) == 0); } -static void timer_test_timeout_pool_free(void) +void timer_test_timeout_pool_free(void) { odp_pool_t pool; odp_timeout_t tmo; @@ -125,7 +125,7 @@ static void timer_test_timeout_pool_free(void) CU_ASSERT(odp_pool_destroy(pool) == 0); } -static void timer_test_odp_timer_cancel(void) +void timer_test_odp_timer_cancel(void) { odp_pool_t pool; odp_pool_param_t params; @@ -436,7 +436,7 @@ static void *worker_entrypoint(void *arg TEST_UNUSED) } /* @private Timer test case entrypoint */ -static void timer_test_odp_timer_all(void) +void timer_test_odp_timer_all(void) { int rc; odp_pool_param_t params; @@ -529,7 +529,7 @@ static void timer_test_odp_timer_all(void) CU_PASS("ODP timer test"); } -static CU_TestInfo timer_suite[] = { +CU_TestInfo timer_suite[] = { {"test_timeout_pool_alloc", timer_test_timeout_pool_alloc}, {"test_timeout_pool_free", timer_test_timeout_pool_free}, {"test_odp_timer_cancel", timer_test_odp_timer_cancel}, @@ -537,7 +537,7 @@ static CU_TestInfo timer_suite[] = { CU_TEST_INFO_NULL, }; -static CU_SuiteInfo timer_suites[] = { +CU_SuiteInfo timer_suites[] = { {"Timer", NULL, NULL, NULL, NULL, timer_suite}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/timer/timer.h b/test/validation/timer/timer.h index b18af80..09cd3f7 100644 --- a/test/validation/timer/timer.h +++ b/test/validation/timer/timer.h @@ -4,4 +4,19 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include + +/* test functions: */ +void timer_test_timeout_pool_alloc(void); +void timer_test_timeout_pool_free(void); +void timer_test_odp_timer_cancel(void); +void timer_test_odp_timer_all(void); + +/* test arrays: */ +extern CU_TestInfo timer_suite[]; + +/* test registery: */ +extern CU_SuiteInfo timer_suites[]; + +/* main test program: */ int timer_main(void);