diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:11:40 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:11:40 +0000 |
commit | 1d1dc8b97e1cc23b97c1a8053020ce61a0cd1e84 (patch) | |
tree | d8f3bdaa398a4228bda811cc30525e16d29987f2 /testsuite | |
parent | Adding debian version 0.4-1. (diff) | |
download | zutils-1d1dc8b97e1cc23b97c1a8053020ce61a0cd1e84.tar.xz zutils-1d1dc8b97e1cc23b97c1a8053020ce61a0cd1e84.zip |
Merging upstream version 0.5.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/check.sh | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 7af54ac..a8843f3 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -25,7 +25,7 @@ if [ ! -x "${ZCAT}" ] ; then exit 1 fi -if [ -d tmp ] ; then rm -r tmp ; fi +if [ -d tmp ] ; then rm -rf tmp ; fi mkdir tmp echo -n "testing zutils..." cd "${objdir}"/tmp @@ -49,6 +49,21 @@ for i in ${extensions}; do echo -n . done +"${ZCAT}" < in > copy || fail=1 +cmp in copy || fail=1 +echo -n . +"${ZCAT}" < in.gz > copy || fail=1 +cmp in copy || fail=1 +echo -n . +"${ZCAT}" --gzip < in.gz > copy || fail=1 +cmp in copy || fail=1 +echo -n . +"${ZCAT}" --bzip2 < in.bz2 > copy || fail=1 +cmp in copy || fail=1 +echo -n . +"${ZCAT}" --lzip < in.lz > copy || fail=1 +cmp in copy || fail=1 +echo -n . "${ZCAT}" in > copy || fail=1 cmp in copy || fail=1 echo -n . @@ -103,6 +118,16 @@ for i in ${extensions}; do echo -n . done +"${ZGREP}" License < in 2>&1 > /dev/null || fail=1 +echo -n . +"${ZGREP}" License < in.gz 2>&1 > /dev/null || fail=1 +echo -n . +"${ZGREP}" --gzip License < in.gz 2>&1 > /dev/null || fail=1 +echo -n . +"${ZGREP}" --bzip2 License < in.bz2 2>&1 > /dev/null || fail=1 +echo -n . +"${ZGREP}" --lzip License < in.lz 2>&1 > /dev/null || fail=1 +echo -n . "${ZGREP}" License in 2>&1 > /dev/null || fail=1 echo -n . "${ZGREP}" License -- -in- 2>&1 > /dev/null || fail=1 |