From patchwork Tue Mar 17 10:31:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 45875 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 92F9E21547 for ; Tue, 17 Mar 2015 10:32:23 +0000 (UTC) Received: by wghl18 with SMTP id l18sf1008848wgh.1 for ; Tue, 17 Mar 2015 03:32:22 -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=llX49J+Y7xxGVfKfxpcQHJ5QTjMCuUQmqsmFxCR2ig4TV/xFLV/ybKLlfRsX+zxrHA d0jzIQAoNhMJ2l9omWNdnzncwJkukuEYI6kR30CSGWBCLXWOYQVZyb+jfT5S9cf9GEUx oCJLAXmOQSY2qF6JHbKaicFC6jvAIYwc3q/PleWHJpyvBcAKwJqej2hf2I6jMOUzcgtp oqM0I4LAMbbaaNqJm6RI51XRmSwFCchx/B+qfQGX2oBQINbxzZMBTtL3QU+LjVCJfORM 3VK2qTufWNJ5aoYGRkDAXRbHcO8mE4uFTaMz0umkYSj0Zo0qryot9ELjimsmQrbGVQf4 6rcg== X-Gm-Message-State: ALoCoQllFJV1IZginMWtHg7NZCuIYqn+yUYNz1gp5bbjeodCFmw8fQx9xX+D/yvtTOSCA6GXuPbA X-Received: by 10.180.150.115 with SMTP id uh19mr6856385wib.7.1426588342917; Tue, 17 Mar 2015 03:32:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.33 with SMTP id s1ls20943lae.40.gmail; Tue, 17 Mar 2015 03:32:22 -0700 (PDT) X-Received: by 10.152.184.73 with SMTP id es9mr44078904lac.104.1426588342477; Tue, 17 Mar 2015 03:32:22 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id cv3si10195233lbb.138.2015.03.17.03.32.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 03:32:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labjg1 with SMTP id jg1so4517574lab.2 for ; Tue, 17 Mar 2015 03:32:22 -0700 (PDT) X-Received: by 10.152.30.103 with SMTP id r7mr55522829lah.76.1426588342377; Tue, 17 Mar 2015 03:32:22 -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 h5csp411852lbj; Tue, 17 Mar 2015 03:32:21 -0700 (PDT) X-Received: by 10.140.151.21 with SMTP id 21mr12272143qhx.8.1426588339882; Tue, 17 Mar 2015 03:32:19 -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 j189si12744956qhc.132.2015.03.17.03.32.18 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Mar 2015 03:32:19 -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 1YXonJ-0006dY-2s; Tue, 17 Mar 2015 10:32:17 +0000 Received: from mail-wi0-f179.google.com ([209.85.212.179]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YXonD-0006dD-MA for lng-odp@lists.linaro.org; Tue, 17 Mar 2015 10:32:11 +0000 Received: by wibg7 with SMTP id g7so59360462wib.1 for ; Tue, 17 Mar 2015 03:32:06 -0700 (PDT) X-Received: by 10.194.133.199 with SMTP id pe7mr88530814wjb.120.1426588326221; Tue, 17 Mar 2015 03:32:06 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::1]) by mx.google.com with ESMTPSA id lg18sm1996672wic.23.2015.03.17.03.32.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Mar 2015 03:32:05 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Tue, 17 Mar 2015 10:31:54 +0000 Message-Id: <1426588316-13309-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCHv2 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.44 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 Tested-by: Mike Holmes --- 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