From patchwork Tue Mar 29 18:23: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: 64620 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2181643lbc; Tue, 29 Mar 2016 11:37:20 -0700 (PDT) X-Received: by 10.140.43.197 with SMTP id e63mr4918783qga.31.1459276640734; Tue, 29 Mar 2016 11:37:20 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 92si36993qgz.58.2016.03.29.11.37.20; Tue, 29 Mar 2016 11:37:20 -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 5300E606D0; Tue, 29 Mar 2016 18:37:20 +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 DBDA96187F; Tue, 29 Mar 2016 18:32:25 +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 B723B61873; Tue, 29 Mar 2016 18:31:20 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by lists.linaro.org (Postfix) with ESMTPS id 7447F61891 for ; Tue, 29 Mar 2016 18:31:03 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id vo2so16670079lbb.1 for ; Tue, 29 Mar 2016 11:31:03 -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=jqmaArk3s1cbnw33eMU2dgs/7n/7MCm6SRZx1m/LiZA=; b=BXwpiEv7Lq62inNS/qnnHk7U5XDT536UgSwntv/HMr3hT9rMEUP5MQ8Pq0DiRG8Wgm 7adLiWb090yacYLUMLsf8EsPFo5samv+bmdw00gYWqFTXBAK5FVv/gZH/ILQynJDwfMv vxL0Tw6jkNXLqicyAjhLSXEDt2WPXL5axggElgwrosXlhWUFUk6mXGn12n5+hvBhgv6o 9q0OM8Y+4gvBYTy80KSNrdqtfyYtWcxiaK2/BvaWbvBCqjufZhL/ar8Wq50HhqVHnpdg rbQlyo18OzvVeMJ2fU9gq1sP+7Qw53OvDs+jGq0vIYvcCZ+RNPgcGXHTpkVIAnywIXXe DZVg== X-Gm-Message-State: AD7BkJItPjocGg3ZLZl5jDIQ5bWjUhog0o6QWxRK003wFzU1tlPvQz5QO1iGls+Q2B/iIQzCve8= X-Received: by 10.112.131.2 with SMTP id oi2mr1832429lbb.67.1459276262391; Tue, 29 Mar 2016 11:31:02 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id rp10sm1685lbb.13.2016.03.29.11.31.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 11:31:01 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 29 Mar 2016 20:23:34 +0200 Message-Id: <1459275814-19876-11-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 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 b7879eb..c8fb91e 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,7 @@ AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ]) 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_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