From patchwork Mon Dec 21 10:56:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 58796 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp2518670lbb; Mon, 21 Dec 2015 02:59:18 -0800 (PST) X-Received: by 10.55.78.207 with SMTP id c198mr23595288qkb.34.1450695558109; Mon, 21 Dec 2015 02:59:18 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 75si20283821qhy.22.2015.12.21.02.59.17; Mon, 21 Dec 2015 02:59:18 -0800 (PST) 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 Received: by lists.linaro.org (Postfix, from userid 109) id 993D8615FA; Mon, 21 Dec 2015 10:59:17 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=TJsG7l2v; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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 6C7DE6172C; Mon, 21 Dec 2015 10:57:13 +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 EBE4661748; Mon, 21 Dec 2015 10:57:06 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id 547956172F for ; Mon, 21 Dec 2015 10:56:22 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id oh2so12974702lbb.3 for ; Mon, 21 Dec 2015 02:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EyE9+QnBv4Un5rYrL/Ys7E01UaaLcaV+ISIstmhr03Q=; b=TJsG7l2vER4GfjgQACrB28KrJthE4KHjBBgXN96FySt+95QKCxiaqX+RgG5QSHsvfQ 1Sa7pkXbYA82F5AKJv8BLemENBrsR99w2AuOxV+YR6CswsWbm6VujEbYmoDw6UAEPNJm BIzsqBTtFEZIeBSwf2rvTf/lsbZsp17zgwdqc= 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=EyE9+QnBv4Un5rYrL/Ys7E01UaaLcaV+ISIstmhr03Q=; b=aHTLgU6Vml+C0jKcCk2isDVIp9MmBpqoTbwJyWaWzn/Bc+2oGUYkc4jAm/LCuk/LNX CjVu+B5qjBFoP6y8KRTi0ZxywHWjn8HioTCU/lxxxpAuF1lrw6EGyIM+qOy3v8dD0bxD wHMZo55E4P3/GnYr2So0UQf2gnL9FQReLxlKAfEMUmNSn4d9Qd2TjxbXu2PHWB77mkSi UNUrmx2tPBczOW4c6Lcc3h2a9OpeMnECk3l/+orfj+X36R/pazdzADIYR+wS6BEMdn01 wSjHybdclgE3rJIUkC/NSFC1Rp7COotyae1u+WrQXJlD8bLGuWZblEXi0FWj8qTzqCx7 RxKw== X-Gm-Message-State: ALoCoQn8dKLcpqNAMMlr+EVBtQDs55KTzAynQ3sqOHXh3lqOJK58jXhCvwFv5FhoH0w5qPnCKlN7yOzaHZdZrzp8FrKYqJSaYA== X-Received: by 10.112.202.195 with SMTP id kk3mr5001682lbc.59.1450695381239; Mon, 21 Dec 2015 02:56:21 -0800 (PST) Received: from localhost.localdomain (ppp91-76-173-134.pppoe.mtu-net.ru. [91.76.173.134]) by smtp.gmail.com with ESMTPSA id p69sm4856694lfe.42.2015.12.21.02.56.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Dec 2015 02:56:19 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 21 Dec 2015 13:56:06 +0300 Message-Id: <1450695371-11536-5-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450695371-11536-1-git-send-email-maxim.uvarov@linaro.org> References: <1450695371-11536-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv19 4/9] 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 | 10 +++++----- helper/test/Makefile.am | 25 ++++++++++++------------- helper/test/{odp_chksum.c => chksum.c} | 3 +-- helper/test/{odph_pause.c => pause.c} | 0 helper/test/{odp_process.c => process.c} | 3 ++- helper/test/{odp_table.c => table.c} | 1 - helper/test/{odp_thread.c => thread.c} | 3 ++- 7 files changed, 22 insertions(+), 23 deletions(-) rename helper/test/{odp_chksum.c => chksum.c} (98%) rename helper/test/{odph_pause.c => pause.c} (100%) rename helper/test/{odp_process.c => process.c} (96%) rename helper/test/{odp_table.c => table.c} (99%) rename helper/test/{odp_thread.c => thread.c} (96%) diff --git a/helper/test/.gitignore b/helper/test/.gitignore index 50a0da4..1984139 100644 --- a/helper/test/.gitignore +++ b/helper/test/.gitignore @@ -1,7 +1,7 @@ *.trs *.log -odp_chksum -odp_process -odp_table -odp_thread -odph_pause +chksum +process +table +thread +pause diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am index d6820e1..1c6a802 100644 --- a/helper/test/Makefile.am +++ b/helper/test/Makefile.am @@ -5,11 +5,11 @@ AM_LDFLAGS += -static TESTS_ENVIRONMENT += TEST_DIR=${builddir} -EXECUTABLES = odp_chksum$(EXEEXT) \ - odp_thread$(EXEEXT) \ - odp_process$(EXEEXT)\ - odph_pause$(EXEEXT)\ - odp_table$(EXEEXT) +EXECUTABLES = chksum$(EXEEXT) \ + thread$(EXEEXT) \ + process$(EXEEXT)\ + pause$(EXEEXT)\ + table$(EXEEXT) COMPILE_ONLY = @@ -23,11 +23,10 @@ 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_odp_table_SOURCES = odp_table.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 +odph_pause_SOURCES = pause.c +dist_odp_table_SOURCES = table.c 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/odph_pause.c b/helper/test/pause.c similarity index 100% rename from helper/test/odph_pause.c rename to helper/test/pause.c 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_table.c b/helper/test/table.c similarity index 99% rename from helper/test/odp_table.c rename to helper/test/table.c index 16de165..b7f53d6 100644 --- a/helper/test/odp_table.c +++ b/helper/test/table.c @@ -131,4 +131,3 @@ int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) return 0; } - 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 f2f7904..8887c0b 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));