From patchwork Mon Jul 27 17:38:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51563 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 4DCB522918 for ; Mon, 27 Jul 2015 17:51:44 +0000 (UTC) Received: by laah7 with SMTP id h7sf30116343laa.2 for ; Mon, 27 Jul 2015 10:51:43 -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=kx8ecpLNEKJeRiwqtRuyIxqD0njEYjkmD49GiUl3psA=; b=m3Usf/Kj8hxRKdLAnZmtn+Rvkq9vVS3g4BMshx57oajU1ClqA2oFunXlb/YWLVZwyA k1cPzHEua8LqcaIzSurYdfS4/xGQVM5FEq2lKyO3RFNt58Dm2VseNxWcYPkY+l6fB5/z 8s0tTmGFeFUw30NrCeCQW/b06Pganem15cotlI/1OkOCtwbVM+3nkle77Vgm2ibFqGZQ GDXZBar5ugpiS89zcFA6M1ey0oRihd+kDYdTJB6vkP/VWjTFFNJ19Tz0Ch3PL1O9ZNeR 1wbNugW8ZuNioChtaokREKizf/5Xs5bZ6L0PjR2SdxGVmOcp/foSuB1hnMnhxZaigb6j U1Qg== X-Gm-Message-State: ALoCoQl2IDltVQWat8U1iJ4QtXOhJIUqKXxxqNXgUzGP1TSYDmWE4t6s4rfi4ZBzeykKdRqGmLR0 X-Received: by 10.112.215.67 with SMTP id og3mr12438960lbc.8.1438019503312; Mon, 27 Jul 2015 10:51:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.4 with SMTP id x4ls676676lag.100.gmail; Mon, 27 Jul 2015 10:51:43 -0700 (PDT) X-Received: by 10.112.210.137 with SMTP id mu9mr27436889lbc.95.1438019503096; Mon, 27 Jul 2015 10:51:43 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id j10si15875647lbp.23.2015.07.27.10.51.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:51:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagw2 with SMTP id w2so53785036lag.3 for ; Mon, 27 Jul 2015 10:51:43 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr28881015lbc.32.1438019502945; Mon, 27 Jul 2015 10:51:42 -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 l6csp1664286lba; Mon, 27 Jul 2015 10:51:42 -0700 (PDT) X-Received: by 10.140.17.139 with SMTP id 11mr41872970qgd.65.1438019501591; Mon, 27 Jul 2015 10:51:41 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p75si21798406qgp.114.2015.07.27.10.51.40; Mon, 27 Jul 2015 10:51:41 -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 CEA5F61DDC; Mon, 27 Jul 2015 17:51:40 +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 B790A61DB6; Mon, 27 Jul 2015 17:41:18 +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 07D3A61DBB; Mon, 27 Jul 2015 17:41:15 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id C27DD61D6B for ; Mon, 27 Jul 2015 17:39:31 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so58480487lbb.0 for ; Mon, 27 Jul 2015 10:39:30 -0700 (PDT) X-Received: by 10.112.185.66 with SMTP id fa2mr27780836lbc.42.1438018770733; Mon, 27 Jul 2015 10:39:30 -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.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:29 -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:49 +0200 Message-Id: <1438018732-2778-18-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: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv3 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.41 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..1f69826 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 registry: */ +extern CU_SuiteInfo time_suites[]; + +/* main test program: */ int time_main(void); #endif