From patchwork Wed Aug 30 13:00:07 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: 111306 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp885931qge; Wed, 30 Aug 2017 06:01:39 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6MPhReN7kzRK7fshyys+JhwZYWV6tpUwJeCOiXL8ZUuNOWvB05WgAr9Rf8Tgty524pvrgK X-Received: by 10.200.24.25 with SMTP id q25mr1963360qtj.260.1504098099273; Wed, 30 Aug 2017 06:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504098099; cv=none; d=google.com; s=arc-20160816; b=A3IphGEMsrUMWBL7d9fHcJMKWzuel8s2bVMRZvLOkZhYe+Ye1dznfBNY/WKRnUdmlz nCLg2F3Qpj9rHDaU5UEWAwOXdyh8E2S58H2P/QvPmbFNr/y/LEcp+TBBKNWlY3AMsnxT 8NR+u8Skx9+k2dguAp1k2iujQygf7fyzRC7WgixoVpB21Pf++YJ5gSeNzAhAVXA9SUvk bExqR2W0O4fqx3/DIkvLuIPvzYIKO3CTCqo5mpbaypaiqK+/HU7+wo5oCO/IsjbU+2RD hhWWEOTrr1O3H6zbvBXqCncFmNxVgo3oCd14lWfjUBlHPzoDPloL0vmEAV+zp080qYBx BjKA== 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=gTpnjl5jvMxUMn68dBUxT39ByCuZdqmLDd/owfEuL5Q=; b=tIvQFwFkFykyq6CvfAVl7MA3Ki5Z2KqNJzQ+PHT9HuViev07OHnh+2bO24guYCqwUh kNG/eY19YhqW9o2ej3Njyhra8gA5D3JUo4c558RiMsKgGincUqGdnJHp/jzEGf1WYI4z i0Yz1kzR8ethl9Za0YOsQ1VHDuWBQJ0NhzOIa14xkMjT10bnTrIIb3tEbJrxXuV9d2et 1bccmbenqaZOVjNTdA6jnp9is17R5CtZDKqMc+iaxAt6ABe9I0Ca4F1Pam+d2U44i28c snuOCXArHZrlb8tLAsH3Ma0LBM3Jn/iqYFTXrbOWcuNcN0q+JEQOf+6b+pqd5peNRIC7 PYdQ== 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 u91si5136901qtd.176.2017.08.30.06.01.39; Wed, 30 Aug 2017 06:01:39 -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 E567962C6C; Wed, 30 Aug 2017 13:01:38 +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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 9E42B61DE2; Wed, 30 Aug 2017 13:00:48 +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 6CE3661E03; Wed, 30 Aug 2017 13:00:34 +0000 (UTC) Received: from forward5o.cmail.yandex.net (forward5o.cmail.yandex.net [37.9.109.249]) by lists.linaro.org (Postfix) with ESMTPS id 86F7E618C8 for ; Wed, 30 Aug 2017 13:00:28 +0000 (UTC) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::28]) by forward5o.cmail.yandex.net (Yandex) with ESMTP id DA170215B1 for ; Wed, 30 Aug 2017 16:00:26 +0300 (MSK) Received: from smtp4o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id 565756C0075B for ; Wed, 30 Aug 2017 16:00:25 +0300 (MSK) Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pn21Hwqvkv-0Ovih0Fn; Wed, 30 Aug 2017 16:00:24 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 30 Aug 2017 16:00:07 +0300 Message-Id: <1504098014-29411-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504098014-29411-1-git-send-email-odpbot@yandex.ru> References: <1504098014-29411-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 155 Subject: [lng-odp] [PATCH v3 1/8] configure: enable all tests by default 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 Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 155 (lumag:improve-build-2) ** https://github.com/Linaro/odp/pull/155 ** Patch: https://github.com/Linaro/odp/pull/155.patch ** Base sha: 7508c5ac906bb7cb1d339b4c5e924f3a18e504ca ** Merge commit sha: 1488a0e31aecd1fa958bf32f1c0ca0b0e0f56409 **/ Makefile.am | 8 +------- configure.ac | 6 ------ example/m4/configure.m4 | 11 ++++------- helper/m4/configure.m4 | 9 ++++----- test/common_plat/m4/miscellaneous.m4 | 9 ++++----- test/common_plat/m4/performance.m4 | 9 ++++----- test/common_plat/m4/validation.m4 | 25 +++++++------------------ test/linux-generic/m4/performance.m4 | 9 ++++----- 8 files changed, 28 insertions(+), 58 deletions(-) diff --git a/Makefile.am b/Makefile.am index e1ea07d5..7398499c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,11 +1,5 @@ ACLOCAL_AMFLAGS=-I m4 -AM_DISTCHECK_CONFIGURE_FLAGS = --enable-test-cpp \ - --enable-test-example \ - --enable-test-helper \ - --enable-test-perf \ - --enable-test-perf-proc \ - --enable-test-vald \ - --enable-user-guides \ +AM_DISTCHECK_CONFIGURE_FLAGS = --enable-user-guides \ --with-testdir #@with_platform@ works alone in subdir but not as part of a path??? diff --git a/configure.ac b/configure.ac index c1811003..c076b4cc 100644 --- a/configure.ac +++ b/configure.ac @@ -214,12 +214,6 @@ AC_SUBST([testdir]) AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"]) AM_CONDITIONAL([test_installdir], [test "$testdir" != ""]) AM_CONDITIONAL([cunit_support], [test x$cunit_support = xyes ]) -AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ]) -AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ]) -AM_CONDITIONAL([test_perf_proc], [test x$test_perf_proc = xyes ]) -AM_CONDITIONAL([test_cpp], [test x$test_cpp = xyes ]) -AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ]) -AM_CONDITIONAL([test_example], [test x$test_example = xyes ]) AM_CONDITIONAL([HAVE_DOXYGEN], [test "x${DOXYGEN}" = "xdoxygen"]) AM_CONDITIONAL([user_guide], [test "x${user_guides}" = "xyes" ]) AM_CONDITIONAL([HAVE_MSCGEN], [test "x${MSCGEN}" = "xmscgen"]) diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 18218d05..cab7f8b8 100644 --- a/example/m4/configure.m4 +++ b/example/m4/configure.m4 @@ -1,14 +1,11 @@ ########################################################################## # Enable/disable test-example ########################################################################## -test_example=no AC_ARG_ENABLE([test-example], - [ --enable-test-example run basic test against examples], - [if test "x$enableval" = "xyes"; then - test_example=yes - else - test_example=no - fi]) + [AS_HELP_STRING([--enable-test-example], [run basic test against examples])], + [test_example=$enableval], + [test_example=yes]) +AM_CONDITIONAL([test_example], [test x$test_example = xyes ]) AC_CONFIG_FILES([example/classifier/Makefile example/generator/Makefile diff --git a/helper/m4/configure.m4 b/helper/m4/configure.m4 index 343f5e3c..2e2943d1 100644 --- a/helper/m4/configure.m4 +++ b/helper/m4/configure.m4 @@ -1,12 +1,11 @@ ########################################################################## # Enable/disable test-helper ########################################################################## -test_helper=no AC_ARG_ENABLE([test-helper], - [ --enable-test-helper run test in helper/test], - [if test "x$enableval" = "xyes"; then - test_helper=yes - fi]) + [AS_HELP_STRING([--enable-test-helper], [run test in helper/test])], + [test_helper=$enableval], + [test_helper=yes]) +AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ]) ########################################################################## # Enable/disable helper-ext diff --git a/test/common_plat/m4/miscellaneous.m4 b/test/common_plat/m4/miscellaneous.m4 index cc881edb..dac236a6 100644 --- a/test/common_plat/m4/miscellaneous.m4 +++ b/test/common_plat/m4/miscellaneous.m4 @@ -1,9 +1,8 @@ ########################################################################## # Enable/disable test-cpp ########################################################################## -test_cpp=no AC_ARG_ENABLE([test-cpp], - [ --enable-test-cpp run basic test aginast cpp], - [if test "x$enableval" = "xyes"; then - test_cpp=yes - fi]) + [AS_HELP_STRING([--disable-test-cpp], [run basic test aginast cpp])], + [test_cpp=$enableval], + [test_cpp=yes]) +AM_CONDITIONAL([test_cpp], [test x$test_cpp = xyes ]) diff --git a/test/common_plat/m4/performance.m4 b/test/common_plat/m4/performance.m4 index 1e2000d9..34270e8d 100644 --- a/test/common_plat/m4/performance.m4 +++ b/test/common_plat/m4/performance.m4 @@ -1,9 +1,8 @@ ########################################################################## # Enable/disable test-perf ########################################################################## -test_perf=no AC_ARG_ENABLE([test-perf], - [ --enable-test-perf run test in test/performance], - [if test "x$enableval" = "xyes"; then - test_perf=yes - fi]) + [AS_HELP_STRING([--enable-test-perf], [run test in test/performance])], + [test_perf=$enableval], + [test_perf=yes]) +AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ]) diff --git a/test/common_plat/m4/validation.m4 b/test/common_plat/m4/validation.m4 index 67edac7a..b2a2f75d 100644 --- a/test/common_plat/m4/validation.m4 +++ b/test/common_plat/m4/validation.m4 @@ -1,30 +1,19 @@ ########################################################################## # Enable/disable Unit tests ########################################################################## -cunit_support=no -test_vald=no AC_ARG_ENABLE([test_vald], - [ --enable-test-vald run test in test/validation], - [if test x$enableval = xyes; then - test_vald=yes - cunit_support=yes - fi]) - -########################################################################## -# Enable/disable Unit tests -########################################################################## -AC_ARG_ENABLE([cunit_support], - [ --enable-cunit-support include cunit infrastructure], - [if test x$enableval = xyes; then - cunit_support=yes - fi]) + [AS_HELP_STRING([--enable-test-vald], [run test in test/validation])], + [test_vald=$enableval], + [test_vald=yes]) +AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ]) ########################################################################## # Set optional CUnit path ########################################################################## +cunit_support=$test_vald AC_ARG_WITH([cunit-path], -AC_HELP_STRING([--with-cunit-path=DIR path to CUnit libs and headers], - [(or in the default path if not specified).]), +AC_HELP_STRING([--with-cunit-path=DIR], + [path to CUnit libs and headers (if not present at default path)]), [CUNIT_PATH=$withval CUNIT_CPPFLAGS="-I$CUNIT_PATH/include" CUNIT_LIBS="-L$CUNIT_PATH/lib" diff --git a/test/linux-generic/m4/performance.m4 b/test/linux-generic/m4/performance.m4 index 7f54b96d..05b3a990 100644 --- a/test/linux-generic/m4/performance.m4 +++ b/test/linux-generic/m4/performance.m4 @@ -1,9 +1,8 @@ ########################################################################## # Enable/disable test-perf-proc ########################################################################## -test_perf_proc=no AC_ARG_ENABLE([test-perf-proc], - [ --enable-test-perf-proc run test in test/performance in process mode], - [if test "x$enableval" = "xyes"; then - test_perf_proc=yes - fi]) + [AS_HELP_STRING([--enable-test-perf-proc], [run test in test/performance in process mode])], + [test_perf_proc=$enableval], + [test_perf_proc=yes]) +AM_CONDITIONAL([test_perf_proc], [test x$test_perf_proc = xyes ])