1
0
Fork 0

Merging upstream version 0.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 04:51:50 +01:00
parent 2be8b2d082
commit df96fa16b7
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
22 changed files with 1234 additions and 125 deletions

View file

@ -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