From patchwork Thu Oct 22 09:50:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 55427 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 486382304B for ; Thu, 22 Oct 2015 09:53:48 +0000 (UTC) Received: by wikv3 with SMTP id v3sf31354408wik.1 for ; Thu, 22 Oct 2015 02:53:47 -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=HGDXAv+2XU5dv6hx2WRvnpoIIC+jxotYtmVd6eJvieo=; b=m2m1AvQfoQ6YY1tVOXtNNcx+HPIlbmbkvBlxE4phAqgkIVLZG/FrPM5hafrtLa4HOr VVxnlz3Q7mJkhKiOAoiRGZwkeWVv9qFw2an+rrN1WaAB8FeIYE2cIYhFcu1KITo/olvl KVSlbf22bdt3KPeIn0KY310a6n3wCQ7GXLRTJFEMkbiqHsWGk5/rzIurOV1Y9X3h8I3I KlJ6EqmFimyBRxRRptytsEqshPc6iNz9oKsu5ojFgwUfgNullyFBMJiahKzpK/NYJTji NX5QxGqrmPozzId9qxrxFWHJw8bCj92Y3Soxu7ZIibQlT65Hmqe+aKMKF7+KuFtlcTJL dcxg== X-Gm-Message-State: ALoCoQmeZtAx1CPBYdSZoGfAoXtHbwsQnsWAM1CTeg0AQTf5xMLrCgs+zPvz6c2KQDL5HvwHLf5N X-Received: by 10.194.71.166 with SMTP id w6mr3436904wju.6.1445507627585; Thu, 22 Oct 2015 02:53:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.146.140 with SMTP id u134ls279874lfd.65.gmail; Thu, 22 Oct 2015 02:53:47 -0700 (PDT) X-Received: by 10.112.62.232 with SMTP id b8mr7707116lbs.27.1445507627162; Thu, 22 Oct 2015 02:53:47 -0700 (PDT) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com. [2a00:1450:4010:c07::22d]) by mx.google.com with ESMTPS id xp1si9067311lbb.134.2015.10.22.02.53.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Oct 2015 02:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c07::22d as permitted sender) client-ip=2a00:1450:4010:c07::22d; Received: by lffz202 with SMTP id z202so41609674lff.3 for ; Thu, 22 Oct 2015 02:53:47 -0700 (PDT) X-Received: by 10.112.17.34 with SMTP id l2mr8037980lbd.117.1445507626858; Thu, 22 Oct 2015 02:53:46 -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 w3csp491098lbq; Thu, 22 Oct 2015 02:53:45 -0700 (PDT) X-Received: by 10.55.26.170 with SMTP id l42mr17133945qkh.40.1445507625831; Thu, 22 Oct 2015 02:53:45 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b12si12502244qkj.40.2015.10.22.02.53.45; Thu, 22 Oct 2015 02:53:45 -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 75D2A61D5A; Thu, 22 Oct 2015 09:53:45 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 F127F62C0A; Thu, 22 Oct 2015 09:50:40 +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 A941261D8A; Thu, 22 Oct 2015 09:50:33 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id 58B6861D3A for ; Thu, 22 Oct 2015 09:50:24 +0000 (UTC) Received: by lfaz124 with SMTP id z124so41426520lfa.1 for ; Thu, 22 Oct 2015 02:50:23 -0700 (PDT) X-Received: by 10.112.72.99 with SMTP id c3mr6331556lbv.113.1445507423328; Thu, 22 Oct 2015 02:50:23 -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 nb1sm2207849lbb.9.2015.10.22.02.50.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Oct 2015 02:50:22 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 22 Oct 2015 12:50:08 +0300 Message-Id: <1445507411-20556-5-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445507411-20556-1-git-send-email-maxim.uvarov@linaro.org> References: <1445507411-20556-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv11 4/7] 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-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 2a00:1450:4010:c07::22d as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com 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 | 18 ++++++++---------- 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(+), 18 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 fbf5a9b..f6a3f83 100644 --- a/helper/test/Makefile.am +++ b/helper/test/Makefile.am @@ -5,10 +5,9 @@ AM_LDFLAGS += -static TESTS_ENVIRONMENT += TEST_DIR=${builddir} -EXECUTABLES = odp_chksum$(EXEEXT) \ - odp_thread$(EXEEXT) \ - odp_process$(EXEEXT)\ - odph_pause$(EXEEXT) +EXECUTABLES = chksum$(EXEEXT) \ + thread$(EXEEXT) \ + process$(EXEEXT) COMPILE_ONLY = @@ -23,9 +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 -odph_pause_SOURCES = odph_pause.c +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));