From patchwork Tue Mar 29 18:23:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 64617 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2180674lbc; Tue, 29 Mar 2016 11:35:11 -0700 (PDT) X-Received: by 10.140.96.85 with SMTP id j79mr4759261qge.92.1459276511185; Tue, 29 Mar 2016 11:35:11 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v63si2140qka.83.2016.03.29.11.35.10; Tue, 29 Mar 2016 11:35:11 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D163D6188F; Tue, 29 Mar 2016 18:35:10 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 D3180618DF; Tue, 29 Mar 2016 18:32:08 +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 6F4C16186F; Tue, 29 Mar 2016 18:31:16 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by lists.linaro.org (Postfix) with ESMTPS id 6C856618C9 for ; Tue, 29 Mar 2016 18:30:55 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id g124so16666746lfg.0 for ; Tue, 29 Mar 2016 11:30:55 -0700 (PDT) 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=NbeAQCgMOMRp6a0ZlwuXU/oEsIrflsIR0cugvvZ2F/A=; b=Z2aypNXDM5sqH4Qorkym0ChEQKujHm1eQnqneAKQZNZTzQ4ObEtOehKfMK5MUb9XRh h+ZucQCoM2Y9c8yH1Go6uYAi/hdXAYyKMPi9L1GYGXNdZOXLO0IB4FwlzBdm491xM6j5 dHkxPvjXrAKvBYi5Za/cDjBi/UZb7kDEuwVVxTZs6DSCvrIsN5rxwgb8XXFxmX4o3moA VBpo6oN6hA6Gnwi7MEhrbHKB5oz0oaHdPqtbLyXIHwMI076L/sBO1uA5udKks7M9NvcO UjZXxeQwGFRtiI5OIGj8ICTypgOc+57SM+BPRu3nwRmf9p6xcWWONY0N1wy+LYaDTUMZ GK3Q== X-Gm-Message-State: AD7BkJKMQGktJZacERzlYBlys3xwRs4YgY+1SKatwqtoxTshsnJxJbr0GF/U4D595I5A9o4B1W4= X-Received: by 10.25.89.199 with SMTP id n190mr1945184lfb.16.1459276254365; Tue, 29 Mar 2016 11:30:54 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id f134sm5522133lff.34.2016.03.29.11.30.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 11:30:53 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Mar 2016 20:23:28 +0200 Message-Id: <1459275814-19876-5-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459275814-19876-1-git-send-email-anders.roxell@linaro.org> References: <1459275814-19876-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 04/10] configure: move test_perf to its own m4 file 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" Signed-off-by: Anders Roxell --- configure.ac | 19 ++++++------------- test/m4/configure.m4 | 2 ++ test/m4/performance.m4 | 9 +++++++++ 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 test/m4/performance.m4 diff --git a/configure.ac b/configure.ac index 75d846e..cc6a38b 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,11 @@ AC_SUBST([platform_with_platform], ["platform/${with_platform}"]) AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"]) ########################################################################## +# Include m4 files +########################################################################## +m4_include([./test/m4/configure.m4]) + +########################################################################## # Run platform specific checks and settings ########################################################################## if test "${with_platform}" == "linux-generic"; @@ -133,6 +138,7 @@ AM_CONDITIONAL([PKTIO_DPDK], [test x$pktio_dpdk_support = xyes ]) AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes]) AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"]) AM_CONDITIONAL([test_installdir], [test "$testdir" != ""]) +AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ]) ########################################################################## # Setup doxygen documentation @@ -155,18 +161,6 @@ AC_ARG_ENABLE([test_vald], AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ]) ########################################################################## -# 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]) - -AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ]) - -########################################################################## # Enable/disable test-helper ########################################################################## test_helper=no @@ -325,7 +319,6 @@ AC_CONFIG_FILES([Makefile m4_include([./doc/m4/configure.m4]) m4_include([./example/m4/configure.m4]) -m4_include([./test/m4/configure.m4]) AC_SEARCH_LIBS([timer_create],[rt posix4]) diff --git a/test/m4/configure.m4 b/test/m4/configure.m4 index 7868e10..e4b7d7a 100644 --- a/test/m4/configure.m4 +++ b/test/m4/configure.m4 @@ -1,3 +1,5 @@ +m4_include([test/m4/performance.m4]) + AC_CONFIG_FILES([test/Makefile test/miscellaneous/Makefile test/performance/Makefile diff --git a/test/m4/performance.m4 b/test/m4/performance.m4 new file mode 100644 index 0000000..1e2000d --- /dev/null +++ b/test/m4/performance.m4 @@ -0,0 +1,9 @@ +########################################################################## +# 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])