From patchwork Tue Mar 17 10:31:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 45877 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4223C21547 for ; Tue, 17 Mar 2015 10:32:29 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf1024205lbv.0 for ; Tue, 17 Mar 2015 03:32:28 -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=kTK0MLP2Bko7Kds6HXvriJ2nTiCG5bwZ6lTjxQxMuSE=; b=TGUwctzP5wIUd9jlE+B9m/lfqP1Crt2wLutzyERI5yMLS69L25vt2Eh04ay/mX/pVo Fhm4yE6t31K77EydbHcRxi09Yb75X8VHkO5iEOwy3/CvvH3HtQD/VHGjprjmlGU4t/8H So4bhzcgyZ9Hh0ZKmNJMq7BVsiOu5s8wMbyVrmzXurQjTo9u9iMJeyqdNb8ag8xyiy5R qOdtEXbgh5ZoEZZzJQvTlzgalycEqMmUuxrqepJNty2+8BR/AIYOHEh3XJK3zErsmfOt cEDCGTS57fh/LutvDjaJf6X4pX7/QUgwUJfGftZgEAQGj4V3Aeg4CMvVc4hHlGsZXrCw ARSQ== X-Gm-Message-State: ALoCoQnRBZgRbXNceR3rIETGPDg9370PRuzaBoXmlKkpPGjcVmcgWOr9lJmfl3izzYnvEc2kMUEo X-Received: by 10.152.6.41 with SMTP id x9mr9917580lax.10.1426588348284; Tue, 17 Mar 2015 03:32:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.178 with SMTP id p18ls15733lal.68.gmail; Tue, 17 Mar 2015 03:32:28 -0700 (PDT) X-Received: by 10.152.115.169 with SMTP id jp9mr59488212lab.121.1426588348140; Tue, 17 Mar 2015 03:32:28 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id ci6si10187651lad.172.2015.03.17.03.32.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 03:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by ladw1 with SMTP id w1so4559887lad.0 for ; Tue, 17 Mar 2015 03:32:28 -0700 (PDT) X-Received: by 10.152.121.33 with SMTP id lh1mr59356045lab.86.1426588348034; Tue, 17 Mar 2015 03:32:28 -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 h5csp411913lbj; Tue, 17 Mar 2015 03:32:27 -0700 (PDT) X-Received: by 10.140.41.169 with SMTP id z38mr79004031qgz.56.1426588346647; Tue, 17 Mar 2015 03:32:26 -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 x7si12817021qce.15.2015.03.17.03.32.25 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Mar 2015 03:32:26 -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 1YXonP-0006e5-O6; Tue, 17 Mar 2015 10:32:23 +0000 Received: from mail-wi0-f174.google.com ([209.85.212.174]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YXonG-0006dF-7A for lng-odp@lists.linaro.org; Tue, 17 Mar 2015 10:32:14 +0000 Received: by wifj2 with SMTP id j2so6951144wif.1 for ; Tue, 17 Mar 2015 03:32:08 -0700 (PDT) X-Received: by 10.194.78.114 with SMTP id a18mr133254046wjx.0.1426588328767; Tue, 17 Mar 2015 03:32:08 -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.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Mar 2015 03:32:08 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Tue, 17 Mar 2015 10:31:56 +0000 Message-Id: <1426588316-13309-3-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1426588316-13309-1-git-send-email-stuart.haslam@linaro.org> References: <1426588316-13309-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 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.50 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 --- Change in v2; correct name of executable 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 a96a3d2..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_scheduling -c $1 || ret=1 + $TEST_DIR/odp_scheduling -c $1 || ret=1 } run 1