summaryrefslogtreecommitdiff
path: root/t/perf/run
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@nexedi.com>2016-09-13 06:58:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-15 20:41:11 (GMT)
commitcd5c2812b6a8172a7eaef712cdfad1aaa259fb0b (patch)
treec68945f84b85ec203451376a15ba30943facdba2 /t/perf/run
parent49981d8a250837019b4a14f44d471fc6ff7e334f (diff)
downloadgit-cd5c2812b6a8172a7eaef712cdfad1aaa259fb0b.zip
git-cd5c2812b6a8172a7eaef712cdfad1aaa259fb0b.tar.gz
git-cd5c2812b6a8172a7eaef712cdfad1aaa259fb0b.tar.bz2
t/perf/run: copy config.mak.autogen & friends to build area
Otherwise for people who use autotools-based configure in main worktree, the performance testing results will be inconsistent as work and build trees could be using e.g. different optimization levels. See e.g. http://public-inbox.org/git/20160818175222.bmm3ivjheokf2qzl@sigill.intra.peff.net/ for example. NOTE config.status has to be copied because otherwise without it the build would want to run reconfigure this way loosing just copied config.mak.autogen. Signed-off-by: Kirill Smelkov <kirr@nexedi.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/run')
-rwxr-xr-xt/perf/run8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/perf/run b/t/perf/run
index cfd7012..e8adeda 100755
--- a/t/perf/run
+++ b/t/perf/run
@@ -30,7 +30,13 @@ unpack_git_rev () {
}
build_git_rev () {
rev=$1
- cp ../../config.mak build/$rev/config.mak
+ for config in config.mak config.mak.autogen config.status
+ do
+ if test -e "../../$config"
+ then
+ cp "../../$config" "build/$rev/"
+ fi
+ done
(cd build/$rev && make $GIT_PERF_MAKE_OPTS) ||
die "failed to build revision '$mydir'"
}