From patchwork Mon Aug 5 19:02:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 18782 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B2F31246D0 for ; Mon, 5 Aug 2013 19:03:19 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id cd7sf3158821qab.1 for ; Mon, 05 Aug 2013 12:03:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-removed-original-auth :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=fqwlkkCdpSJL3aSbCa3/TQ4P4Mcv3VMj+8wFRQwKOAE=; b=B8DjBCprXborI8MSae2ak4/Y0Fle3Mgzxem8rv4fEfn+4Kld3ELuEpflBs+3wwXxXi p10rDlVbPTRM+Y5jJfTfaYwcyPWROxsMw87LIqN5XkA2o2ATJbbbkSoO5GXqtOjJ0n6J E8FoYSk+8RLqgsyJ95v9PfV4Jym79ZhnlYtJOrlezb5w9DjlFNWjoU49r7aqj4rzhMot aG2bJic6Y1KhagK2ZNDYAKWwWKu6XP7a8uadASZgzQR7xcgTSY0iod62R9IZ+wXcBKqU mdtobk0j5o2oSFszlExDqE7cdEKmEltXFDPZBnAHP132dy8h6aHSMsOhvSOYSM6l8nAG GwAw== X-Received: by 10.59.5.72 with SMTP id ck8mr1828906ved.35.1375729399448; Mon, 05 Aug 2013 12:03:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.73.234 with SMTP id o10ls2594961qev.24.gmail; Mon, 05 Aug 2013 12:03:19 -0700 (PDT) X-Received: by 10.52.94.78 with SMTP id da14mr2753021vdb.28.1375729399360; Mon, 05 Aug 2013 12:03:19 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id xb6si104182vdb.133.2013.08.05.12.03.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:03:19 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id d10so3486256vea.5 for ; Mon, 05 Aug 2013 12:03:19 -0700 (PDT) X-Received: by 10.52.243.201 with SMTP id xa9mr885857vdc.106.1375729399222; Mon, 05 Aug 2013 12:03:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.11.8 with SMTP id pc8csp106045vcb; Mon, 5 Aug 2013 12:03:18 -0700 (PDT) X-Received: by 10.152.25.135 with SMTP id c7mr9252525lag.39.1375729397873; Mon, 05 Aug 2013 12:03:17 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx.google.com with ESMTPS id t6si202480lag.170.2013.08.05.12.03.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:03:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.53 is neither permitted nor denied by best guess record for domain of anders.roxell@linaro.org) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id el20so2335960lab.40 for ; Mon, 05 Aug 2013 12:03:17 -0700 (PDT) X-Received: by 10.112.156.133 with SMTP id we5mr2723929lbb.81.1375729397314; Mon, 05 Aug 2013 12:03:17 -0700 (PDT) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id w9sm455811lbk.7.2013.08.05.12.03.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 Aug 2013 12:03:16 -0700 (PDT) From: Anders Roxell To: ltp-list@lists.sourceforge.net Cc: patches@linaro.org, Anders Roxell Subject: [PATCH 5/6] realtime: only build tests if needed Date: Mon, 5 Aug 2013 21:02:58 +0200 Message-Id: <1375729379-16469-6-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1375729379-16469-1-git-send-email-anders.roxell@linaro.org> References: <1375729379-16469-1-git-send-email-anders.roxell@linaro.org> X-Gm-Message-State: ALoCoQkYx60VHyc5Exx5s3H4E198pD9/vDjDtFsSfDC+R9NDJNcQv/YmGdNv0SGIge8jkr95di7+ X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , stand alone run scripts can not build from the installed directory. Signed-off-by: Anders Roxell --- testcases/realtime/run.sh | 16 ++++++++++------ testcases/realtime/scripts/run_c_files.sh | 7 +++++-- testscripts/test_realtime.sh | 16 ++++++++++------ 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/testcases/realtime/run.sh b/testcases/realtime/run.sh index 77e8d68..a66e4e5 100755 --- a/testcases/realtime/run.sh +++ b/testcases/realtime/run.sh @@ -185,12 +185,16 @@ if [ $# -lt 1 ]; then fi pushd $TESTS_DIR >/dev/null -#Only build the library, most of the tests depend upon. -#The Individual tests will be built, just before they run. -pushd lib -make -check_error make -popd +# if INSTALL_DIR != top_srcdir assume the individual tests are built and installed. +# So no need to build lib +if [[ -d lib ]]; then + #Only build the library, most of the tests depend upon. + #The Individual tests will be built, just before they run. + pushd lib + make + check_error make + popd +fi ISLOOP=0 index=0 diff --git a/testcases/realtime/scripts/run_c_files.sh b/testcases/realtime/scripts/run_c_files.sh index 3ab52ec..6e73f38 100755 --- a/testcases/realtime/scripts/run_c_files.sh +++ b/testcases/realtime/scripts/run_c_files.sh @@ -20,8 +20,11 @@ profile_path=$PROFILES_DIR/$profile # Does profile exist? [ ! -f "$profile_path" ] && { echo >&2 "$0: Could not find profile ($profile_path)" ; exit 1 ; } -# Compile the test cases to support stand alone runs. -make +# if INSTALL_DIR != top_srcdir assume the individual tests are built and installed. +if [[ -f Makefile ]]; then + # Compile the test cases to support stand alone runs. + make +fi # Run the test case diff --git a/testscripts/test_realtime.sh b/testscripts/test_realtime.sh index 22c3692..ad5075f 100755 --- a/testscripts/test_realtime.sh +++ b/testscripts/test_realtime.sh @@ -176,12 +176,16 @@ if [ ! -e "logs" ]; then chmod -R 775 logs fi -#Only build the library, most of the tests depend upon. -#The Individual tests will be built, just before they run. -pushd lib -make -check_error make -popd +# if INSTALL_DIR != top_srcdir assume the individual tests are built and installed. +# So no need to build lib +if [[ -d lib ]]; then + #Only build the library, most of the tests depend upon. + #The Individual tests will be built, just before they run. + pushd lib + make + check_error make + popd +fi ISLOOP=0 index=0