From patchwork Fri Jul 24 11:27:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51431 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id B172520323 for ; Fri, 24 Jul 2015 11:41:15 +0000 (UTC) Received: by wicmm11 with SMTP id mm11sf5911081wic.3 for ; Fri, 24 Jul 2015 04:41: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=5lsaxGE1wdHDp7TsDb+Se2kd14a0mpZkCeU6BF8PNMs=; b=aiKOfIlBcRPF6hNgSoeY/7dCbB/8ohpk+hXd+KYd1j2GxWbCCB/I8iPht2HmKykbgM QTGkwpJwqQQcXHw7Y5DYfI3NOLW6UqNWzx9DPYj5kBUVWP9+65LXOwRTv22moBKEkNuY iPtE1az3hvF3GS7EIoylXt2gEDt/8jvjHL1guNj0vFqjVIxisgORi3B1IV856RGAUkfA pDFUg07hGNwRVhXtpKBsVPYMg0GpILv5/gTUpZKaLDKBq6BK3Rmm4/LIYMN56Y/aSh5c 3Wpnsq5GGhUoazSNKyYkCbhlfqj2fVq1CUisyiiT3xjsxzXsKUfPMZQs3bHoBxyNnNxq AFCg== X-Gm-Message-State: ALoCoQnDQp3RrkRz6oJHbP6ANP5+3wwRDSOYztPxiyXqjm4yyiIR3qbim3100qgeJEbxUfhx0zn5 X-Received: by 10.112.118.194 with SMTP id ko2mr5995454lbb.16.1437738075005; Fri, 24 Jul 2015 04:41:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.171 with SMTP id dh11ls321273lac.47.gmail; Fri, 24 Jul 2015 04:41:14 -0700 (PDT) X-Received: by 10.112.142.105 with SMTP id rv9mr13040242lbb.11.1437738074590; Fri, 24 Jul 2015 04:41:14 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id l6si7288011lbd.114.2015.07.24.04.41.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 04:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lagw2 with SMTP id w2so12439820lag.3 for ; Fri, 24 Jul 2015 04:41:14 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr13035263lbc.112.1437738074145; Fri, 24 Jul 2015 04:41:14 -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 l6csp1120490lba; Fri, 24 Jul 2015 04:41:13 -0700 (PDT) X-Received: by 10.140.135.80 with SMTP id 77mr20962843qhh.8.1437738072746; Fri, 24 Jul 2015 04:41:12 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x1si9653434qha.55.2015.07.24.04.41.11; Fri, 24 Jul 2015 04:41: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 D5F636180C; Fri, 24 Jul 2015 11:41: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 A684661B64; Fri, 24 Jul 2015 11:30: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 E496161B64; Fri, 24 Jul 2015 11:30:43 +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 8860961C9C for ; Fri, 24 Jul 2015 11:28:23 +0000 (UTC) Received: by laah7 with SMTP id h7so12365823laa.0 for ; Fri, 24 Jul 2015 04:28:22 -0700 (PDT) X-Received: by 10.152.23.72 with SMTP id k8mr13394141laf.34.1437737302492; Fri, 24 Jul 2015 04:28:22 -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 y1sm1582274lal.39.2015.07.24.04.28.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 04:28:22 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org Date: Fri, 24 Jul 2015 13:27:36 +0200 Message-Id: <1437737259-16953-18-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> References: <1437737259-16953-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 17/20] validation: time: 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.53 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/time/time.c | 8 ++++---- test/validation/time/time.h | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/test/validation/time/time.c b/test/validation/time/time.c index 0aac599..4fa2eaf 100644 --- a/test/validation/time/time.c +++ b/test/validation/time/time.c @@ -12,7 +12,7 @@ #define BUSY_LOOP_CNT 100 /* check that a cycles difference gives a reasonable result */ -static void time_test_odp_cycles_diff(void) +void time_test_odp_cycles_diff(void) { /* volatile to stop optimization of busy loop */ volatile int count = 0; @@ -32,7 +32,7 @@ static void time_test_odp_cycles_diff(void) } /* check that a negative cycles difference gives a reasonable result */ -static void time_test_odp_cycles_negative_diff(void) +void time_test_odp_cycles_negative_diff(void) { uint64_t diff, cycles1, cycles2; @@ -43,7 +43,7 @@ static void time_test_odp_cycles_negative_diff(void) } /* check that related conversions come back to the same value */ -static void time_test_odp_time_conversion(void) +void time_test_odp_time_conversion(void) { uint64_t ns1, ns2, cycles; uint64_t upper_limit, lower_limit; @@ -68,7 +68,7 @@ CU_TestInfo time_suite_time[] = { CU_TEST_INFO_NULL }; -static CU_SuiteInfo time_suites[] = { +CU_SuiteInfo time_suites[] = { {"Time", NULL, NULL, NULL, NULL, time_suite_time}, CU_SUITE_INFO_NULL }; diff --git a/test/validation/time/time.h b/test/validation/time/time.h index 1cd54d9..76656e9 100644 --- a/test/validation/time/time.h +++ b/test/validation/time/time.h @@ -7,6 +7,20 @@ #ifndef _ODP_TEST_TIME_H_ #define _ODP_TEST_TIME_H_ +#include + +/* test functions: */ +void time_test_odp_cycles_diff(void); +void time_test_odp_cycles_negative_diff(void); +void time_test_odp_time_conversion(void); + +/* test arrays: */ +extern CU_TestInfo time_suite_time[]; + +/* test registery: */ +extern CU_SuiteInfo time_suites[]; + +/* main test program: */ int time_main(void); #endif