Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
perf/run: learn about perf.codespeedOutput
author
Christian Couder
<christian.couder@gmail.com>
Fri, 5 Jan 2018 09:12:24 +0000
(10:12 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Jan 2018 20:31:08 +0000
(12:31 -0800)
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>
t/perf/run
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
3ae7d2b
)
diff --git
a/t/perf/run
b/t/perf/run
index 214d6581727fb616cfc58994d1028fa86c2e72bb..4e62d6bb3f24f60a7d4a8c40beda86240d3cfe57 100755
(executable)
--- 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