From patchwork Fri Apr 15 18:36:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 65969 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp83498qge; Fri, 15 Apr 2016 11:37:30 -0700 (PDT) X-Received: by 10.55.82.195 with SMTP id g186mr28789668qkb.47.1460745449958; Fri, 15 Apr 2016 11:37:29 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k44si13225519qgd.90.2016.04.15.11.37.29; Fri, 15 Apr 2016 11:37:29 -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 3214568457; Fri, 15 Apr 2016 18:37:29 +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_H2, 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 8B2E868435; Fri, 15 Apr 2016 18:37:24 +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 860466842F; Fri, 15 Apr 2016 18:37:20 +0000 (UTC) Received: from mail-qg0-f42.google.com (mail-qg0-f42.google.com [209.85.192.42]) by lists.linaro.org (Postfix) with ESMTPS id E4EA46842F for ; Fri, 15 Apr 2016 18:36:33 +0000 (UTC) Received: by mail-qg0-f42.google.com with SMTP id f105so86173085qge.2 for ; Fri, 15 Apr 2016 11:36:33 -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; bh=UxIhKZJ/mRy7DFH4S4Cz01EbK6B1TV4ZZzsJ2OHh6bc=; b=SaUrGh0k1QlEOFQ6CfOH745cidwK+LqTU9XmjR8pOGH8ZgApQSBxajkIuzfqEockhN 91iFXIWyIVuwl7ilxF5VNHnOspI/tiZ9mhSblpbfEWZbvDsvBDtUxxzx/lvtfpqh8uxE SAduW5+u6VOeEPmurD4Xgqgw2yN+sT93WykOKXzOyQdb7y+iL1eP/0TL1KrWKxWmxPOI MNY/Z9Mk9afDVcA84gExKvDJKYaGydqOD69l91arKPwSZ3jv3TKjmBiKBZbk3iirYnbK CHxaiBeRqoEAzDSiB1gXuyiwgSROMcFsAD4VmmzGxyQuctV91H9Z0icHj1ZC6dNwmf+1 QpvA== X-Gm-Message-State: AOPr4FUzJ5sBEhOQfj/3bgTN82mzVsFXOuT7YfuWOqd1/7K+XZVzsiiCZnpAzEjFOPPQBHIkJXE= X-Received: by 10.140.146.142 with SMTP id 136mr28834267qhs.30.1460745393660; Fri, 15 Apr 2016 11:36:33 -0700 (PDT) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id t32sm12049345qgd.43.2016.04.15.11.36.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Apr 2016 11:36:33 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Fri, 15 Apr 2016 14:36:05 -0400 Message-Id: <1460745365-27158-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH v2] configure: Fix broken conditional example execution 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" The configure environment was incorrect and the examples always run with make check Signed-off-by: Mike Holmes --- v2 spelling correction - Ricardo configure.ac | 2 ++ example/m4/configure.m4 | 2 +- example/switch/Makefile.am | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9665d1d..9acc203 100644 --- a/configure.ac +++ b/configure.ac @@ -141,6 +141,7 @@ AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ]) AM_CONDITIONAL([test_perf], [test x$test_perf = 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"]) @@ -243,5 +244,6 @@ AC_MSG_RESULT([ test_perf: ${test_perf} test_cpp: ${test_cpp} test_helper: ${test_helper} + test_example: ${test_example} user_guides: ${user_guides} ]) diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 index 229fed5..9731d81 100644 --- a/example/m4/configure.m4 +++ b/example/m4/configure.m4 @@ -3,7 +3,7 @@ ########################################################################## test_example=no AC_ARG_ENABLE([test-example], - [ --enable-test-example run basic test aginast examples], + [ --enable-test-example run basic test against examples], [if test "x$enableval" = "xyes"; then test_example=yes else diff --git a/example/switch/Makefile.am b/example/switch/Makefile.am index e18c681..20ca3cd 100644 --- a/example/switch/Makefile.am +++ b/example/switch/Makefile.am @@ -9,7 +9,9 @@ noinst_HEADERS = \ dist_odp_switch_SOURCES = odp_switch.c -if HAVE_PCAP -TESTS = switch_run.sh +if test_example + if HAVE_PCAP + TESTS = switch_run.sh + endif endif EXTRA_DIST = switch_run.sh udp64.pcap