git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] t/perf: make runner work even if Git is not installed

From
Stephan Beyer <s-beyer@gmx.net>
Date
Sep 25, 2015, 00:31 UTC
Message-ID
<1443141097-4615-1-git-send-email-s-beyer@gmx.net>

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>
---
 t/perf/aggregate.perl | 1 +
 1 file changed, 1 insertion(+)
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;
-- 
2.6.0.rc3.dirty
Message 1 of 1 in “t/perf: make runner work even if Git is not installed”
  1. t/perf: make runner work even if Git is not installedStephan Beyer, Sep 25, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.