aboutsummaryrefslogtreecommitdiff
path: root/helper
diff options
context:
space:
mode:
authorMike Holmes <mike.holmes@linaro.org>2015-05-14 15:22:05 -0400
committerAnders Roxell <anders.roxell@linaro.org>2015-05-22 11:27:28 +0200
commit1bc0032645be6a917c0816a2100b27b9f504fd46 (patch)
tree653b5dbb320362797b41a49cc96442e497c5de71 /helper
parent1cf77cbaf648385307b2564cc21dbfab9d097fd0 (diff)
enable optional perf testing
Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Zoltan Kiss <zoltan.kiss@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'helper')
-rw-r--r--helper/generic11
1 files changed, 10 insertions, 1 deletions
diff --git a/helper/generic b/helper/generic
index aa1b10a..5e249fb 100644
--- a/helper/generic
+++ b/helper/generic
@@ -3,7 +3,12 @@
export SRCDIR=${ROOT_DIR}/src
export BUILDDIR=${ROOT_DIR}/build
export LOGDIR=${ROOT_DIR}/log
-export EXTRA_FLAGS="${EXTRA_FLAGS} --enable-test-perf"
+export EXTRA_FLAGS="${EXTRA_FLAGS:-}"
+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 +24,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}"