From 4b650df10dcb0f7aa36b40f517e3ddb85b1198e4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 7 Nov 2015 08:23:06 +0100 Subject: Merging upstream version 1.6~pre2. Signed-off-by: Daniel Baumann --- testsuite/check.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'testsuite') 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." -- cgit v1.2.3