perf: fix when running with TEST_OUTPUT_DIRECTORY
commit3663e5904d7c0060f3b51ffe7c7469caeefb51e5
authorPatrick Steinhardt <ps@pks.im>
Fri, 18 Jun 2021 13:56:08 +0000 (18 15:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Jul 2021 22:47:30 +0000 (2 15:47 -0700)
tree89239b6b05e3615aee73de525e8e4b09cf602195
parent670b81a890388c60b7032a4f5b879f2ece8c4558
perf: fix when running with TEST_OUTPUT_DIRECTORY

When the TEST_OUTPUT_DIRECTORY is defined, then all test data will be
written in that directory instead of the default directory located in
"t/". While this works as expected for our normal tests, performance
tests fail to locate and aggregate performance data because they don't
know to handle TEST_OUTPUT_DIRECTORY correctly and always look at the
default location.

Fix the issue by adding a `--results-dir` parameter to "aggregate.perl"
which identifies the directory where results are and by making the "run"
script awake of the TEST_OUTPUT_DIRECTORY variable.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/aggregate.perl
t/perf/perf-lib.sh
t/perf/run