summaryrefslogtreecommitdiff
path: root/t/perf/run
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2018-01-05 09:12:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-05 20:31:08 (GMT)
commit5d6bb930903be48cc3c90adfb88e12461082737d (patch)
treedd122dad0709037a2ebd3c9b66c0da68216a92a0 /t/perf/run
parent3ae7d2b0cd819f2b01e70c0015d6971a47e24c8a (diff)
downloadgit-5d6bb930903be48cc3c90adfb88e12461082737d.zip
git-5d6bb930903be48cc3c90adfb88e12461082737d.tar.gz
git-5d6bb930903be48cc3c90adfb88e12461082737d.tar.bz2
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>
Diffstat (limited to 't/perf/run')
-rwxr-xr-xt/perf/run7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/perf/run b/t/perf/run
index 214d658..4e62d6b 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