From patchwork Thu Jun 25 14:22:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50324 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3936C228FC for ; Thu, 25 Jun 2015 14:26:33 +0000 (UTC) Received: by laka10 with SMTP id a10sf19503153lak.2 for ; Thu, 25 Jun 2015 07:26:32 -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=kFg3k06ZTqglSvndgGhTwPy6XhzOPGsbpn1LQR2m4xE=; b=VQEdOGO82PksRu+klqLWW+PXOgvN4oeO+fMAWSLpXHjeikvLlShpkcWLJz2se8M14B l+ftzWeP3Vufki5g7Chh6MRMxDjcOrUm6CDpuIga/MSxVwsUoWMTMRFsA1O4ieQsBHKy ctIP3yQAEbhsxA1vzciqg6lREXOPnEGnLromXzp90jS94b4a5jBEB6OA9+FQYyk6Ms1v oDC7z9gR2M3XeJaRTiqJ4C8az/9B8e0msigvOIWFXsF98EiHGRqYwZdwSCLd+kXHba51 LI0yvEuWDsJlDAc+NTVmOI7W3rPj/Mp35GEXOSkF2Bv9j5tIsyz3+AcXeLkD6cTo4rfK bHMQ== X-Gm-Message-State: ALoCoQmXgEZmFnxOk7enXmzk/Q1h91m+yR0wDXVDl4ZW8l2syT4Ee3+KLxrOTjq8YEwX8JMXN47k X-Received: by 10.112.162.228 with SMTP id yd4mr39697871lbb.8.1435242392252; Thu, 25 Jun 2015 07:26:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.201 with SMTP id p9ls363682lae.42.gmail; Thu, 25 Jun 2015 07:26:32 -0700 (PDT) X-Received: by 10.152.87.33 with SMTP id u1mr7160329laz.78.1435242392097; Thu, 25 Jun 2015 07:26:32 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id p6si24704469lbm.170.2015.06.25.07.26.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 07:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagx9 with SMTP id x9so46145456lag.1 for ; Thu, 25 Jun 2015 07:26:32 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr44635325lay.72.1435242391937; Thu, 25 Jun 2015 07:26:31 -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 hn6csp644471lbb; Thu, 25 Jun 2015 07:26:31 -0700 (PDT) X-Received: by 10.55.23.17 with SMTP id i17mr75919939qkh.39.1435242390598; Thu, 25 Jun 2015 07:26:30 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l98si29463833qga.93.2015.06.25.07.26.29; Thu, 25 Jun 2015 07:26:30 -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 CE72861E69; Thu, 25 Jun 2015 14:26:29 +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 7129661D2B; Thu, 25 Jun 2015 14:23:35 +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 3C9A561E8A; Thu, 25 Jun 2015 14:23:31 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id A59A161B78 for ; Thu, 25 Jun 2015 14:23:01 +0000 (UTC) Received: by lbbpo10 with SMTP id po10so46573366lbb.3 for ; Thu, 25 Jun 2015 07:23:00 -0700 (PDT) X-Received: by 10.112.29.209 with SMTP id m17mr44842435lbh.23.1435242180568; Thu, 25 Jun 2015 07:23:00 -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 q17sm4442749lal.37.2015.06.25.07.22.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 07:22:59 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Thu, 25 Jun 2015 16:22:32 +0200 Message-Id: <1435242154-21503-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435242154-21503-1-git-send-email-christophe.milard@linaro.org> References: <1435242154-21503-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 2/4] validation: renaming in odp_pool.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.41 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/odp_pool.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/validation/odp_pool.c b/test/validation/odp_pool.c index 4379eb5..ba5dc79 100644 --- a/test/validation/odp_pool.c +++ b/test/validation/odp_pool.c @@ -26,7 +26,7 @@ static void pool_create_destroy(odp_pool_param_t *params) CU_ASSERT(odp_pool_destroy(pool) == 0); } -static void pool_create_destroy_buffer(void) +static void pool_test_create_destroy_buffer(void) { odp_pool_param_t params = { .buf = { @@ -40,7 +40,7 @@ static void pool_create_destroy_buffer(void) pool_create_destroy(¶ms); } -static void pool_create_destroy_packet(void) +static void pool_test_create_destroy_packet(void) { odp_pool_param_t params = { .pkt = { @@ -54,7 +54,7 @@ static void pool_create_destroy_packet(void) pool_create_destroy(¶ms); } -static void pool_create_destroy_timeout(void) +static void pool_test_create_destroy_timeout(void) { odp_pool_param_t params = { .tmo = { @@ -66,7 +66,7 @@ static void pool_create_destroy_timeout(void) pool_create_destroy(¶ms); } -static void pool_create_destroy_buffer_shm(void) +static void pool_test_create_destroy_buffer_shm(void) { odp_pool_t pool; odp_shm_t test_shm; @@ -92,7 +92,7 @@ static void pool_create_destroy_buffer_shm(void) CU_ASSERT(odp_shm_free(test_shm) == 0); } -static void pool_lookup_info_print(void) +static void pool_test_lookup_info_print(void) { odp_pool_t pool; const char pool_name[] = "pool_for_lookup_test"; @@ -127,18 +127,18 @@ static void pool_lookup_info_print(void) #define _CU_TEST_INFO(test_func) {#test_func, test_func} -static CU_TestInfo pool_tests[] = { - _CU_TEST_INFO(pool_create_destroy_buffer), - _CU_TEST_INFO(pool_create_destroy_packet), - _CU_TEST_INFO(pool_create_destroy_timeout), - _CU_TEST_INFO(pool_create_destroy_buffer_shm), - _CU_TEST_INFO(pool_lookup_info_print), +static CU_TestInfo pool_suite[] = { + _CU_TEST_INFO(pool_test_create_destroy_buffer), + _CU_TEST_INFO(pool_test_create_destroy_packet), + _CU_TEST_INFO(pool_test_create_destroy_timeout), + _CU_TEST_INFO(pool_test_create_destroy_buffer_shm), + _CU_TEST_INFO(pool_test_lookup_info_print), CU_TEST_INFO_NULL, }; static CU_SuiteInfo pool_suites[] = { { .pName = "Pool tests", - .pTests = pool_tests, + .pTests = pool_suite, }, CU_SUITE_INFO_NULL, };