From patchwork Mon Mar 16 11:48:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 45829 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5CAE621523 for ; Mon, 16 Mar 2015 11:49:20 +0000 (UTC) Received: by widex7 with SMTP id ex7sf7154393wid.2 for ; Mon, 16 Mar 2015 04:49:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=BsPwD4cj1mqXdjg2A0S59Q8E7AQ5evhW+eqmdBCoIlI=; b=U87sKKE9zxe49nXh/PWFSMVNX1+Mf5qUp7QEBQv+05FvNNQLbVM/n1TI87AzXjGMKc p/iM+X8bjKDmncEFmoa91LI4Jl5M/aLZVHl/sTi/VsBYEEehQoqsKEN8/6HF/DPdwkL1 LE/rrIeCEANgtF8VyvP6xLVdxkikSKaz+xwyMx3nzwBZjKiHKUtUTsM2T6TIo0CDR1tJ gMMvyeuBtAAwOI5SFv6Jh9vleHqx3XcfTekd+2JWEwW6OpajGnrnc3iM0F7MKjgWOkjC ab7dAKM+EXObdD1mmqNnsg5Wk1xyx1oFDdAsdQ9Ylr4sB8e+MInKXnbQjKRfPtxL1LiC 3/pg== X-Gm-Message-State: ALoCoQkjP4nH/ARbdltwSHxYdeTxNv82L4W+UFCobn7FL6yJnHj4eqsCnsRlvqyopg8hDTx+SsSq X-Received: by 10.180.13.195 with SMTP id j3mr12307088wic.2.1426506559668; Mon, 16 Mar 2015 04:49:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.168 with SMTP id a8ls611646lab.14.gmail; Mon, 16 Mar 2015 04:49:19 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr35190089lac.110.1426506559501; Mon, 16 Mar 2015 04:49:19 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id zj11si7906899lbb.148.2015.03.16.04.49.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 04:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lamx15 with SMTP id x15so37156029lam.3 for ; Mon, 16 Mar 2015 04:49:19 -0700 (PDT) X-Received: by 10.152.206.70 with SMTP id lm6mr55847918lac.35.1426506559212; Mon, 16 Mar 2015 04:49:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp2525574lbj; Mon, 16 Mar 2015 04:49:18 -0700 (PDT) X-Received: by 10.140.84.165 with SMTP id l34mr72782019qgd.80.1426506557949; Mon, 16 Mar 2015 04:49:17 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id c4si9650642qka.50.2015.03.16.04.49.15 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 16 Mar 2015 04:49:17 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YXTWC-0001pL-E3; Mon, 16 Mar 2015 11:49:12 +0000 Received: from mail-wg0-f45.google.com ([74.125.82.45]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YXTW7-0001nF-EH for lng-odp@lists.linaro.org; Mon, 16 Mar 2015 11:49:07 +0000 Received: by wggv3 with SMTP id v3so37661385wgg.1 for ; Mon, 16 Mar 2015 04:49:01 -0700 (PDT) X-Received: by 10.180.187.12 with SMTP id fo12mr98830073wic.29.1426506541877; Mon, 16 Mar 2015 04:49:01 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id q10sm15030144wjr.41.2015.03.16.04.49.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Mar 2015 04:49:00 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Mon, 16 Mar 2015 11:48:45 +0000 Message-Id: <1426506527-8228-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH 1/3] validation: pktio: add support for VPATH builds X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stuart.haslam@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Running "make check" in a VPATH build fails as the odp_pktio_run script incorrectly assumes that the odp_pktio binary is in the same directory. Resolve this by passing the path to the test binary to the script via the TESTS_ENVIRONMENT variable. Signed-off-by: Stuart Haslam --- test/validation/Makefile.am | 4 +++- test/validation/odp_pktio_run | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index 0833181..e695e07 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -3,7 +3,7 @@ include $(top_srcdir)/test/Makefile.inc AM_CFLAGS += -I$(srcdir)/common AM_LDFLAGS += -static -TESTS_ENVIRONMENT = ODP_PLATFORM=${with_platform} +TESTS_ENVIRONMENT = ODP_PLATFORM=${with_platform} TEST_DIR=${builddir} EXECUTABLES = odp_buffer \ odp_classification \ @@ -31,6 +31,8 @@ if test_vald TESTS = $(EXECUTABLES) $(TESTSCRIPTS) endif +dist_bin_SCRIPTS = odp_pktio_run + bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) ODP_CU_COMMON=common/odp_cunit_common.c diff --git a/test/validation/odp_pktio_run b/test/validation/odp_pktio_run index 6177caa..856dfac 100755 --- a/test/validation/odp_pktio_run +++ b/test/validation/odp_pktio_run @@ -27,7 +27,7 @@ # (repeat running test multiple times..) # odp_pktio_run cleanup # -TEST_DIR=$(dirname $0) +TEST_DIR="${TEST_DIR:-$(dirname $0)}" IF0=pktio-p0 IF1=pktio-p1