[PATCH v3 5/7] perf/run: learn about perf.codespeedOutput
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Jan 5, 2018, 09:12 UTC
- Message-ID
- <20180105091226.16083-6-chriscool@tuxfamily.org>
- In-Reply-To
- <20180105091226.16083-1-chriscool@tuxfamily.org>
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> --- t/perf/run | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
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
-- 2.16.0.rc0.40.gbe5e688583