summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to '')
-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