From patchwork Thu Oct 5 18:00:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 114970 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp496181edb; Thu, 5 Oct 2017 11:07:47 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCAgFEh/fX7va7pgw/eQEH+c65gg82YN2Dvo9nSvCDKIcweYJqp5NM2N29xhU34aFIvhV1t X-Received: by 10.200.52.60 with SMTP id u57mr35819885qtb.107.1507226867446; Thu, 05 Oct 2017 11:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507226867; cv=none; d=google.com; s=arc-20160816; b=H8xaEW38/OvVG4cXSVL8Eir2XcHrubv4he/8rgD4pe7i9yS74JGrVseNQi4LAES+BR hGv6lgSdXpPRieD5jSRpq7aW++EVdkHX99oze44ThcEGabltKUy1JLGo3K4Y5WxcOSXW Fs3Wysv97rR5YT0v6HVlmCBfG47FLfC/EvSKOlyQwCgPWkPwl21nmW/QFzad5h3RDzaL Bk6RWqHfluZcu4mlf61SavMBHK8/tT3Vx/WTzSjXzftHrqhkyomRrmfWe61mqYDNdcsz gfxu0b+veudA5JKEYVHm2TzNp0isXmhhtHUL1iPH5piAauWRV0X9GDwT6+/BWy4had5M Ejcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=ZbRWNEIx6sapWKUT7wXPjdC7b2tfqjyBFTZSEdzpRYw=; b=HEvgcp2w638W8kdmjRIDQ6eAsIdxZCloa++4ED3aY8HRhC7NenNHXjTD1rc8Mn3Lo7 CjuoyVUAVLKljMjT16027ui3ACyd3lmO6/XdkgPjQ0joLVQO4kEKe7RRy3g6d0vbpQLA RhRhRyazSfu1RxlC+XSsvwHgH5hr7w+lPq/96oaH1V+jts9jZ3g2UnIHbmGnTLaMq7+r 5yfdq7Kgq/pTAFAv/O95cxRQ/k+fX6munzAPiZGtgjQta5TbuDeKPp16cymQaERu5Hh8 S0CV02kPTen/ndtLPeXJm0+z3dMem1SnLz4TgQ4olGWLThif8P2b0LjR7QGdU17arXDg fTIg== ARC-Authentication-Results: i=1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q43si69799qtg.56.2017.10.05.11.07.46; Thu, 05 Oct 2017 11:07:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 3DE51644B4; Thu, 5 Oct 2017 18:07:46 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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 0F79E644D6; Thu, 5 Oct 2017 18:02:31 +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 0988C644CB; Thu, 5 Oct 2017 18:02:11 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id AC6BE644B6 for ; Thu, 5 Oct 2017 18:00:31 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward101o.mail.yandex.net (Yandex) with ESMTP id 55F9F1344C47 for ; Thu, 5 Oct 2017 21:00:30 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZzS7609GtB-0ULWJGUP; Thu, 05 Oct 2017 21:00:30 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AZHOFl0KbL-0TWmPEFl; Thu, 05 Oct 2017 21:00:29 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 5 Oct 2017 21:00:02 +0300 Message-Id: <1507226415-26756-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507226415-26756-1-git-send-email-odpbot@yandex.ru> References: <1507226415-26756-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 213 Subject: [lng-odp] [PATCH v3 7/20] test: move test/common_plat/common to test_common dir 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov In preparation for reworking tests, move test-related libraries to top-level directory. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 213 (lumag:plat-def) ** https://github.com/Linaro/odp/pull/213 ** Patch: https://github.com/Linaro/odp/pull/213.patch ** Base sha: 52cfe7ba6d2541cf5ee464e46e91b2da5efe1497 ** Merge commit sha: 4157d06d3a16265d7d6152d7ae4918ec5623c10c **/ Makefile.am | 1 + test/common_plat/Makefile.am | 8 +------- test/common_plat/m4/configure.m4 | 4 ++-- test/common_plat/validation/api/Makefile.inc | 4 ++-- test/linux-generic/Makefile.inc | 4 ++-- {test/common_plat/common => test_common}/Makefile.am | 4 ++++ {test/common_plat/common => test_common}/mask_common.c | 0 {test/common_plat/common => test_common}/mask_common.h | 0 {test/common_plat/common => test_common}/odp_cunit_common.c | 0 {test/common_plat/common => test_common}/odp_cunit_common.h | 0 10 files changed, 12 insertions(+), 13 deletions(-) rename {test/common_plat/common => test_common}/Makefile.am (94%) rename {test/common_plat/common => test_common}/mask_common.c (100%) rename {test/common_plat/common => test_common}/mask_common.h (100%) rename {test/common_plat/common => test_common}/odp_cunit_common.c (100%) rename {test/common_plat/common => test_common}/odp_cunit_common.h (100%) diff --git a/Makefile.am b/Makefile.am index 6c43679e7..774c09bda 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,6 +9,7 @@ SUBDIRS = @platform_with_platform@ \ helper/test \ doc \ example . \ + test_common \ test @DX_RULES@ diff --git a/test/common_plat/Makefile.am b/test/common_plat/Makefile.am index af78bb653..80c35f870 100644 --- a/test/common_plat/Makefile.am +++ b/test/common_plat/Makefile.am @@ -1,7 +1 @@ -SUBDIRS = - -if cunit_support -SUBDIRS += common -endif - -SUBDIRS += performance miscellaneous validation +SUBDIRS = performance miscellaneous validation diff --git a/test/common_plat/m4/configure.m4 b/test/common_plat/m4/configure.m4 index be878bd7d..e04737e18 100644 --- a/test/common_plat/m4/configure.m4 +++ b/test/common_plat/m4/configure.m4 @@ -2,8 +2,8 @@ m4_include([test/common_plat/m4/miscellaneous.m4]) m4_include([test/common_plat/m4/performance.m4]) m4_include([test/common_plat/m4/validation.m4]) -AC_CONFIG_FILES([test/common_plat/Makefile - test/common_plat/common/Makefile +AC_CONFIG_FILES([test_common/Makefile + test/common_plat/Makefile test/common_plat/miscellaneous/Makefile test/common_plat/performance/Makefile test/common_plat/validation/Makefile diff --git a/test/common_plat/validation/api/Makefile.inc b/test/common_plat/validation/api/Makefile.inc index c4e80eb72..eb5ef34c1 100644 --- a/test/common_plat/validation/api/Makefile.inc +++ b/test/common_plat/validation/api/Makefile.inc @@ -1,8 +1,8 @@ include $(top_srcdir)/test/Makefile.inc -COMMON_DIR = $(top_builddir)/test/common_plat/common +COMMON_DIR = $(top_builddir)/test_common -AM_CFLAGS += -I$(top_srcdir)/test/common_plat/common +AM_CFLAGS += -I$(top_srcdir)/test_common AM_LDFLAGS += $(DPDK_PMDS) AM_CFLAGS += $(CUNIT_CFLAGS) diff --git a/test/linux-generic/Makefile.inc b/test/linux-generic/Makefile.inc index cfb614419..2aba84d28 100644 --- a/test/linux-generic/Makefile.inc +++ b/test/linux-generic/Makefile.inc @@ -6,11 +6,11 @@ AM_LDFLAGS = -static AM_CFLAGS = $(CUNIT_CFLAGS) -LIBCUNIT_COMMON = $(top_builddir)/test/common_plat/common/libcunit_common.la +LIBCUNIT_COMMON = $(top_builddir)/test_common/libcunit_common.la LIB = $(top_builddir)/lib LIBODP = $(LIB)/libodphelper.la $(LIB)/libodp-linux.la $(DPDK_PMDS) -INCCUNIT_COMMON = -I$(top_srcdir)/test/common_plat/common +INCCUNIT_COMMON = -I$(top_srcdir)/test_common INCODP = \ -I$(top_builddir)/include \ -I$(top_builddir)/platform/@with_platform@/include \ diff --git a/test/common_plat/common/Makefile.am b/test_common/Makefile.am similarity index 94% rename from test/common_plat/common/Makefile.am rename to test_common/Makefile.am index 5736214a0..dee3404cd 100644 --- a/test/common_plat/common/Makefile.am +++ b/test_common/Makefile.am @@ -1,3 +1,5 @@ +if cunit_support + include $(top_srcdir)/test/Makefile.inc noinst_LTLIBRARIES = libcunit_common.la libcpumask_common.la libthrmask_common.la @@ -9,3 +11,5 @@ libcpumask_common_la_SOURCES = mask_common.c mask_common.h libthrmask_common_la_SOURCES = mask_common.c mask_common.h libthrmask_common_la_CFLAGS = $(AM_CFLAGS) -DTEST_THRMASK + +endif diff --git a/test/common_plat/common/mask_common.c b/test_common/mask_common.c similarity index 100% rename from test/common_plat/common/mask_common.c rename to test_common/mask_common.c diff --git a/test/common_plat/common/mask_common.h b/test_common/mask_common.h similarity index 100% rename from test/common_plat/common/mask_common.h rename to test_common/mask_common.h diff --git a/test/common_plat/common/odp_cunit_common.c b/test_common/odp_cunit_common.c similarity index 100% rename from test/common_plat/common/odp_cunit_common.c rename to test_common/odp_cunit_common.c diff --git a/test/common_plat/common/odp_cunit_common.h b/test_common/odp_cunit_common.h similarity index 100% rename from test/common_plat/common/odp_cunit_common.h rename to test_common/odp_cunit_common.h