From patchwork Thu May 14 19:22:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 48538 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1C4F92121F for ; Thu, 14 May 2015 19:22:22 +0000 (UTC) Received: by laed2 with SMTP id d2sf214812lae.0 for ; Thu, 14 May 2015 12:22:20 -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:delivered-to:from:to:date :message-id:cc: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=coxfhSd4Rso1wz74JA0mKw6c04eGyHHGeOFbQsmLT7A=; b=Won8mTgkkITcNQTUVGGny5MqrV6A/J/7cYMDKzoq2xY6nRlSrGdkML4gR3HgsNECKm k8oTCV0ht+Z3wYfeQrAtgYKaVDm8+D39iLNccgqkU1dXicf1nkrGgYHEalPG8HboajbN VlOEzZarnk9NNfrokFNovk2Qr9J4wyDdQI+wa82SleKxNCkDxLfyjdc5JKfcVH3JcG9m 8E9r3sDpYCiTk5fNX6PktEgc7DXrDrKq36Ggg2pT9KmZjAFO/shIV5AytEXs+ZMQiRdV WNsQvfIqNYZNNcwJZFoxTh0ThRfrhWSk8pLKk59OrEx+ENDrD4YH9Dap1QqC+0o8fsB4 P3ng== X-Gm-Message-State: ALoCoQnfM/et8ETjEmfJnVEaDFZtvwtpHmRnnbgDHQ3mjrFD5N+UbzcOdQivcCmHN6zj4s2Cm4HA X-Received: by 10.194.47.179 with SMTP id e19mr4079654wjn.4.1431631340911; Thu, 14 May 2015 12:22:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.41 with SMTP id p9ls410552lap.37.gmail; Thu, 14 May 2015 12:22:20 -0700 (PDT) X-Received: by 10.112.180.201 with SMTP id dq9mr4517465lbc.78.1431631340714; Thu, 14 May 2015 12:22:20 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id x10si15135819lax.97.2015.05.14.12.22.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2015 12:22:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by lagv1 with SMTP id v1so82799906lag.3 for ; Thu, 14 May 2015 12:22:20 -0700 (PDT) X-Received: by 10.152.21.136 with SMTP id v8mr1970673lae.19.1431631340565; Thu, 14 May 2015 12:22:20 -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.108.230 with SMTP id hn6csp1480235lbb; Thu, 14 May 2015 12:22:19 -0700 (PDT) X-Received: by 10.140.147.213 with SMTP id 204mr8042216qht.58.1431631338475; Thu, 14 May 2015 12:22:18 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k39si532685qgd.40.2015.05.14.12.22.17; Thu, 14 May 2015 12:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 4F23662000; Thu, 14 May 2015 19:22:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7DA0D61822; Thu, 14 May 2015 19:22:15 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 486CA61B30; Thu, 14 May 2015 19:22:13 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by lists.linaro.org (Postfix) with ESMTPS id 7285061822 for ; Thu, 14 May 2015 19:22:12 +0000 (UTC) Received: by qkgy4 with SMTP id y4so56300972qkg.2 for ; Thu, 14 May 2015 12:22:12 -0700 (PDT) X-Received: by 10.55.19.5 with SMTP id d5mr12566395qkh.6.1431631332254; Thu, 14 May 2015 12:22:12 -0700 (PDT) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id b7sm18455371qkb.33.2015.05.14.12.22.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 May 2015 12:22:11 -0700 (PDT) From: Mike Holmes To: anders.roxell@linaro.org Date: Thu, 14 May 2015 15:22:05 -0400 Message-Id: <1431631325-1606-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [check-odp PATCH] enable optional perf testing X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@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.46 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 Signed-off-by: Mike Holmes Reviewed-by: Zoltan Kiss --- apply-and-build.sh | 1 + build.sh | 1 + helper/generic | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apply-and-build.sh b/apply-and-build.sh index 9d73a2f..e41c297 100755 --- a/apply-and-build.sh +++ b/apply-and-build.sh @@ -40,6 +40,7 @@ usage() { echo -e "\tFILE_EXT:\tsupported extensions in patch file names, default: ${FILE_EXT}" echo -e "\tM32_ON_64:\tenable 32 bit builds on a 64 bit host, default: 0" echo -e "\tCPP_TEST:\tenable cpp test, default: 0" + common_usage echo -e "\tDISTCHECK:\tset to 0 to disable DISTCHECK build, default: 1" openssl_usage tc_usage diff --git a/build.sh b/build.sh index 2f69bc0..2bf2ac3 100755 --- a/build.sh +++ b/build.sh @@ -93,6 +93,7 @@ usage() { echo -e "\tCLANG:\t\t build with clang, default: 0" echo -e "\tEXIT_ON_ERROR:\t bail out on error, default: 1" echo -e "\tCPP_TEST:\t enable cpp test, default: 0" + common_usage echo -e "\tDISTCHECK:\tset to 1 to enable DISTCHECK build, default: 0" echo -e "\tE_VALGRIND:\t run Valgrind, default: 0" ${PLATFORM_SHORT}_usage diff --git a/helper/generic b/helper/generic index aa1b10a..d4be657 100644 --- a/helper/generic +++ b/helper/generic @@ -3,7 +3,10 @@ export SRCDIR=${ROOT_DIR}/src export BUILDDIR=${ROOT_DIR}/build export LOGDIR=${ROOT_DIR}/log -export EXTRA_FLAGS="${EXTRA_FLAGS} --enable-test-perf" +export PERF_TEST="${PERF_TEST:-1}" +if [[ ${PERF_TEST} -eq 1 ]]; then + export EXTRA_FLAGS="${EXTRA_FLAGS} --enable-test-perf" +fi mkdir -p ${SRCDIR} mkdir -p ${BUILDDIR} @@ -19,6 +22,10 @@ control_c() # trap keyboard interrupt (control-c) trap control_c SIGINT +common_usage() { + echo -e "\tPERF_TEST:\t enable perf test, default: 1" +} + remote_name(){ retval=$(echo ${1} |tr ':/.-' '_') echo "${retval}"