From patchwork Wed Oct 28 13:42:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 55691 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp129045lbr; Wed, 28 Oct 2015 06:45:02 -0700 (PDT) X-Received: by 10.140.29.34 with SMTP id a31mr35596775qga.88.1446039902665; Wed, 28 Oct 2015 06:45:02 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 111si30515062qgx.90.2015.10.28.06.45.02; Wed, 28 Oct 2015 06:45:02 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 19F4D61835; Wed, 28 Oct 2015 13:45:02 +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 8332261FBE; Wed, 28 Oct 2015 13:43:23 +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 7FAA961FAE; Wed, 28 Oct 2015 13:43:13 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id BD2E761FB5 for ; Wed, 28 Oct 2015 13:43:02 +0000 (UTC) Received: by lbbes7 with SMTP id es7so5906155lbb.2 for ; Wed, 28 Oct 2015 06:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/sIMvo4FDXs5FZOuuhQLWaVG9ZpHHwwGIv1eXpIDfXA=; b=bsVFm4s+9xcdlpZmt0PWlKYaoTKoJkw69cvNvHwGEKX7lp1l7plVPWoErdAIoGWV7g UWGqAh1QOLibyX+CuisFiTjlfxw9QmJ1kIenj93MIdVhoyQhEuo4W110k+QYXCwlYs2v XRRzCng8LT3Tl+k2T2zB3cLpbZBTf5M4IBb4GHVqUk/EoIfIYPMnZPYARBFDRjfpuU0G zchgoyo/UassT8QoTIv04EXOUHN0ZJAeW2IqpwWoLXkgjfzesCog2UAtgrUYrEc8s9eo 9J3NyS0Y8h6KJSZ49XxBfb9d0W2ZajTP16HQugwUXMFscGi49Ai6cgw8WtX5EzCpOqKX HdnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/sIMvo4FDXs5FZOuuhQLWaVG9ZpHHwwGIv1eXpIDfXA=; b=SYiNGRCapbVv2PDAh8Y95v9U8I7Jg6hyIJoV9VtavfqJuqdF/fdeG75KcgWW0nMQ1/ OOcmnyJlviTgiSP9uM4IZsyhiGDAWYdyX3PiFS6ksJRx0Heii3zZH/RjPxpZgu9YaBAb K63Fl4w22Z5H3nRjceJFxHDn6W2ihWALZqL0HEZd17npW6ac28p6RBIU69kiheb2HYiX vyZtEAehHO0LzEd54AZAhd0CUXa6k63vrJXzS0ouIZMgNYbRbLJ9NHlDY4gm1kaowA3F hIEXN++S2UVGrPq1aKpV5uZwt3fH44QSGG1yMSvd0jlPLhGoxhD4YYJOPP5tgOGO2oqa 0kqA== X-Gm-Message-State: ALoCoQm65CZPwxr+YAyQsUIraxHKd5yyOWiRUG0cKxFbmlu7++cO2RQw3pR2JevU88GlbznkLYO8 X-Received: by 10.112.140.4 with SMTP id rc4mr23248938lbb.26.1446039781692; Wed, 28 Oct 2015 06:43:01 -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 b142sm4471309lfb.46.2015.10.28.06.43.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2015 06:43:01 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 28 Oct 2015 16:42:49 +0300 Message-Id: <1446039773-28325-5-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446039773-28325-1-git-send-email-maxim.uvarov@linaro.org> References: <1446039773-28325-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv12 4/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: "The OpenDataPlane \(ODP\) List" 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" 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 cb9b328..6648627 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 592f856..4e7f053 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));