From patchwork Fri Jul 10 00:44:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51004 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 82843228E5 for ; Fri, 10 Jul 2015 00:53:44 +0000 (UTC) Received: by lagw2 with SMTP id w2sf386773lag.3 for ; Thu, 09 Jul 2015 17:53: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=yuyaDAYdtfGLDzzeUv5y2dTqGXysTkgN/ES5JrNwGqs=; b=RvP4zEGdl35UgxpY+FmUm5YIRxDRmxL/6LSO3N9Y9uSFBvROFEzGyZUUv0wfLkA4F6 DTf9TwUvHunblBDMGfq3tb+D6yifC279YO/vh90P/R37vR/kBxehGXAR2Y087K3uIJcz zH5wKZq0rUP4pY640GLgs0j5RBJX2iWAuZbvL/E8DnunKB4OeflrPNkGZdVYwgVNQBV2 xgxSr0vAzvHLf38LuSnKczqYKOcebzOAkoSY8ntkOHVbTftzXQkHgEq+DLJofTCnHIp5 XBOawmhf5oD2ku+BMbtcfi9SBmncHo1oK2fdUfZ+vU4ufcsrQlduTBddnQhQiXPkVPiP WS+Q== X-Gm-Message-State: ALoCoQmv4u7UcLyrMw3n6SqEyumn/oYneX15xhbYZfuSKbPSezR0NYouVRKmmNJ1RhFUbA+orJ71 X-Received: by 10.180.198.9 with SMTP id iy9mr331570wic.7.1436489623459; Thu, 09 Jul 2015 17:53:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.40 with SMTP id v8ls1081696laj.88.gmail; Thu, 09 Jul 2015 17:53:43 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr16962190lbc.41.1436489623292; Thu, 09 Jul 2015 17:53:43 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id kv7si5857601lac.157.2015.07.09.17.53.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbzd8 with SMTP id d8so38752237lbz.0 for ; Thu, 09 Jul 2015 17:53:43 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr17301220lbb.36.1436489623192; Thu, 09 Jul 2015 17:53:43 -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 hn6csp1013454lbb; Thu, 9 Jul 2015 17:53:42 -0700 (PDT) X-Received: by 10.140.84.137 with SMTP id l9mr29129816qgd.94.1436489621983; Thu, 09 Jul 2015 17:53:41 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k90si8926164qgd.68.2015.07.09.17.53.41; Thu, 09 Jul 2015 17:53: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 32F5061DDF; Fri, 10 Jul 2015 00:53:41 +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 711EE6209A; Fri, 10 Jul 2015 00:46:59 +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 658BA6207D; Fri, 10 Jul 2015 00:46:35 +0000 (UTC) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id 87B456207C for ; Fri, 10 Jul 2015 00:44:57 +0000 (UTC) Received: by lagx9 with SMTP id x9so256017065lag.1 for ; Thu, 09 Jul 2015 17:44:56 -0700 (PDT) X-Received: by 10.112.140.9 with SMTP id rc9mr17499568lbb.14.1436489096454; Thu, 09 Jul 2015 17:44:56 -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.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:55 -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:25 +0200 Message-Id: <1436489068-8929-15-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: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 14/17] 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.217.172 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 30c2fdc..376eb87 100644 --- a/test/validation/time/time.h +++ b/test/validation/time/time.h @@ -4,4 +4,18 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#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);