summaryrefslogtreecommitdiff
path: root/t/perf/aggregate.perl
diff options
context:
space:
mode:
authorStephan Beyer <s-beyer@gmx.net>2015-09-25 00:31:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-25 17:44:59 (GMT)
commit31cd12837271fbf749835672a2954dcb98b0c070 (patch)
tree8cc8b400f28c6d3b5a26f21280435f3b19081ae6 /t/perf/aggregate.perl
parentee6ad5f4d56e697c972af86cbefdf269b386e470 (diff)
downloadgit-31cd12837271fbf749835672a2954dcb98b0c070.zip
git-31cd12837271fbf749835672a2954dcb98b0c070.tar.gz
git-31cd12837271fbf749835672a2954dcb98b0c070.tar.bz2
t/perf: make runner work even if Git is not installed
aggregate.perl did not work when Git.pm is not installed to a directory contained in the default Perl library path list or PERLLIB. This commit prepends the Perl library path of the current Git source tree to enable this. Note that this commit adds a hard-coded relative path use lib '../../perl/blib/lib'; instead of the flexible environment-based variant use lib (split(/:/, $ENV{GITPERLLIB})); which is used in tests written in Perl. The hard-coded variant is used because the whole performance test framework does it that way (and GITPERLLIB is not set there). Signed-off-by: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/aggregate.perl')
-rwxr-xr-xt/perf/aggregate.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl
index 15f7fc1..924b19d 100755
--- a/t/perf/aggregate.perl
+++ b/t/perf/aggregate.perl
@@ -1,5 +1,6 @@
#!/usr/bin/perl
+use lib '../../perl/blib/lib';
use strict;
use warnings;
use Git;