git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git requires zip?
@ 2007-06-05 16:16 Linus Torvalds
  2007-06-05 17:21 ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Torvalds @ 2007-06-05 16:16 UTC (permalink / raw)
  To: Junio C Hamano, Git Mailing List


It really shouldn't, but "make test" seems very unhappy if the machine 
doesn't have it, and I don't see anything that disables the tests for that 
case..

		Linus

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Git requires zip?
  2007-06-05 16:16 Git requires zip? Linus Torvalds
@ 2007-06-05 17:21 ` Johannes Schindelin
  2007-06-06 18:57   ` [PATCH] t5000: skip ZIP tests if unzip was not found Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2007-06-05 17:21 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Junio C Hamano, Git Mailing List

Hi,

On Tue, 5 Jun 2007, Linus Torvalds wrote:

> It really shouldn't, but "make test" seems very unhappy if the machine 
> doesn't have it, and I don't see anything that disables the tests for 
> that case..

I seem to remember that I patched it already.

http://thread.gmane.org/gmane.comp.version-control.git/46854/focus=46899

Unfortunately, the patch was incorrect, and I forgot to do it properly. 
Will try this afternoon.

Sorry,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] t5000: skip ZIP tests if unzip was not found
  2007-06-05 17:21 ` Johannes Schindelin
@ 2007-06-06 18:57   ` Johannes Schindelin
  2007-06-09  6:31     ` [PATCH] t5000: silence unzip availability check René Scharfe
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2007-06-06 18:57 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Junio C Hamano, Git Mailing List


Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>

---

	On Tue, 5 Jun 2007, Johannes Schindelin wrote:

	> I seem to remember that I patched it already.
	> 
	> http://thread.gmane.org/gmane.comp.version-control.git/46854/focus=46899
	> 
	> Unfortunately, the patch was incorrect, and I forgot to do it 
	> properly. Will try this afternoon.

	So, took me some more time. Sorry.

 t/t5000-tar-tree.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index e223c07..5500505 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -108,6 +108,13 @@ test_expect_success \
     'git-archive --format=zip' \
     'git-archive --format=zip HEAD >d.zip'
 
+$UNZIP -v 2>/dev/null
+if [ $? -eq 127 ]; then
+	echo "Skipping ZIP tests, because unzip was not found"
+	test_done
+	exit
+fi
+
 test_expect_success \
     'extract ZIP archive' \
     '(mkdir d && cd d && $UNZIP ../d.zip)'

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] t5000: silence unzip availability check
  2007-06-06 18:57   ` [PATCH] t5000: skip ZIP tests if unzip was not found Johannes Schindelin
@ 2007-06-09  6:31     ` René Scharfe
  2007-06-09 14:37       ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: René Scharfe @ 2007-06-09  6:31 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Johannes Schindelin, Git Mailing List

unzip -v on (at least) Ubuntu prints a screenful of version info
to stdout.  Get rid of it since we only want to know if unzip is
installed or not.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index 5500505..a6c5bf6 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -108,7 +108,7 @@ test_expect_success \
     'git-archive --format=zip' \
     'git-archive --format=zip HEAD >d.zip'
 
-$UNZIP -v 2>/dev/null
+$UNZIP -v >/dev/null 2>&1
 if [ $? -eq 127 ]; then
 	echo "Skipping ZIP tests, because unzip was not found"
 	test_done

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] t5000: silence unzip availability check
  2007-06-09  6:31     ` [PATCH] t5000: silence unzip availability check René Scharfe
@ 2007-06-09 14:37       ` Johannes Schindelin
  0 siblings, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2007-06-09 14:37 UTC (permalink / raw)
  To: René Scharfe; +Cc: Junio C Hamano, Git Mailing List

[-- Attachment #1: Type: TEXT/PLAIN, Size: 237 bytes --]

Hi,

On Sat, 9 Jun 2007, René Scharfe wrote:

> unzip -v on (at least) Ubuntu prints a screenful of version info
> to stdout.  Get rid of it since we only want to know if unzip is
> installed or not.

Makes sense, absolutely.

ACK,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-09 14:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05 16:16 Git requires zip? Linus Torvalds
2007-06-05 17:21 ` Johannes Schindelin
2007-06-06 18:57   ` [PATCH] t5000: skip ZIP tests if unzip was not found Johannes Schindelin
2007-06-09  6:31     ` [PATCH] t5000: silence unzip availability check René Scharfe
2007-06-09 14:37       ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).