From patchwork Fri Oct 9 11:59:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 54695 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 47B1222DB6 for ; Fri, 9 Oct 2015 12:03:01 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf27711839wic.3 for ; Fri, 09 Oct 2015 05:03:00 -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: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=Ne+pLXbuWm6wrcSoxG4QpOmedE4pydlTgi5em4RizKQ=; b=CJmh7mCrpqeDpy5qVzycXsrPoKd7LnfDb710aL7QTmosnPstt/IooqxNa4AWXUh+K6 9Cx1EVQYLIIdgddfV4uQWEjjkBDKlseUQ9gJaCPmzBD2Rvmjldf/cJ+adHMeqyhUQaKV 4asd1+yxA8kDgr9ksxdX5hTXFE+8H46syYcuJ2Yvq39rw/3HnodOEqsvxUvlRMl4cKkI au4L9Uc8YGQofzksbcLfw8D4wiJBJmrCM6wYpQG9wyGeJAgPX9yv5fGI5/15rhbjsRw+ qaTRMfMzz4ayUmz5WuBJCHhBTt/tC0VZBFcgzouTryJTX3mvV+psLxKbvz6sxMnCM8SJ cTWA== X-Gm-Message-State: ALoCoQk2Q1mtrTSH3+7PDV8QpYpuj6kwrLrgBy0V/prs45RQzACZSwCNkop9Xh/1h6JkEsNfF6Sk X-Received: by 10.180.9.104 with SMTP id y8mr1839501wia.7.1444392180590; Fri, 09 Oct 2015 05:03:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.44.79 with SMTP id s76ls301861lfs.29.gmail; Fri, 09 Oct 2015 05:03:00 -0700 (PDT) X-Received: by 10.112.180.198 with SMTP id dq6mr6452685lbc.90.1444392180435; Fri, 09 Oct 2015 05:03:00 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id xp1si924282lbb.134.2015.10.09.05.03.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 05:03:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbwr8 with SMTP id r8so77682902lbw.2 for ; Fri, 09 Oct 2015 05:03:00 -0700 (PDT) X-Received: by 10.25.86.213 with SMTP id k204mr4173844lfb.36.1444392180261; Fri, 09 Oct 2015 05:03:00 -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.59.35 with SMTP id w3csp1158612lbq; Fri, 9 Oct 2015 05:02:59 -0700 (PDT) X-Received: by 10.107.160.143 with SMTP id j137mr14807723ioe.13.1444392179059; Fri, 09 Oct 2015 05:02:59 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 67si2220584iog.210.2015.10.09.05.02.58; Fri, 09 Oct 2015 05:02:59 -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 37E5A61815; Fri, 9 Oct 2015 12:02:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 28BFF61A41; Fri, 9 Oct 2015 11:59:48 +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 71DD661A52; Fri, 9 Oct 2015 11:59:39 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id C4E2B61A2B for ; Fri, 9 Oct 2015 11:59:09 +0000 (UTC) Received: by lbcao8 with SMTP id ao8so78770568lbc.3 for ; Fri, 09 Oct 2015 04:59:08 -0700 (PDT) X-Received: by 10.112.200.229 with SMTP id jv5mr6329830lbc.123.1444391948616; Fri, 09 Oct 2015 04:59:08 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id v19sm235052lfd.7.2015.10.09.04.59.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Oct 2015 04:59:08 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 9 Oct 2015 14:59:01 +0300 Message-Id: <1444391944-20772-6-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444391944-20772-1-git-send-email-maxim.uvarov@linaro.org> References: <1444391944-20772-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv9 5/8] helpers: remove odp_ prefix for tests source files 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: maxim.uvarov@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.181 as permitted sender) smtp.mailfrom=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 Prefixed were removed for validation test suite and to be consistent we need to do the same for helpers. Signed-off-by: Maxim Uvarov --- helper/test/.gitignore | 9 +++++---- helper/test/Makefile.am | 16 ++++++++-------- helper/test/{odp_chksum.c => chksum.c} | 3 +-- helper/test/{odp_process.c => process.c} | 3 ++- helper/test/{odp_thread.c => thread.c} | 3 ++- 5 files changed, 18 insertions(+), 16 deletions(-) rename helper/test/{odp_chksum.c => chksum.c} (98%) rename helper/test/{odp_process.c => process.c} (96%) rename helper/test/{odp_thread.c => thread.c} (96%) diff --git a/helper/test/.gitignore b/helper/test/.gitignore index 213bc5e..0c7e81f 100644 --- a/helper/test/.gitignore +++ b/helper/test/.gitignore @@ -1,6 +1,7 @@ *.trs *.log -odp_chksum -odp_process -odp_thread -odph_pause +chksum +process +thread +pause +ring diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am index 7b73602..f6a3f83 100644 --- a/helper/test/Makefile.am +++ b/helper/test/Makefile.am @@ -5,9 +5,9 @@ AM_LDFLAGS += -static TESTS_ENVIRONMENT += TEST_DIR=${builddir} -EXECUTABLES = odp_chksum$(EXEEXT) \ - odp_thread$(EXEEXT) \ - odp_process$(EXEEXT) +EXECUTABLES = chksum$(EXEEXT) \ + thread$(EXEEXT) \ + process$(EXEEXT) COMPILE_ONLY = @@ -22,8 +22,8 @@ dist_bin_SCRIPTS = bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) -dist_odp_chksum_SOURCES = odp_chksum.c -dist_odp_thread_SOURCES = odp_thread.c -odp_thread_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la -dist_odp_process_SOURCES = odp_process.c -odp_process_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la +dist_chksum_SOURCES = chksum.c +dist_thread_SOURCES = thread.c +thread_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la +dist_process_SOURCES = process.c +process_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la diff --git a/helper/test/odp_chksum.c b/helper/test/chksum.c similarity index 98% rename from helper/test/odp_chksum.c rename to helper/test/chksum.c index 1d417a8..c987905 100644 --- a/helper/test/odp_chksum.c +++ b/helper/test/chksum.c @@ -64,10 +64,9 @@ static int scan_ip(const char *buf, unsigned int *paddr) if (paddr) *paddr = part1 << 24 | part2 << 16 | part3 << 8 | part4; return 1; - } else { - printf("not good ip %d:%d:%d:%d/n", part1, part2, part3, part4); } + printf("not good ip %d:%d:%d:%d/n", part1, part2, part3, part4); return 0; } diff --git a/helper/test/odp_process.c b/helper/test/process.c similarity index 96% rename from helper/test/odp_process.c rename to helper/test/process.c index d3a5943..280b0ff 100644 --- a/helper/test/odp_process.c +++ b/helper/test/process.c @@ -53,7 +53,8 @@ int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) cpu = odp_cpumask_first(&cpu_mask); printf("the first CPU: %i\n", cpu); - /* reserve cpu 0 for the control plane so remove it from the default mask */ + /* reserve cpu 0 for the control plane so remove it from + * the default mask */ odp_cpumask_clr(&cpu_mask, 0); num_workers = odp_cpumask_count(&cpu_mask); (void)odp_cpumask_to_str(&cpu_mask, cpumaskstr, sizeof(cpumaskstr)); diff --git a/helper/test/odp_thread.c b/helper/test/thread.c similarity index 96% rename from helper/test/odp_thread.c rename to helper/test/thread.c index 1de30ab..87b4c57 100644 --- a/helper/test/odp_thread.c +++ b/helper/test/thread.c @@ -54,7 +54,8 @@ int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) cpu = odp_cpumask_first(&cpu_mask); printf("the first CPU: %i\n", cpu); - /* reserve cpu 0 for the control plane so remove it from the default mask */ + /* reserve cpu 0 for the control plane so remove it from + * the default mask */ odp_cpumask_clr(&cpu_mask, 0); num_workers = odp_cpumask_count(&cpu_mask); (void)odp_cpumask_to_str(&cpu_mask, cpumaskstr, sizeof(cpumaskstr));