summaryrefslogtreecommitdiffstats
path: root/testsuite/check.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:10:42 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:10:42 +0000
commite2f36dd00ba51cd2e5c1793bfd5327c5d4aba142 (patch)
treecf7e6fe72f0d01c3f0a275ab3e0aafd266c9dc7e /testsuite/check.sh
parentAdding debian version 0.1-1. (diff)
downloadplzip-e2f36dd00ba51cd2e5c1793bfd5327c5d4aba142.tar.xz
plzip-e2f36dd00ba51cd2e5c1793bfd5327c5d4aba142.zip
Merging upstream version 0.2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite/check.sh')
-rwxr-xr-xtestsuite/check.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh
index 8a2ecd0..409e563 100755
--- a/testsuite/check.sh
+++ b/testsuite/check.sh
@@ -1,6 +1,6 @@
#! /bin/sh
# check script for Plzip - A parallel version of the lzip data compressor
-# Copyright (C) 2009 Antonio Diaz Diaz.
+# Copyright (C) 2009, 2010 Antonio Diaz Diaz.
#
# This script is free software: you have unlimited permission
# to copy, distribute and modify it.
@@ -22,10 +22,11 @@ mkdir tmp
echo -n "testing plzip..."
cd "${objdir}"/tmp
-cat "${testdir}"/../COPYING > in || framework_failure
+cat "${testdir}"/test1 > in || framework_failure
+cat in in in in in > in5 || 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; do
@@ -46,7 +47,7 @@ for i in s4096 1 2 3 4 5 6 7 8; do
done
for i in s4096 1 2 3 4 5 6 7 8; 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 .
@@ -59,6 +60,13 @@ for i in s4096 1 2 3 4 5 6 7 8; do
echo -n .
done
+for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; do
+ "${LZIP}" -s4096 -n$i < in5 > out5 || fail=1
+ "${LZIP}" -d < out5 > copy5 || fail=1
+ cmp in5 copy5 || fail=1
+ echo -n .
+done
+
echo
if [ ${fail} = 0 ] ; then
echo "tests completed successfully."