summaryrefslogtreecommitdiff
path: root/t/dist-formats.tap
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-08-05 10:32:15 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-08-05 10:50:31 +0200
commit9158d39d524ab4c10aa41dbed1fc5b6a3b54188a (patch)
tree1bfd161817364d8cca74034ff791289ef8c52f76 /t/dist-formats.tap
parent70b503ae955f36fd0e0b960940933b92e98ea94c (diff)
downloadautomake-9158d39d524ab4c10aa41dbed1fc5b6a3b54188a.tar.gz
tests: cater to OpenSolaris 'zip'
* 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 <stefano.lattarini@gmail.com>
Diffstat (limited to 't/dist-formats.tap')
-rwxr-xr-xt/dist-formats.tap8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/dist-formats.tap b/t/dist-formats.tap
index 85021d38c..893aa554d 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).