提交 cd5c2812 编写于 作者: K Kirill Smelkov 提交者: Junio C Hamano

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: NKirill Smelkov <kirr@nexedi.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 49981d8a
......@@ -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'"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册