summaryrefslogtreecommitdiffstats
path: root/testsuite/check.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 16:11:40 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 16:11:40 +0000
commit1d1dc8b97e1cc23b97c1a8053020ce61a0cd1e84 (patch)
treed8f3bdaa398a4228bda811cc30525e16d29987f2 /testsuite/check.sh
parentAdding debian version 0.4-1. (diff)
downloadzutils-1d1dc8b97e1cc23b97c1a8053020ce61a0cd1e84.tar.xz
zutils-1d1dc8b97e1cc23b97c1a8053020ce61a0cd1e84.zip
Merging upstream version 0.5.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite/check.sh')
-rwxr-xr-xtestsuite/check.sh27
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