From patchwork Mon Oct 19 16:08:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 55242 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 1595A22F11 for ; Mon, 19 Oct 2015 16:12:35 +0000 (UTC) Received: by wiyb4 with SMTP id b4sf2992561wiy.2 for ; Mon, 19 Oct 2015 09:12:34 -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=Q1nRBuCMGhHVqvbPibuchQfiiaSKHdL0bB4B3X++ih3HrEOPRIl7M1KHvsUzieHBCb jerZK6hIIfzQNfC7jben/5M1Ex21+CWidYfF7q8fgo+514WqZyovnvAv7RN5lj02cG9i gua5JsNkiRp0fOVg8MbxedAwm9KO7q3w1sjALeE12tqsaCKNfKhKGyoUl7P0cKhoCCVF sU+nMtt3kJi5o5C+gSVz1MT+NwfFcWSuU+WaQg6VSongzp+hjttj+tCiY9kfqyXCWKBD KbZmIORF/OCg9Db8apBhaVFgHjWWUqtltQPSqQZ9qfA3mLd71zBFRu1N5Rh3wDBwe52j 6fyQ== X-Gm-Message-State: ALoCoQlZYThrAbr9UiFj+mRk+fi+YH7mSnB/0o/CZoAhMZTv0CirQeV/80oN8y0g5CgNKEXaz/w1 X-Received: by 10.194.71.166 with SMTP id w6mr941618wju.6.1445271154091; Mon, 19 Oct 2015 09:12:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.77.80 with SMTP id a77ls628732lfb.70.gmail; Mon, 19 Oct 2015 09:12:33 -0700 (PDT) X-Received: by 10.112.146.2 with SMTP id sy2mr15433834lbb.104.1445271153794; Mon, 19 Oct 2015 09:12:33 -0700 (PDT) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com. [2a00:1450:4010:c04::230]) by mx.google.com with ESMTPS id i129si23389421lfe.150.2015.10.19.09.12.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 09:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::230 as permitted sender) client-ip=2a00:1450:4010:c04::230; Received: by lbbes7 with SMTP id es7so58161505lbb.2 for ; Mon, 19 Oct 2015 09:12:33 -0700 (PDT) X-Received: by 10.112.64.72 with SMTP id m8mr14790265lbs.41.1445271153656; Mon, 19 Oct 2015 09:12:33 -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 w3csp1562313lbq; Mon, 19 Oct 2015 09:12:32 -0700 (PDT) X-Received: by 10.140.106.99 with SMTP id d90mr37094714qgf.6.1445271152595; Mon, 19 Oct 2015 09:12:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k63si30761750qkh.90.2015.10.19.09.12.32; Mon, 19 Oct 2015 09:12:32 -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 0EA8B6197B; Mon, 19 Oct 2015 16:12:32 +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 05DA161A2F; Mon, 19 Oct 2015 16:08:52 +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 14BE661C9E; Mon, 19 Oct 2015 16:08:48 +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 8AA7761A2F for ; Mon, 19 Oct 2015 16:08:14 +0000 (UTC) Received: by lffv3 with SMTP id v3so114734829lff.0 for ; Mon, 19 Oct 2015 09:08:13 -0700 (PDT) X-Received: by 10.25.205.198 with SMTP id d189mr9943356lfg.72.1445270893481; Mon, 19 Oct 2015 09:08:13 -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 k186sm1732158lfg.8.2015.10.19.09.08.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Oct 2015 09:08:12 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 19 Oct 2015 19:08:00 +0300 Message-Id: <1445270883-8069-6-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445270883-8069-1-git-send-email-maxim.uvarov@linaro.org> References: <1445270883-8069-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv10 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-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:c04::230 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 | 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));