summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 16:11:33 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 16:11:33 +0000
commitc42849a7b68c88838fec7706084b71dde4a71506 (patch)
tree76c766fba09ab45c181515f8deb13c68381e335c /testsuite
parentAdding upstream version 0.4. (diff)
downloadzutils-c42849a7b68c88838fec7706084b71dde4a71506.tar.xz
zutils-c42849a7b68c88838fec7706084b71dde4a71506.zip
Adding upstream version 0.5.upstream/0.5
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
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