diff options
author | Christian Couder <christian.couder@gmail.com> | 2018-01-05 10:12:24 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-05 21:31:08 +0100 |
commit | 5d6bb930903be48cc3c90adfb88e12461082737d (patch) | |
tree | dd122dad0709037a2ebd3c9b66c0da68216a92a0 /t/perf/run | |
parent | perf/run: add conf_opts argument to get_var_from_env_or_config() (diff) | |
download | git-5d6bb930903be48cc3c90adfb88e12461082737d.tar.xz git-5d6bb930903be48cc3c90adfb88e12461082737d.zip |
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 '')
-rwxr-xr-x | t/perf/run | 7 |
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 |