From patchwork Mon Mar 16 11:48:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 45830 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 207D521523 for ; Mon, 16 Mar 2015 11:49:28 +0000 (UTC) Received: by wggx13 with SMTP id x13sf26058504wgg.0 for ; Mon, 16 Mar 2015 04:49:27 -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:in-reply-to :references: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=aAI8VlL4xHCCC/XDy9mF6vC9ZTrvgakd0kV48gS8xfA=; b=HOpKqeWNh0UaIbNPLxXomxjltNRDJBHuE+tThasOqDpyW2sUH8O6LRNrOoHmxJcJHt 9HlpGhsImYcUHwcT7wAl8Lcl1VmOn1MX8OLmlrWUu0IJBraXLdkygpKNHTL+ZqM1NCSF y++jKZlAlypmM5qfCeYjT+Dd9NKm96YrgJkaDPOPBgzky7cZZAHdAe0hi6ZhCDdQMAEQ AYSpmpTqGTPbD68U8fUlZhIjpK1E2Xt+8bkY4Rtd03TbVouNUO/1HQIXuXFO5WeWmxwk +2kbOCrnY7MEoQUWdiDhW3fbwatVbyPgJSiKWrw/pbTwz5ej0V4YpwqYWflE2Inuiz/Q +QcA== X-Gm-Message-State: ALoCoQlurjeljBSCl1JFnaNUsk57kdFapnWuXC834/I2l7apIUHySNalVO2giy52ez8fm9RzmMrv X-Received: by 10.180.13.195 with SMTP id j3mr12307185wic.2.1426506567214; Mon, 16 Mar 2015 04:49:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.101 with SMTP id lv5ls668781lac.22.gmail; Mon, 16 Mar 2015 04:49:27 -0700 (PDT) X-Received: by 10.152.6.71 with SMTP id y7mr42583692lay.116.1426506566720; Mon, 16 Mar 2015 04:49:26 -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 o3si7914757lbh.93.2015.03.16.04.49.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 04:49:26 -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 x15so37160519lam.3 for ; Mon, 16 Mar 2015 04:49:26 -0700 (PDT) X-Received: by 10.152.29.68 with SMTP id i4mr5170700lah.19.1426506566442; Mon, 16 Mar 2015 04:49:26 -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 h5csp2525618lbj; Mon, 16 Mar 2015 04:49:25 -0700 (PDT) X-Received: by 10.140.20.226 with SMTP id 89mr73058194qgj.16.1426506564138; Mon, 16 Mar 2015 04:49:24 -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 p4si9665195qcp.27.2015.03.16.04.49.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 16 Mar 2015 04:49:24 -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 1YXTWJ-0001pi-Vz; Mon, 16 Mar 2015 11:49:20 +0000 Received: from mail-wi0-f178.google.com ([209.85.212.178]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YXTWA-0001nH-4O for lng-odp@lists.linaro.org; Mon, 16 Mar 2015 11:49:10 +0000 Received: by wixw10 with SMTP id w10so41041984wix.0 for ; Mon, 16 Mar 2015 04:49:04 -0700 (PDT) X-Received: by 10.180.126.38 with SMTP id mv6mr16512150wib.22.1426506544544; Mon, 16 Mar 2015 04:49:04 -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.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Mar 2015 04:49:03 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Mon, 16 Mar 2015 11:48:47 +0000 Message-Id: <1426506527-8228-3-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1426506527-8228-1-git-send-email-stuart.haslam@linaro.org> References: <1426506527-8228-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 3/3] performance: scheduling: 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 Pass the test executable path to the test script to avoid the assumption that they're both in the same directory. Signed-off-by: Stuart Haslam --- test/performance/Makefile.am | 2 ++ test/performance/odp_scheduling_run | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/performance/Makefile.am b/test/performance/Makefile.am index 3be3721..54cf529 100644 --- a/test/performance/Makefile.am +++ b/test/performance/Makefile.am @@ -1,5 +1,7 @@ include $(top_srcdir)/test/Makefile.inc +TESTS_ENVIRONMENT = TEST_DIR=${builddir} + EXECUTABLES = COMPILE_ONLY = odp_scheduling diff --git a/test/performance/odp_scheduling_run b/test/performance/odp_scheduling_run index 738963e..b64a79d 100755 --- a/test/performance/odp_scheduling_run +++ b/test/performance/odp_scheduling_run @@ -3,6 +3,7 @@ # Script that passes command line arguments to odp_scheduling test when # launched by 'make check' +TEST_DIR="${TEST_DIR:-$(dirname $0)}" ret=0 run() @@ -10,7 +11,7 @@ run() echo odp_scheduling_run starts with $1 worker threads echo =============================================== - ./odp_schedling -c $1 || ret=1 + $TEST_DIR/odp_scheduling -c $1 || ret=1 } run 1