summaryrefslogtreecommitdiffstats
path: root/testsuite/check.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 13:36:16 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 13:36:16 +0000
commit7f65a94fb97b0aa9a6e630a59c256ad1d7ed295f (patch)
tree39c5cd80552bfafcc226b7390cd1d7bd187c8b34 /testsuite/check.sh
parentAdding upstream version 0.5. (diff)
downloadlzlib-7f65a94fb97b0aa9a6e630a59c256ad1d7ed295f.tar.xz
lzlib-7f65a94fb97b0aa9a6e630a59c256ad1d7ed295f.zip
Adding upstream version 0.6.upstream/0.6
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite/check.sh')
-rwxr-xr-xtestsuite/check.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh
index 2ce2ca5..7b67c93 100755
--- a/testsuite/check.sh
+++ b/testsuite/check.sh
@@ -10,6 +10,7 @@ export LC_ALL
objdir=`pwd`
testdir=`cd "$1" ; pwd`
LZIP="${objdir}"/minilzip
+LZCHECK="${objdir}"/lzcheck
framework_failure() { echo 'failure in testing framework'; exit 1; }
if [ ! -x "${LZIP}" ] ; then
@@ -59,10 +60,13 @@ for i in s4096 1 2 3 4 5 6 7 8 9; do
echo -n .
done
+"${LZCHECK}" in || fail=1
+echo -n .
+
echo
-if test ${fail} = 0; then
+if [ ${fail} = 0 ]; then
echo "tests completed successfully."
- if cd "${objdir}" ; then rm -r tmp ; fi
+ cd "${objdir}" && rm -r tmp
else
echo "tests failed."
fi