From patchwork Mon Jul 27 17:38:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51561 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 patches.linaro.org (Postfix) with ESMTPS id EDABD22918 for ; Mon, 27 Jul 2015 17:49:07 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf30268346wic.1 for ; Mon, 27 Jul 2015 10:49:07 -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=Ch9zj/gOgy8a4xSrno1wiva7l7RyIa2gvMS19upKBt4=; b=enbM9VKekuJe1F6J2AX1QGRTgak7VtayP73Pi4HiLdSyaWelbiNsfoV1ZXfn2qbwE+ oer9Ttf/90toC7VYfDsXBEHCQ7zkbyAlK/HE+caxPCq3mpVLXbtQbMPromiYinizCkko NQ4tF1KBOqSVr/XbCsiBB7bKwIwNIaKZmFyYA9EUcJkKR4Sh5YBf29eH0n8A3Xi9GVel Y1PmENtaEv2AuZ/tKdWoLEefU6CQuqee6Tks3ryIn7FsvtWmjdzBcjabmI0yW21KVkxL wYmS4aPG7GJD4HvmPXOyio4/RxLYUyqjXg6BQWl7T5OH8sN0/WAoIFOWxqfYdfmZBPaM F3XQ== X-Gm-Message-State: ALoCoQnNCShJZjPI5ymfYCK9rjdaaOHOwGJBJu7T3SV/xNEeBKmaF9Lmd2Fx5NMyFbUQc0d7LoKG X-Received: by 10.180.35.162 with SMTP id i2mr5706227wij.6.1438019347240; Mon, 27 Jul 2015 10:49:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.232 with SMTP id dr8ls694704lac.9.gmail; Mon, 27 Jul 2015 10:49:07 -0700 (PDT) X-Received: by 10.152.179.225 with SMTP id dj1mr20121614lac.53.1438019347080; Mon, 27 Jul 2015 10:49:07 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id 7si15842213law.133.2015.07.27.10.49.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lblf12 with SMTP id f12so58616849lbl.2 for ; Mon, 27 Jul 2015 10:49:07 -0700 (PDT) X-Received: by 10.112.125.34 with SMTP id mn2mr25446558lbb.76.1438019346949; Mon, 27 Jul 2015 10:49:06 -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.7.198 with SMTP id l6csp1663149lba; Mon, 27 Jul 2015 10:49:05 -0700 (PDT) X-Received: by 10.140.42.98 with SMTP id b89mr42765567qga.78.1438019345451; Mon, 27 Jul 2015 10:49:05 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id h137si21765338qhc.38.2015.07.27.10.49.04; Mon, 27 Jul 2015 10:49:05 -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 C08E861DEE; Mon, 27 Jul 2015 17:49:04 +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 5A4BB61E28; Mon, 27 Jul 2015 17:40:55 +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 7EB6461DC0; Mon, 27 Jul 2015 17:40:37 +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 8DAC061DDD for ; Mon, 27 Jul 2015 17:39:29 +0000 (UTC) Received: by laah7 with SMTP id h7so53653718laa.0 for ; Mon, 27 Jul 2015 10:39:28 -0700 (PDT) X-Received: by 10.112.13.97 with SMTP id g1mr28255389lbc.52.1438018768545; Mon, 27 Jul 2015 10:39:28 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id 4sm4027442lai.36.2015.07.27.10.39.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:27 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Mon, 27 Jul 2015 19:38:48 +0200 Message-Id: <1438018732-2778-17-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438018732-2778-1-git-send-email-christophe.milard@linaro.org> References: <1438018732-2778-1-git-send-email-christophe.milard@linaro.org> X-Topics: timers patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 16/20] 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.217.169 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 ecca785..30b2b43 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 5bdf908..3694671 100644 --- a/test/validation/timer/timer.h +++ b/test/validation/timer/timer.h @@ -7,6 +7,21 @@ #ifndef _ODP_TEST_TIMER_H_ #define _ODP_TEST_TIMER_H_ +#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 registry: */ +extern CU_SuiteInfo timer_suites[]; + +/* main test program: */ int timer_main(void); #endif