automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {maint} tests: cater to OpenSolaris 'zip'


From: Stefano Lattarini
Subject: [FYI] {maint} tests: cater to OpenSolaris 'zip'
Date: Sun, 5 Aug 2012 10:52:51 +0200

* t/dist-formats.tap: Here: OpenSolaris zip do not accept the
'--version' option, but accept the '-v' one with a similar
meaning (if no further arguments are given).

Signed-off-by: Stefano Lattarini <address@hidden>
---
 t/dist-formats.tap | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/t/dist-formats.tap b/t/dist-formats.tap
index 85021d3..893aa55 100755
--- a/t/dist-formats.tap
+++ b/t/dist-formats.tap
@@ -93,7 +93,13 @@ have_compressor ()
         # compress stdin.  This would cause binary output in the test
         # logs, with potential breakage of our testsuite harness.
         bzip2) o=--help;;
-            *) o=--version;;
+        # OpenSolaris zip do not support the '--version' option, but
+        # accepts the '-v' one with a similar meaning (if no further
+        # arguments are given).
+        zip) o=-v;;
+        # Assume the other compressors we care about support the
+        # '--version' option.
+        *) o=--version;;
       esac
       # Redirect to stderr to avoid polluting the output, in case this
       # function is used in a command substitution (as it is, below).
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]