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

Re: [PATCH] t960[34]: mark cvsimport tests as requiring perl

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 18, 2014, 18:56 UTC
Message-ID
<20141118185622.GG6527@google.com>
In-Reply-To
<20141118172932.GA31672@peff.net>
Jeff King wrote:
> It would probably make sense to have these scripts just
> skip_all if NO_PERL is set, but I opted to follow the pattern
> set by t9600, etc. If somebody feels like spending time refactoring the
> cvsimport test harness, be my guest.

Wouldn't it be a matter of the following, plus (optionally) dropping the existing PERL prerequisites on cvs tests?

-- >8 --
Subject: test: cvsimport requires perl

Git-cvsimport is written in perl, which understandably causes the tests to fail if you build with NO_PERL (which will avoid building cvsimport at all). The earlier cvsimport tests in t9600-t9602 are all marked with a PERL prerequisite, but t9603 and 9604 are not.

The one in t9603 was likely not noticed because it is an expected failure.

The ones in t9604 have been around for a long time, but it is likely that the combination of NO_PERL and having cvsps installed is rare enough that nobody noticed.

Reported-by: Jeff King <peff@peff.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 t/lib-cvs.sh | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/t/lib-cvs.sh b/t/lib-cvs.sh
index 9b2bcfb..b75df11 100644
--- a/t/lib-cvs.sh
+++ b/t/lib-cvs.sh
@@ -10,6 +10,12 @@ then
 	test_done
 fi
 
+if ! test_have_prereq PERL
+then
+	skip_all='skipping cvsimport tests, perl not available'
+	test_done
+fi
+
 CVS="cvs -f"
 export CVS
 
-- 
2.1.0.rc2.206.gedb03e5
Previous: Jeff KingNext: Jeff King
Message 3 of 11 in “t0090: mark add-interactive test with PERL prerequisite”
  1. t0090: mark add-interactive test with PERL prerequisiteJeff King, Nov 18, 2014
  2. t960[34]: mark cvsimport tests as requiring perlJeff King, Nov 18, 2014
  3. Jonathan NiederNov 18, 2014
  4. Jeff KingNov 18, 2014
  5. Jeff KingNov 18, 2014
  6. Jonathan NiederNov 18, 2014
  7. Jonathan NiederNov 18, 2014
  8. Jeff KingNov 18, 2014
  9. Pete WyckoffNov 18, 2014
  10. Jeff KingNov 18, 2014
  11. Jonathan NiederNov 18, 2014

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.