Browse Source

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>
maint
Christian Couder 7 years ago committed by Junio C Hamano
parent
commit
5d6bb93090
  1. 7
      t/perf/run

7
t/perf/run

@ -144,10 +144,15 @@ run_subsection () { @@ -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


Loading…
Cancel
Save