diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 06:46:02 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 06:46:02 +0000 |
commit | def42230e27ddcb133e6778eefa2300cdbf3e95b (patch) | |
tree | e2ccc298cfa0f06b5adc5f05dd8872b33905b26d /testsuite/check.sh | |
parent | Adding upstream version 0.2. (diff) | |
download | lzd-def42230e27ddcb133e6778eefa2300cdbf3e95b.tar.xz lzd-def42230e27ddcb133e6778eefa2300cdbf3e95b.zip |
Adding upstream version 0.3.upstream/0.3
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rwxr-xr-x | testsuite/check.sh | 9 |
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 . |