automake-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: check if 'compress' is real of fake


From: Peter Rosin
Subject: Re: [PATCH] tests: check if 'compress' is real of fake
Date: Wed, 08 Feb 2012 22:28:19 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

Peter Rosin skrev 2012-02-08 22:24:
> On Cygwin, 'compress' is provided by sharutils and is just a
> dummy script that is not able to actually compress (it can
> only decompress).  This fake 'compress' is not usable for
> our purpose - to create compressed tarballs.
> 
> * tests/dist-formats.tap (missing_compressors): Count 'compress'
> as missing if it does not support the -c option.
> ---
>  tests/dist-formats.tap |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/tests/dist-formats.tap b/tests/dist-formats.tap
> index dd9d896..629d615 100755
> --- a/tests/dist-formats.tap
> +++ b/tests/dist-formats.tap
> @@ -78,7 +78,11 @@ echo All compressors: $all_compressors
>  # Assume gzip(1) is available on every reasonable portability target.
>  missing_compressors=`
>    for c in $all_compressors; do
> -    test $c = gzip || $c --version </dev/null >&2 && continue
> +    case $c in
> +      gzip)     continue;;
> +      compress) $c -c </dev/null >/dev/null && continue;;
> +      *)        $c --version </dev/null >&2 && continue;;
> +    esac
>      echo $c
>    done | tr "$nl" ' '`
>  echo Missing compressors: $missing_compressors

Oh, forgot to mention, I have not tested this on something that has
a real compress.

Cheers,
Peter



reply via email to

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