diff options
Diffstat (limited to 'testsuite/check.sh')
-rwxr-xr-x | testsuite/check.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 83ebc6f..f871f28 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -5,9 +5,12 @@ # This script is free software: you have unlimited permission # to copy, distribute and modify it. +LC_ALL=C +export LC_ALL objdir=`pwd` testdir=`cd "$1" ; pwd` LZIP="${objdir}"/lzip +LZIPRECOVER="${objdir}"/lziprecover framework_failure() { echo 'failure in testing framework'; exit 1; } if [ ! -x "${LZIP}" ] ; then @@ -57,6 +60,15 @@ for i in 1 2 3 4 5 6 7 8 9; do echo -n . done +"${LZIP}" -c in in in > out || fail=1 +echo -n "garbage" >> out || fail=1 +"${LZIPRECOVER}" out || fail=1 +for i in 1 2 3; do + "${LZIP}" -cd rec0000${i}out > copy || fail=1 + cmp in copy || fail=1 + echo -n . +done + echo if test ${fail} = 0; then echo "tests completed successfully." |