From patchwork Wed Apr 20 16:07:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 66218 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2537156qge; Wed, 20 Apr 2016 09:08:32 -0700 (PDT) X-Received: by 10.55.77.12 with SMTP id a12mr12512482qkb.44.1461168511947; Wed, 20 Apr 2016 09:08:31 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a4si23269616qga.6.2016.04.20.09.08.31; Wed, 20 Apr 2016 09:08:31 -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 8D3FC68622; Wed, 20 Apr 2016 16:08:31 +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 4151B669C7; Wed, 20 Apr 2016 16:08:28 +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 DDCC461B18; Wed, 20 Apr 2016 16:08:04 +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 E44BC61847 for ; Wed, 20 Apr 2016 16:08:00 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id e190so44030807lfe.0 for ; Wed, 20 Apr 2016 09:08:00 -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=0EJ7UXUT/RJ9dn9u/4kWeZX4lpDTFDCB/1Ztdtuiku0=; b=livAVTPHNtXBHHb4VMKeur4bxC2XPiiksQ5YGHu6lwkGl5f8nds4AxOo0G/VWp200R 2yIkBvKhjl6238mBzB82jhfcL5HsMVTI7X9mNCqDcfcTap27PxCWb1DaYYa87e8txiBp MJdUDRgsQL0N14uY23f0Fk803CDCjtUy5I/uoyLCsSe9PadkBaPFIg78AoC4RykoJNCR hAxREzONWXzj8IuWiFHHDEPru+aUAdBTdjiXPeIEB3UVw6rN9/YGqg/EUiSe+ZQl+0mB KWvIgZfM6iURpPra+q3PuCJLtSctHgmoDSQuWn5oQe8Z/McepYFqojpNdl3t66uaQLgG IFOw== X-Gm-Message-State: AOPr4FU9Bdxgjgl5QnpNChr/wE3jUmxGxM7HEztsLY09FHwCfA4V56juaWAiPAmKZUqdGBuTPZc= X-Received: by 10.25.17.99 with SMTP id g96mr475942lfi.112.1461168479875; Wed, 20 Apr 2016 09:07:59 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-173-31.pppoe.mtu-net.ru. [91.77.173.31]) by smtp.gmail.com with ESMTPSA id s4sm1201517lbr.34.2016.04.20.09.07.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Apr 2016 09:07:59 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 20 Apr 2016 19:07:49 +0300 Message-Id: <1461168469-6574-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 X-Topics: patch Subject: [lng-odp] [PATCH] example: switch: depend test run on configure option 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" If --enable-test-example was not provided 'make check' should not run this test. Signed-off-by: Maxim Uvarov --- example/switch/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/switch/Makefile.am b/example/switch/Makefile.am index e18c681..4134bcf 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 test_example if HAVE_PCAP TESTS = switch_run.sh endif +endif EXTRA_DIST = switch_run.sh udp64.pcap