From patchwork Wed Mar 23 18:37:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 64261 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp204622lbc; Wed, 23 Mar 2016 11:53:16 -0700 (PDT) X-Received: by 10.107.168.228 with SMTP id e97mr5394667ioj.55.1458759196154; Wed, 23 Mar 2016 11:53:16 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id j67si5473779iof.74.2016.03.23.11.53.15; Wed, 23 Mar 2016 11:53:16 -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 Received: by lists.linaro.org (Postfix, from userid 109) id 9D1A5617B8; Wed, 23 Mar 2016 18:53:15 +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 8640161812; Wed, 23 Mar 2016 18:46:32 +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 9F8CD61806; Wed, 23 Mar 2016 18:46:26 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by lists.linaro.org (Postfix) with ESMTPS id 4DC506180B for ; Wed, 23 Mar 2016 18:44:57 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id o73so18202351lfe.0 for ; Wed, 23 Mar 2016 11:44:57 -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=G6M+FFLPfNrmh7+jxAE3Kp2js2b7fVhPMUdNO4pr2yo=; b=ZksFDrIn5VnA2ZKYB4YcsuddrrBL48fD+kn5iOfUKqwxQ42Mg4o+Qsf4AblnNkvet7 osKVNrBBLN2xnbuJFyjrHqXKELegzeUheAoDaiEQ/L0ic1U8Jnk1ajXXjQb0nVtHQuU3 a3yj+VtOo/sf51fUcBEcZ0m7Wv4tqotH5gGz9EbLf2aQayclWIZCXfd00IpF1Y8xOt31 SwmuxjDRW6nTSlGk7JZ72+SRjNPpt1OK+466yBlzHuwDLqLP8YAe8hz1XUOGq88hDVsr moyKCbp99iL17SRhzroVfMitu1FZmqEl9HLvrsDhYWUAaUATyEVJ2SoUiWQC9le49o+2 XpKQ== X-Gm-Message-State: AD7BkJK+Om0Pvtq78KmO/dotk6NxMcBnwr3iYw7rMElqrY8ByF+hfuAAhWMWdjUTuu3B7h9G4oI= X-Received: by 10.25.135.8 with SMTP id j8mr1831606lfd.64.1458758696275; Wed, 23 Mar 2016 11:44:56 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id sv6sm577577lbb.29.2016.03.23.11.44.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Mar 2016 11:44:55 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Wed, 23 Mar 2016 19:37:34 +0100 Message-Id: <1458758254-4703-11-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458758254-4703-1-git-send-email-anders.roxell@linaro.org> References: <1458758254-4703-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 10/10] example: m4: configure option to check examples 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" Suggested-by: Mike Holmes Signed-off-by: Anders Roxell --- configure.ac | 1 + example/l2fwd_simple/Makefile.am | 2 ++ example/m4/configure.m4 | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/configure.ac b/configure.ac index 1738e73..b878802 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,7 @@ AM_CONDITIONAL([dpdk_support], [test x$dpdk_support = xyes ]) AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ]) AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes]) AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"]) +AM_CONDITIONAL([test_example], [test x$test_example = xyes ]) AM_CONDITIONAL([test_installdir], [test "$testdir" != ""]) AM_CONDITIONAL([cunit_support], [test x$cunit_support = xyes ]) AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ]) diff --git a/example/l2fwd_simple/Makefile.am b/example/l2fwd_simple/Makefile.am index 53b0e26..fe20654 100644 --- a/example/l2fwd_simple/Makefile.am +++ b/example/l2fwd_simple/Makefile.am @@ -9,7 +9,9 @@ noinst_HEADERS = \ dist_odp_l2fwd_simple_SOURCES = odp_l2fwd_simple.c +if test_example if HAVE_PCAP TESTS = l2fwd_simple_run.sh endif +endif EXTRA_DIST = l2fwd_simple_run.sh udp64.pcap diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 74869ff..3a7211f 100644 --- a/example/m4/configure.m4 +++ b/example/m4/configure.m4 @@ -1,3 +1,15 @@ +########################################################################## +# Enable/disable test-example +########################################################################## +test_example=no +AC_ARG_ENABLE([test-example], + [ --enable-test-example run basic test aginast examples], + [if test "x$enableval" = "xyes"; then + test_example=yes + else + test_example=no + fi]) + AC_CONFIG_FILES([example/classifier/Makefile example/generator/Makefile example/ipsec/Makefile