From patchwork Fri Jul 10 00:44:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51005 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2038A228E5 for ; Fri, 10 Jul 2015 00:54:09 +0000 (UTC) Received: by wgfk9 with SMTP id k9sf83247786wgf.1 for ; Thu, 09 Jul 2015 17:54:08 -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=mIrm726iTqzSlULIPJUVAByZ27eZ+1C0dhYyavD0H+U=; b=HBfLvHwcYsSISIXFxaYDp+qeyhiiJJkG1xH9LsTsKGZ8J0WeFIDqarC7xHXfWSfDc/ puzZtweUJB6sirzyaFf/clB+xbutikBhy/kBL9smc1/LBhylAgUfiQ6Et+4l0u9X/mzN yE7XkexiqWmcRLIB8+ilZ8p+vYTWSgNYCMKridIX7/wxXDaDfRyiFH/FpiiZhsgcDT7a qDK+55YCYfJI2yVDAptfttbCbNrX9sdOhxpuBhw2WK6ZUvVIRcbCT95+0EvstO3VQl8B ivX0kb9wPtsh5cmuBBXx9NMYagOcoVXI6D+PF8xnNlTcgQWuRcboYFmRR83Ya4AebeRG Pvhg== X-Gm-Message-State: ALoCoQmL3FNsoq8+U97vffcVdynpHWuEcfRYYywdnE0CMJD2c6xbzAMuyhaPMi04jd1uCQLuso62 X-Received: by 10.180.36.242 with SMTP id t18mr340702wij.3.1436489648361; Thu, 09 Jul 2015 17:54:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.73 with SMTP id j9ls425622lag.73.gmail; Thu, 09 Jul 2015 17:54:08 -0700 (PDT) X-Received: by 10.112.41.171 with SMTP id g11mr17344419lbl.123.1436489648198; Thu, 09 Jul 2015 17:54:08 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id d2si6103154laa.7.2015.07.09.17.54.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jul 2015 17:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lblf12 with SMTP id f12so14601613lbl.2 for ; Thu, 09 Jul 2015 17:54:08 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr17199806lay.72.1436489648098; Thu, 09 Jul 2015 17:54:08 -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 hn6csp1013602lbb; Thu, 9 Jul 2015 17:54:07 -0700 (PDT) X-Received: by 10.55.42.89 with SMTP id q86mr29452490qkh.74.1436489646704; Thu, 09 Jul 2015 17:54:06 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 65si8145817qks.95.2015.07.09.17.54.05; Thu, 09 Jul 2015 17:54:06 -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 C801861CE2; Fri, 10 Jul 2015 00:54:05 +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_H2, 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 C0FD5620A9; Fri, 10 Jul 2015 00:47:01 +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 AF7666207B; Fri, 10 Jul 2015 00:46:36 +0000 (UTC) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by lists.linaro.org (Postfix) with ESMTPS id F176E6208F for ; Fri, 10 Jul 2015 00:45:00 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so84021747lbb.3 for ; Thu, 09 Jul 2015 17:45:00 -0700 (PDT) X-Received: by 10.152.170.130 with SMTP id am2mr5644602lac.54.1436489099945; Thu, 09 Jul 2015 17:44:59 -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.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 17:44:59 -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:28 +0200 Message-Id: <1436489068-8929-18-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 17/17] 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.217.173 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 c40ee1f..c83153d 100644 --- a/test/validation/random/random.h +++ b/test/validation/random/random.h @@ -4,4 +4,16 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#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);