diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:11:09 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:11:09 +0000 |
commit | ececf5b1557dc45df52d1d1c5e7f8bc18c940301 (patch) | |
tree | efe5eb51699a6d5ba86cb91c6259d23b7eb65320 /testsuite/check.sh | |
parent | Adding debian version 0.3-1. (diff) | |
download | zutils-ececf5b1557dc45df52d1d1c5e7f8bc18c940301.tar.xz zutils-ececf5b1557dc45df52d1d1c5e7f8bc18c940301.zip |
Merging upstream version 0.4.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite/check.sh')
-rwxr-xr-x | testsuite/check.sh | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index dbbf076..7af54ac 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -10,8 +10,12 @@ export LC_ALL objdir=`pwd` testdir=`cd "$1" ; pwd` ZCAT="${objdir}"/zcat +ZCMP="${objdir}"/zcmp ZDIFF="${objdir}"/zdiff ZGREP="${objdir}"/zgrep +ZEGREP="${objdir}"/zegrep +ZFGREP="${objdir}"/zfgrep +ZUTILS="${objdir}"/zutils compressors="gzip bzip2 lzip" extensions="gz bz2 lz" framework_failure() { echo 'failure in testing framework'; exit 1; } @@ -54,11 +58,11 @@ echo -n . for i in ${extensions}; do - "${ZDIFF}" --cmp in.$i || fail=1 + "${ZCMP}" in.$i || fail=1 echo -n . - "${ZDIFF}" --cmp in in.$i || fail=1 + "${ZCMP}" in in.$i || fail=1 echo -n . - "${ZDIFF}" --cmp in.$i in || fail=1 + "${ZCMP}" in.$i in || fail=1 echo -n . done @@ -107,6 +111,17 @@ echo -n . echo -n . "${ZGREP}" License in in.gz in.bz2 in.lz -- -in- 2>&1 > /dev/null || fail=1 echo -n . +"${ZEGREP}" License in 2>&1 > /dev/null || fail=1 +echo -n . +"${ZFGREP}" License in 2>&1 > /dev/null || fail=1 +echo -n . + +if [ "gzip" != `"${ZUTILS}" -t in.gz` ]; then fail=1 ; fi +echo -n . +if [ "bzip2" != `"${ZUTILS}" -t in.bz2` ]; then fail=1 ; fi +echo -n . +if [ "lzip" != `"${ZUTILS}" -t in.lz` ]; then fail=1 ; fi +echo -n . echo |