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>
Christian Couder committed
Jan 5, 2018 at 10:12 UTC
5d6bb930903be48cc3c90adfb88e12461082737d
1 file changed
+6
-1
t/perf/run
+6
-1
@@ -144,10 +144,15 @@ run_subsection () {
144
set -- . "$@"
145
fi
146
147
+ codespeed_opt=
148
+ test "$GIT_PERF_CODESPEED_OUTPUT" = "true" && codespeed_opt="--codespeed"
149
+
150
run_dirs "$@"
148
- ./aggregate.perl "$@"
151
+ ./aggregate.perl $codespeed_opt "$@"
152
}
153
154
+get_var_from_env_or_config "GIT_PERF_CODESPEED_OUTPUT" "perf" "codespeedOutput" "--bool"
155
+
156
cd "$(dirname $0)"
157
. ../../GIT-BUILD-OPTIONS
158