1
0
Fork 0

Merging upstream version 0.5.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 04:57:31 +01:00
parent eba0c7677b
commit 5aa2d8a6cd
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
12 changed files with 158 additions and 36 deletions

View file

@ -25,7 +25,7 @@ if [ ! -x "${ZCAT}" ] ; then
exit 1
fi
if [ -d tmp ] ; then rm -r tmp ; fi
if [ -d tmp ] ; then rm -rf tmp ; fi
mkdir tmp
echo -n "testing zutils..."
cd "${objdir}"/tmp
@ -49,6 +49,21 @@ for i in ${extensions}; do
echo -n .
done
"${ZCAT}" < in > copy || fail=1
cmp in copy || fail=1
echo -n .
"${ZCAT}" < in.gz > copy || fail=1
cmp in copy || fail=1
echo -n .
"${ZCAT}" --gzip < in.gz > copy || fail=1
cmp in copy || fail=1
echo -n .
"${ZCAT}" --bzip2 < in.bz2 > copy || fail=1
cmp in copy || fail=1
echo -n .
"${ZCAT}" --lzip < in.lz > copy || fail=1
cmp in copy || fail=1
echo -n .
"${ZCAT}" in > copy || fail=1
cmp in copy || fail=1
echo -n .
@ -103,6 +118,16 @@ for i in ${extensions}; do
echo -n .
done
"${ZGREP}" License < in 2>&1 > /dev/null || fail=1
echo -n .
"${ZGREP}" License < in.gz 2>&1 > /dev/null || fail=1
echo -n .
"${ZGREP}" --gzip License < in.gz 2>&1 > /dev/null || fail=1
echo -n .
"${ZGREP}" --bzip2 License < in.bz2 2>&1 > /dev/null || fail=1
echo -n .
"${ZGREP}" --lzip License < in.lz 2>&1 > /dev/null || fail=1
echo -n .
"${ZGREP}" License in 2>&1 > /dev/null || fail=1
echo -n .
"${ZGREP}" License -- -in- 2>&1 > /dev/null || fail=1