From patchwork Thu Jul 2 14:40:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50598 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 53AA5214B3 for ; Thu, 2 Jul 2015 14:43:06 +0000 (UTC) Received: by lbbui3 with SMTP id ui3sf13919933lbb.2 for ; Thu, 02 Jul 2015 07:43:05 -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=1KL9T3/oH1hx8rhkwnCV8uAJG1nBOJZ+nAZGNnoz2cA=; b=XQq/WjJGepQ42avCbkMKOwU7v1xKFPGRBwoMCl6Go0lBrkWmbZxFRsNb8tR//ulVRl 0RYQGBU4ScbQv5gP/jDK3auxtyoF5zxbIkMNkJ/OLU9n3aoZscuTjSC593NNZ+csvJxu 1e8OMPUTawCPNOdE5deUoZpfft2YCQzRSd0BQdcZG3JQ3W/zXMsECd0hqJ7dtzxHhuRG BGlPNvXLF3yFwnorVOgRkDQXumu07+LRJgtbqh9+yJdd+a6HaSBPqFw5njUHfe9ezsbt 3NH2TK8xhJPYU8cXu7yFbYW+17LPC2I4LY6YBYn0GpD5y07fkVWnW0VYgInmi+XqQz5B H1CQ== X-Gm-Message-State: ALoCoQmyBFT+M6LuNM7UKr0hJIoDYjjy5mHiHSQA0N9FSDsd3iQRsMPNc/AZhxo9GNqsztnN76lG X-Received: by 10.180.97.9 with SMTP id dw9mr4888222wib.2.1435848185272; Thu, 02 Jul 2015 07:43:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.230 with SMTP id y6ls378094lae.20.gmail; Thu, 02 Jul 2015 07:43:04 -0700 (PDT) X-Received: by 10.112.78.105 with SMTP id a9mr30961197lbx.70.1435848184856; Thu, 02 Jul 2015 07:43:04 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id ci2si4640986lbd.65.2015.07.02.07.43.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2015 07:43:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbcpe5 with SMTP id pe5so33391888lbc.2 for ; Thu, 02 Jul 2015 07:43:04 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr7440706lbc.72.1435848184609; Thu, 02 Jul 2015 07:43:04 -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 hn6csp527245lbb; Thu, 2 Jul 2015 07:43:03 -0700 (PDT) X-Received: by 10.140.32.38 with SMTP id g35mr42000778qgg.74.1435848183363; Thu, 02 Jul 2015 07:43:03 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 15si6562812qkz.26.2015.07.02.07.43.01; Thu, 02 Jul 2015 07:43:03 -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 DB53261F7F; Thu, 2 Jul 2015 14:43:01 +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 863AC61F85; Thu, 2 Jul 2015 14:41:51 +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 1914661F91; Thu, 2 Jul 2015 14:41:48 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by lists.linaro.org (Postfix) with ESMTPS id 7EAC461F7F for ; Thu, 2 Jul 2015 14:40:46 +0000 (UTC) Received: by lbnk3 with SMTP id k3so33372284lbn.1 for ; Thu, 02 Jul 2015 07:40:45 -0700 (PDT) X-Received: by 10.112.190.69 with SMTP id go5mr2606873lbc.66.1435848045433; Thu, 02 Jul 2015 07:40:45 -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 cq1sm1456057lad.18.2015.07.02.07.40.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jul 2015 07:40:44 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 2 Jul 2015 16:40:21 +0200 Message-Id: <1435848021-9830-5-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435848021-9830-1-git-send-email-christophe.milard@linaro.org> References: <1435848021-9830-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 4/4] validation: renaming in odp_errno.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.217.180 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 --- test/validation/errno/errno.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/errno/errno.c b/test/validation/errno/errno.c index 70a6613..ac1d93c 100644 --- a/test/validation/errno/errno.c +++ b/test/validation/errno/errno.c @@ -7,7 +7,7 @@ #include #include "odp_cunit_common.h" -static void test_odp_errno_sunny_day(void) +static void errno_test_odp_errno_sunny_day(void) { int my_errno; @@ -18,13 +18,13 @@ static void test_odp_errno_sunny_day(void) CU_ASSERT_PTR_NOT_NULL(odp_errno_str(my_errno)); } -CU_TestInfo test_odp_errno[] = { - {"sunny day", test_odp_errno_sunny_day}, +CU_TestInfo errno_suite[] = { + {"sunny day", errno_test_odp_errno_sunny_day}, CU_TEST_INFO_NULL, }; CU_SuiteInfo errno_suites[] = { - {"Errno", NULL, NULL, NULL, NULL, test_odp_errno}, + {"Errno", NULL, NULL, NULL, NULL, errno_suite}, CU_SUITE_INFO_NULL, };