From patchwork Fri Jul 24 11:27:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51433 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id E5E9D20323 for ; Fri, 24 Jul 2015 11:41:52 +0000 (UTC) Received: by lbbvz8 with SMTP id vz8sf6607569lbb.2 for ; Fri, 24 Jul 2015 04:41:51 -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=+21IGrN7mmkFlBYs1SfZZASYKdJ2hRhm6ZiHGq5aScg=; b=TGIJpgW3aLztqqr+ubIx+6R0mHV2T/ETgSe1sVQrOHMq1LwFGzGrjLBPax+eImm6wq rlcFD1Bv6MAOZ6cjWXCBS0k0Q4Fei9Mgp7LiJiT9/M10uKQc2nxefx924YREiWpDMsxo pWkkynN4WfbuDzpJmVFdcjcecHg/bF0fWsreJllYIaJ7ERJGTk+k1Mh7jch3/n2ECzFn +CCWAuPFW4NG9b0oYmswAju5ZNsydbtAejTltf1DZ7TS5K83hu1rR0oqOQjU+gGKGNRL UHKnomw37EhqWrSYyaGHkZiHg5TZFifo1eR+PHnDrhbEAcp+v84uyAPnhWN5G1TsoABC JhPw== X-Gm-Message-State: ALoCoQmyo0Fq+mQwXPFL0XFTLzTrKo+brYmTQDMS7j2Fv2Sw+BbB0ArqIBz1cCSsV5YT+BxwsI1G X-Received: by 10.112.188.233 with SMTP id gd9mr6026196lbc.12.1437738111909; Fri, 24 Jul 2015 04:41:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.3 with SMTP id ky3ls381083lab.70.gmail; Fri, 24 Jul 2015 04:41:51 -0700 (PDT) X-Received: by 10.152.116.39 with SMTP id jt7mr13058721lab.82.1437738111764; Fri, 24 Jul 2015 04:41:51 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id b1si7304640lak.43.2015.07.24.04.41.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 04:41:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lagw2 with SMTP id w2so12448850lag.3 for ; Fri, 24 Jul 2015 04:41:51 -0700 (PDT) X-Received: by 10.152.9.66 with SMTP id x2mr11957263laa.76.1437738111646; Fri, 24 Jul 2015 04:41:51 -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 l6csp1120795lba; Fri, 24 Jul 2015 04:41:50 -0700 (PDT) X-Received: by 10.140.32.38 with SMTP id g35mr19253370qgg.74.1437738110293; Fri, 24 Jul 2015 04:41:50 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 70si9630437qhc.111.2015.07.24.04.41.49; Fri, 24 Jul 2015 04:41:50 -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 9815161B1C; Fri, 24 Jul 2015 11:41:49 +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 3CE7261CC4; Fri, 24 Jul 2015 11:30: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 89F6061B5A; Fri, 24 Jul 2015 11:30:45 +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 6D1E461CB3 for ; Fri, 24 Jul 2015 11:28:27 +0000 (UTC) Received: by laah7 with SMTP id h7so12366684laa.0 for ; Fri, 24 Jul 2015 04:28:26 -0700 (PDT) X-Received: by 10.112.186.35 with SMTP id fh3mr13005094lbc.82.1437737306429; Fri, 24 Jul 2015 04:28:26 -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.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jul 2015 04:28:25 -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:39 +0200 Message-Id: <1437737259-16953-21-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 20/20] validation: random: 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.46 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/random/random.c | 6 +++--- test/validation/random/random.h | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/test/validation/random/random.c b/test/validation/random/random.c index a42523f..039c7a3 100644 --- a/test/validation/random/random.c +++ b/test/validation/random/random.c @@ -11,7 +11,7 @@ /* Helper macro for CU_TestInfo initialization */ #define _CU_TEST_INFO(test_func) {#test_func, test_func} -static void random_test_get_size(void) +void random_test_get_size(void) { int32_t ret; uint8_t buf[32]; @@ -20,12 +20,12 @@ static void random_test_get_size(void) CU_ASSERT(ret == sizeof(buf)); } -static CU_TestInfo random_suite[] = { +CU_TestInfo random_suite[] = { _CU_TEST_INFO(random_test_get_size), CU_TEST_INFO_NULL, }; -static CU_SuiteInfo random_suites[] = { +CU_SuiteInfo random_suites[] = { {"Random", NULL, NULL, NULL, NULL, random_suite}, CU_SUITE_INFO_NULL, }; diff --git a/test/validation/random/random.h b/test/validation/random/random.h index 34e375c..4d3d39e 100644 --- a/test/validation/random/random.h +++ b/test/validation/random/random.h @@ -7,6 +7,18 @@ #ifndef _ODP_TEST_RANDOM_H_ #define _ODP_TEST_RANDOM_H_ +#include + +/* test functions: */ +void random_test_get_size(void); + +/* test arrays: */ +extern CU_TestInfo random_suite[]; + +/* test registery: */ +extern CU_SuiteInfo random_suites[]; + +/* main test program: */ int random_main(void); #endif