summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 06:46:08 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 06:46:08 +0000
commite6bcf5521e9808ed9276ca1b5ee97f71bb3e549b (patch)
treed5ca55f92c9ded3e6612831f4b9fb82c33a11592 /testsuite
parentAdding debian version 0.2-3. (diff)
downloadlzd-e6bcf5521e9808ed9276ca1b5ee97f71bb3e549b.tar.xz
lzd-e6bcf5521e9808ed9276ca1b5ee97f71bb3e549b.zip
Merging upstream version 0.3.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rwxr-xr-xtestsuite/check.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh
index 5fc6d18..a701bcb 100755
--- a/testsuite/check.sh
+++ b/testsuite/check.sh
@@ -27,6 +27,15 @@ fail=0
printf "testing lzd-%s..." "$2"
+"${LZIP}" < "${in_lz}" > /dev/full 2> /dev/null
+if [ $? = 1 ] ; then printf . ; else fail=1 ; printf - ; fi
+"${LZIP}" < "${in}" 2> /dev/null
+if [ $? = 2 ] ; then printf . ; else fail=1 ; printf - ; fi
+dd if="${in_lz}" bs=1 count=6 2> /dev/null | "${LZIP}" 2> /dev/null
+if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi
+dd if="${in_lz}" bs=1 count=20 2> /dev/null | "${LZIP}" 2> /dev/null
+if [ $? = 2 ] ; then printf . ; else printf - ; fail=1 ; fi
+
"${LZIP}" < "${in_lz}" > copy || fail=1
cmp "${in}" copy || fail=1
printf .