summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2018-01-05 10:12:24 +0100
committerJunio C Hamano <gitster@pobox.com>2018-01-05 12:31:08 -0800
commit5d6bb930903be48cc3c90adfb88e12461082737d (patch)
treedd122dad0709037a2ebd3c9b66c0da68216a92a0
parent3ae7d2b0cd819f2b01e70c0015d6971a47e24c8a (diff)
downloadgit-5d6bb930903be48cc3c90adfb88e12461082737d.tar.gz
perf/run: learn about perf.codespeedOutput
Let's make it possible to set in a config file the output format (regular or codespeed) of the perf tests. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/perf/run7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/perf/run b/t/perf/run
index 214d658172..4e62d6bb3f 100755
--- a/t/perf/run
+++ b/t/perf/run
@@ -144,10 +144,15 @@ run_subsection () {
set -- . "$@"
fi
+ codespeed_opt=
+ test "$GIT_PERF_CODESPEED_OUTPUT" = "true" && codespeed_opt="--codespeed"
+
run_dirs "$@"
- ./aggregate.perl "$@"
+ ./aggregate.perl $codespeed_opt "$@"
}
+get_var_from_env_or_config "GIT_PERF_CODESPEED_OUTPUT" "perf" "codespeedOutput" "--bool"
+
cd "$(dirname $0)"
. ../../GIT-BUILD-OPTIONS