diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 14:03:18 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 14:03:18 +0000 |
commit | c845b66d8b17513b64acac9e74d20631a68e22b1 (patch) | |
tree | 21d33ec195507dbd025d6743a375db317f4e7f49 /testsuite | |
parent | Adding debian version 1.6~pre2-2. (diff) | |
download | lzlib-c845b66d8b17513b64acac9e74d20631a68e22b1.tar.xz lzlib-c845b66d8b17513b64acac9e74d20631a68e22b1.zip |
Merging upstream version 1.6~pre3.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/check.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 6665469..038c76d 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -14,7 +14,7 @@ BBEXAMPLE="${objdir}"/bbexample LZCHECK="${objdir}"/lzcheck framework_failure() { echo "failure in testing framework" ; exit 1 ; } -if [ ! -x "${LZIP}" ] ; then +if [ ! -f "${LZIP}" ] || [ ! -x "${LZIP}" ] ; then echo "${LZIP}: cannot execute" exit 1 fi @@ -66,13 +66,13 @@ printf . "${LZIP}" -cfq "${in_lz}" > out if [ $? = 1 ] ; then printf . ; else fail=1 ; printf - ; fi -"${LZIP}" -cF "${in_lz}" > out || fail=1 +"${LZIP}" -cF -s16 "${in_lz}" > out || fail=1 "${LZIP}" -cd out | "${LZIP}" -d > copy || fail=1 cmp in copy || fail=1 printf . -for i in s4Ki 0 1 2 3 4 5 6 7s16 8s16 9s16 ; do - "${LZIP}" -k -$i in || fail=1 +for i in s4Ki 0 1 2 3 4 5 6 7 8 9 ; do + "${LZIP}" -k -$i -s16 in || fail=1 mv -f in.lz copy.lz || fail=1 printf "garbage" >> copy.lz || fail=1 "${LZIP}" -df copy.lz || fail=1 @@ -80,35 +80,35 @@ for i in s4Ki 0 1 2 3 4 5 6 7s16 8s16 9s16 ; do done printf . -for i in s4Ki 0 1 2 3 4 5 6 7s16 8s16 9s16 ; do - "${LZIP}" -c -$i in > out || fail=1 +for i in s4Ki 0 1 2 3 4 5 6 7 8 9 ; do + "${LZIP}" -c -$i -s16 in > out || fail=1 printf "g" >> out || fail=1 "${LZIP}" -cd out > copy || fail=1 cmp in copy || fail=1 done printf . -for i in s4Ki 0 1 2 3 4 5 6 7s16 8s16 9s16 ; do - "${LZIP}" -$i < in > out || fail=1 +for i in s4Ki 0 1 2 3 4 5 6 7 8 9 ; do + "${LZIP}" -$i -s16 < in > out || fail=1 "${LZIP}" -d < out > copy || fail=1 cmp in copy || fail=1 done printf . -for i in s4Ki 0 1 2 3 4 5 6 7s16 8s16 9s16 ; do - "${LZIP}" -f -$i -o out < in || fail=1 +for i in s4Ki 0 1 2 3 4 5 6 7 8 9 ; do + "${LZIP}" -f -$i -s16 -o out < in || fail=1 "${LZIP}" -df -o copy < out.lz || fail=1 cmp in copy || fail=1 done printf . -"${LZIP}" < in > anyothername || fail=1 +"${LZIP}" -s16 < in > anyothername || fail=1 "${LZIP}" -d anyothername || fail=1 cmp in anyothername.out || fail=1 printf . cat in in > in2 || framework_failure -"${LZIP}" -o copy2 < in2 || fail=1 +"${LZIP}" -s16 -o copy2 < in2 || fail=1 "${LZIP}" -t copy2.lz || fail=1 printf . "${LZIP}" -cd copy2.lz > copy2 || fail=1 |