From patchwork Thu Jun 25 10:50:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 50312 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AAAD4228FC for ; Thu, 25 Jun 2015 10:52:18 +0000 (UTC) Received: by lagh6 with SMTP id h6sf18134506lag.0 for ; Thu, 25 Jun 2015 03:52:17 -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=Z/lrWq5xU/RPpohZywDHxs+Yka3bQvNfjzw+6Avp5LE=; b=G8AJob4fJtDeHpkAKptes/+U7wQskiRcO1RWskeEL7jD0FJFW1/P3sASCBJjnYQCOd Y0p2jmHiJmtROUb6q8vCO21EM5QcnT5LscH+XZsgIn4g+Lrc+XMGi2js299TwqUEs+cE 5YfalbkBgunGCzx9A3+/TV60xsJfpzVtpZiaTqNxw/+D8shDE0eT5gQxyzPUe8t6Okv4 U9HINNeTM504SACCcNwysGPD0y+WWjdZsqdlluCoy9qJYLS8UwXU33LnT+YbD98SswtF n6HGVa/SfrOLdU5+7BJEMzgwLc/ZCmLhEfyf9VlQicFueXH6Z0APe/u5u/iEp0pYiC9x Z4zg== X-Gm-Message-State: ALoCoQkQK93Isd63IVpYn9gLHzOzMxyO0nMAeAomBx1zaORLuhLoH5GeQQCqDncG9/eceL6Gqczj X-Received: by 10.112.122.12 with SMTP id lo12mr29982385lbb.5.1435229537338; Thu, 25 Jun 2015 03:52:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.36 with SMTP id ll4ls317221lac.36.gmail; Thu, 25 Jun 2015 03:52:17 -0700 (PDT) X-Received: by 10.112.13.97 with SMTP id g1mr44261600lbc.52.1435229537120; Thu, 25 Jun 2015 03:52:17 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id ug6si24374978lbc.132.2015.06.25.03.52.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2015 03:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbwc1 with SMTP id wc1so42990842lbb.2 for ; Thu, 25 Jun 2015 03:52:17 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr43340698lbc.41.1435229537013; Thu, 25 Jun 2015 03:52:17 -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 hn6csp514389lbb; Thu, 25 Jun 2015 03:52:16 -0700 (PDT) X-Received: by 10.55.41.95 with SMTP id p92mr96177238qkh.10.1435229535811; Thu, 25 Jun 2015 03:52:15 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 94si10804288qgi.88.2015.06.25.03.52.15; Thu, 25 Jun 2015 03:52:15 -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 0404861DA0; Thu, 25 Jun 2015 10:52:14 +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 607E461DC0; Thu, 25 Jun 2015 10:51:22 +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 9470361D90; Thu, 25 Jun 2015 10:51:16 +0000 (UTC) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by lists.linaro.org (Postfix) with ESMTPS id D823F61DC0 for ; Thu, 25 Jun 2015 10:50:48 +0000 (UTC) Received: by lagx9 with SMTP id x9so42505146lag.1 for ; Thu, 25 Jun 2015 03:50:47 -0700 (PDT) X-Received: by 10.153.4.40 with SMTP id cb8mr43919302lad.105.1435229447793; Thu, 25 Jun 2015 03:50:47 -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 j1sm7123460lbc.15.2015.06.25.03.50.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Jun 2015 03:50:46 -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 12:50:31 +0200 Message-Id: <1435229434-25384-3-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435229434-25384-1-git-send-email-christophe.milard@linaro.org> References: <1435229434-25384-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 2/5] validation: renaming in odp_queue.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.172 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_queue.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c index e944677..9f17743 100644 --- a/test/validation/odp_queue.c +++ b/test/validation/odp_queue.c @@ -14,7 +14,7 @@ static int queue_contest = 0xff; static odp_pool_t pool; -static int init_queue_suite(void) +static int queue_suite_init(void) { odp_pool_param_t params; @@ -32,12 +32,12 @@ static int init_queue_suite(void) return 0; } -static int init_queue_finalize(void) +static int queue_suite_term(void) { return odp_pool_destroy(pool); } -static void test_odp_queue_sunnyday(void) +static void queue_test_sunnydays(void) { odp_queue_t queue_creat_id, queue_id; odp_event_t enev[MAX_BUFFER_QUEUE]; @@ -107,14 +107,14 @@ static void test_odp_queue_sunnyday(void) return; } -static CU_TestInfo test_odp_queue[] = { - {"queue sunnyday", test_odp_queue_sunnyday}, +static CU_TestInfo queue_suite[] = { + {"queue sunnyday", queue_test_sunnydays}, CU_TEST_INFO_NULL, }; static CU_SuiteInfo queue_suites[] = { - {"Queue", init_queue_suite, init_queue_finalize, - NULL, NULL, test_odp_queue}, + {"Queue", queue_suite_init, queue_suite_term, + NULL, NULL, queue_suite}, CU_SUITE_INFO_NULL, };