From patchwork Mon Jun 29 15:10: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: 50418 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA555228D9 for ; Mon, 29 Jun 2015 15:12:29 +0000 (UTC) Received: by wgjx7 with SMTP id x7sf25905111wgj.3 for ; Mon, 29 Jun 2015 08:12:29 -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=gxKDr7oRF1RFzQ+zviE9dpo1dIop/do8imXjHZzMcB4=; b=bNp47KkOKjWpBy+eMM4Cv8JNmoqev2aI4TbtxCjWT7JwNWXk44cJlKXztTbZ8SU2kR uA7YvIYlobYd/bUfPeZwsFP/fhJXv9D2y8nZYpOkfIevtIlmmWbOpqpAVahXen2Ymsiw seVG5ptTyFASe6D5vxAiRAXPaO8HPW4cmOfkwTzamgZmJm1lP0MFvCU2VZKPQ8nzpAnR NyciW8/C5Xf7J9KErbHsrMPD2aiS7BB62U5ByL1UgNPK2kYibVonV7PNmwDL9sK5Gd06 MSwgE2nT/gM9UqBbb5ZZFjGERKWpsPXsmuvRAYzzDHfzvzrCppi9MvPhjW2Uu7/uUzLx Ze3g== X-Gm-Message-State: ALoCoQlIfHVmyHeNPhWuVJk9W2Z2IMx6TINJEA5G6cHtVYdixsRcoPY9SPLxDBq8jx+fZ00oGrXw X-Received: by 10.112.138.2 with SMTP id qm2mr11100440lbb.19.1435590749002; Mon, 29 Jun 2015 08:12:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.227 with SMTP id lf3ls774350lab.93.gmail; Mon, 29 Jun 2015 08:12:28 -0700 (PDT) X-Received: by 10.112.167.202 with SMTP id zq10mr14297414lbb.118.1435590748854; Mon, 29 Jun 2015 08:12:28 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id n4si35286705laj.18.2015.06.29.08.12.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 08:12:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lagx9 with SMTP id x9so129467669lag.1 for ; Mon, 29 Jun 2015 08:12:28 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr14620918lbc.19.1435590748760; Mon, 29 Jun 2015 08:12:28 -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 hn6csp1772803lbb; Mon, 29 Jun 2015 08:12:27 -0700 (PDT) X-Received: by 10.55.48.18 with SMTP id w18mr33064611qkw.34.1435590747295; Mon, 29 Jun 2015 08:12:27 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l64si39076892qkh.78.2015.06.29.08.12.25; Mon, 29 Jun 2015 08:12:27 -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 9A67F61DFE; Mon, 29 Jun 2015 15:12:25 +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 99E1261E07; Mon, 29 Jun 2015 15:11:20 +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 BF00C61DFB; Mon, 29 Jun 2015 15:11:16 +0000 (UTC) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id 4F95761B62 for ; Mon, 29 Jun 2015 15:11:15 +0000 (UTC) Received: by lagc2 with SMTP id c2so13766379lag.3 for ; Mon, 29 Jun 2015 08:11:14 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr14254974lac.41.1435590673909; Mon, 29 Jun 2015 08:11:13 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id qe6sm6568757lbb.6.2015.06.29.08.11.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Jun 2015 08:11:13 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Mon, 29 Jun 2015 17:10:52 +0200 Message-Id: <1435590654-2527-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435590654-2527-1-git-send-email-christophe.milard@linaro.org> References: <1435590654-2527-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 2/4] validation: renaming in odp_random.c 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.45 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 Renaming of things which may be, one day, exported in a lib. This renaming is important, as it creates consistency between test symbols, which is needed if things get eventually exported in the lib. Also, tests are often created from other tests: Fixing the first exemples will help geting future tests better. Things that are candidate to be exported in the lib in the future have been named as follows: -Tests, i.e. functions which are used in CUNIT testsuites are named: _test_* -Test arrays, i.e. arrays of CU_TestInfo, listing the test functions belonging to a suite, are called: _suite[_*] where the possible suffix can be used if many suites are declared. -CUNIT suite init and termination functions are called: _suite[_*]_init() and _suite[_*]_term() respectively. -Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called: _suites[_*] where the possible suffix identifies the executable using it, if many. -Main function(s), are called: _main[_*] where the possible suffix identifies the executable using it Signed-off-by: Christophe Milard Reviewed-by: Stuart Haslam --- test/validation/odp_random.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/odp_random.c b/test/validation/odp_random.c index 4c58d32..428af78 100644 --- a/test/validation/odp_random.c +++ b/test/validation/odp_random.c @@ -10,7 +10,7 @@ /* Helper macro for CU_TestInfo initialization */ #define _CU_TEST_INFO(test_func) {#test_func, test_func} -static void random_get_size(void) +static void random_test_get_size(void) { int32_t ret; uint8_t buf[32]; @@ -19,13 +19,13 @@ static void random_get_size(void) CU_ASSERT(ret == sizeof(buf)); } -static CU_TestInfo test_odp_random[] = { - _CU_TEST_INFO(random_get_size), +static CU_TestInfo random_suite[] = { + _CU_TEST_INFO(random_test_get_size), CU_TEST_INFO_NULL, }; static CU_SuiteInfo random_suites[] = { - {"Random", NULL, NULL, NULL, NULL, test_odp_random}, + {"Random", NULL, NULL, NULL, NULL, random_suite}, CU_SUITE_INFO_NULL, };