summaryrefslogtreecommitdiff
path: root/t/perf/run
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2017-09-23 19:55:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-24 07:58:34 (GMT)
commit91c4339e1921f3db1aec19ec10c01604bf2c00f7 (patch)
treef25f175bfa6a809b4f5fe56dc9359fb1a595a18a /t/perf/run
parente6b71539dedc13a5737ab97cf54b9f41f94cac24 (diff)
downloadgit-91c4339e1921f3db1aec19ec10c01604bf2c00f7.zip
git-91c4339e1921f3db1aec19ec10c01604bf2c00f7.tar.gz
git-91c4339e1921f3db1aec19ec10c01604bf2c00f7.tar.bz2
perf/run: add GIT_PERF_DIRS_OR_REVS
This environment variable can be set to some revisions or directories whose Git versions should be tested, in addition to the revisions or directories passed as arguments to the 'run' script. This enables a "perf.dirsOrRevs" configuration variable to be used to set revisions or directories whose Git versions should be tested. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/run')
-rwxr-xr-xt/perf/run3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/perf/run b/t/perf/run
index 41580ac..ad442fe 100755
--- a/t/perf/run
+++ b/t/perf/run
@@ -113,6 +113,9 @@ get_var_from_env_or_config () {
get_var_from_env_or_config "GIT_PERF_REPEAT_COUNT" "perf.repeatCount" 3
export GIT_PERF_REPEAT_COUNT
+get_var_from_env_or_config "GIT_PERF_DIRS_OR_REVS" "perf.dirsOrRevs"
+set -- $GIT_PERF_DIRS_OR_REVS "$@"
+
GIT_PERF_AGGREGATING_LATER=t
export GIT_PERF_AGGREGATING_LATER