From: Christian Couder Date: Fri, 5 Jan 2018 09:12:24 +0000 (+0100) Subject: perf/run: learn about perf.codespeedOutput X-Git-Tag: v2.17.0-rc0~145^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d6bb930903be48cc3c90adfb88e12461082737d;p=git 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 Signed-off-by: Junio C Hamano --- 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