diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 07:48:29 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 07:48:29 +0000 |
commit | 5fee2f90f3d2bde22239938ee0ec6c381b1ad91f (patch) | |
tree | 5f818a82f05cd87820abe14084090d803837c64d /testsuite/check.sh | |
parent | Adding debian version 1.8-1. (diff) | |
download | lzip-5fee2f90f3d2bde22239938ee0ec6c381b1ad91f.tar.xz lzip-5fee2f90f3d2bde22239938ee0ec6c381b1ad91f.zip |
Merging upstream version 1.9.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite/check.sh')
-rwxr-xr-x | testsuite/check.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 3ac3604..ec61c89 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -1,6 +1,6 @@ #! /bin/sh # check script for Lzip - A data compressor based on the LZMA algorithm -# Copyright (C) 2008, 2009 Antonio Diaz Diaz. +# Copyright (C) 2008, 2009, 2010 Antonio Diaz Diaz. # # This script is free software: you have unlimited permission # to copy, distribute and modify it. @@ -18,15 +18,15 @@ if [ ! -x "${LZIP}" ] ; 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 lzip..." cd "${objdir}"/tmp -cat "${testdir}"/../COPYING > in || framework_failure +cat "${testdir}"/test1 > in || framework_failure fail=0 -"${LZIP}" -cd "${testdir}"/COPYING.lz > copy || fail=1 +"${LZIP}" -cd "${testdir}"/test1.lz > copy || fail=1 cmp in copy || fail=1 for i in s4096 1 2 3 4 5 6 7 8 9; do @@ -47,7 +47,7 @@ for i in s4096 1 2 3 4 5 6 7 8 9; do done for i in s4096 1 2 3 4 5 6 7 8 9; do - "${LZIP}" -c -$i < in > out || fail=1 + "${LZIP}" -$i < in > out || fail=1 "${LZIP}" -d < out > copy || fail=1 cmp in copy || fail=1 echo -n . @@ -70,7 +70,7 @@ for i in 1 2 3; do done echo -if [ ${fail} = 0 ]; then +if [ ${fail} = 0 ] ; then echo "tests completed successfully." cd "${objdir}" && rm -r tmp else |