From patchwork Mon Jul 27 17:38:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 51565 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 BCA3A22918 for ; Mon, 27 Jul 2015 17:52:52 +0000 (UTC) Received: by wicmm11 with SMTP id mm11sf30544718wic.3 for ; Mon, 27 Jul 2015 10:52:52 -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=PNrJsSfXp2E6SWsAQr6573RESjC/c5wveRUHl/7CfO8=; b=ZhpUBfIQWRyjgspbBUD6axNkVFQG0tSq69E+U0uUTwxlL1H8V5qSs4qxSCr7fOoDoW YaFk/Z1/MmNbBZyCn2iyCAo0Ro8OvnipMK+lzFS/4akbzToHTl84LvcyyRrXSzF3OciK 7oJ1jqt5jGpohCAVhVrrRIGCBZ6YPa8Vz4/1e6BR6eDxpMWZVOKNFUXfo/CiRhqI0m/C dtdlaupHSBWboSNtzCh3/Ql99Lek0f/4l9GlcoD/AZ2pwP6j+PwOx/bIPx3CQxAA5AEJ 3feBcg4TtezlBskmNXOfbuSnNDG93M6Ih0qEYfFa9hySk5LDC7pPEGEMCK8ukCWExWiB 0RPw== X-Gm-Message-State: ALoCoQkS1KH+XP/9+5OUSpghlhIPIOJ+37zZxNLthZcBD05SNT+E3MKe/WFq/M1NyMwmCJI6TWJ3 X-Received: by 10.152.27.130 with SMTP id t2mr12490982lag.2.1438019571988; Mon, 27 Jul 2015 10:52:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.235 with SMTP id r11ls709206lal.108.gmail; Mon, 27 Jul 2015 10:52:51 -0700 (PDT) X-Received: by 10.152.181.34 with SMTP id dt2mr27988665lac.84.1438019571775; Mon, 27 Jul 2015 10:52:51 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id o2si15837272lah.162.2015.07.27.10.52.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 10:52:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbzr7 with SMTP id zr7so58693629lbb.1 for ; Mon, 27 Jul 2015 10:52:51 -0700 (PDT) X-Received: by 10.152.207.76 with SMTP id lu12mr28141148lac.29.1438019571628; Mon, 27 Jul 2015 10:52: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 l6csp1664778lba; Mon, 27 Jul 2015 10:52:50 -0700 (PDT) X-Received: by 10.140.40.168 with SMTP id x37mr42371152qgx.24.1438019568784; Mon, 27 Jul 2015 10:52:48 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d19si21811977qkh.99.2015.07.27.10.52.46; Mon, 27 Jul 2015 10:52:48 -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 8204E61B68; Mon, 27 Jul 2015 17:52:46 +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 5E53F61E45; Mon, 27 Jul 2015 17:41:24 +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 6EB7F61B68; Mon, 27 Jul 2015 17:41:16 +0000 (UTC) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by lists.linaro.org (Postfix) with ESMTPS id 621EC61DCF for ; Mon, 27 Jul 2015 17:39:35 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so58481517lbb.0 for ; Mon, 27 Jul 2015 10:39:34 -0700 (PDT) X-Received: by 10.152.116.109 with SMTP id jv13mr25241013lab.77.1438018774327; Mon, 27 Jul 2015 10:39:34 -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.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 10:39:33 -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:52 +0200 Message-Id: <1438018732-2778-21-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 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.217.177 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..cda1843 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 registry: */ +extern CU_SuiteInfo random_suites[]; + +/* main test program: */ int random_main(void); #endif