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>
Kirill Smelkov committed
Sep 13, 2016 at 09:58 UTC
cd5c2812b6a8172a7eaef712cdfad1aaa259fb0b
1 file changed
+7
-1
t/perf/run
+7
-1
@@ -30,7 +30,13 @@ unpack_git_rev () {
30
}
31
build_git_rev () {
32
rev=$1
33
- cp ../../config.mak build/$rev/config.mak
33
+ for config in config.mak config.mak.autogen config.status
34
+ do
35
+ if test -e "../../$config"
36
+ then
37
+ cp "../../$config" "build/$rev/"
38
+ fi
39
+ done
40
(cd build/$rev && make $GIT_PERF_MAKE_OPTS) ||
41
die "failed to build revision '$mydir'"
42
}