diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-03 11:13:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-03 11:13:22 +0000 |
commit | 7ad294387df656cf31b2ad699012fc7c9b71d416 (patch) | |
tree | 0c9496286128b91ad40d65570954491777baf3e4 /testsuite | |
parent | Adding upstream version 1.10. (diff) | |
download | zutils-upstream/1.11.tar.xz zutils-upstream/1.11.zip |
Adding upstream version 1.11.upstream/1.11
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/check.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 6a6ef38..b97abd7 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -1,6 +1,6 @@ #! /bin/sh # check script for Zutils - Utilities dealing with compressed files -# Copyright (C) 2009-2021 Antonio Diaz Diaz. +# Copyright (C) 2009-2022 Antonio Diaz Diaz. # # This script is free software: you have unlimited permission # to copy, distribute, and modify it. @@ -194,8 +194,7 @@ done "${ZCMP}" -Nq --force-format=lz in.lz [ $? = 2 ] || test_failed $LINENO "${ZCMP}" -Nq --force-format=lz in.gz in.lz -r=$? -{ [ $r = 1 ] || [ $r = 2 ] ; } || test_failed $LINENO +[ $? = 2 ] || test_failed $LINENO "${ZCMP}" -Nq -i 100BB in in [ $? = 2 ] || test_failed $LINENO "${ZCMP}" -Nq -i 100BB:100 in in @@ -206,6 +205,8 @@ r=$? [ $? = 2 ] || test_failed $LINENO "${ZCMP}" -N -q -n 100BB in in [ $? = 2 ] || test_failed $LINENO +"${ZCMP}" -Nq --gz=bad-gzip in.gz in.lz +[ $? = 2 ] || test_failed $LINENO "${ZCMP}" -N --bad-option in in 2> /dev/null [ $? = 2 ] || test_failed $LINENO @@ -255,11 +256,12 @@ done [ $? = 2 ] || test_failed $LINENO "${ZDIFF}" -N --bz2='-bzip2' in.bz2 2> /dev/null [ $? = 2 ] || test_failed $LINENO -"${ZDIFF}" -Nq --force-format=bz2 in.bz2 2> /dev/null +"${ZDIFF}" -N --brief --force-format=bz2 in.bz2 2> /dev/null +[ $? = 2 ] || test_failed $LINENO +"${ZDIFF}" -N --brief --force-format=,lz in.lz in.bz2 > /dev/null 2>&1 +[ $? = 2 ] || test_failed $LINENO +"${ZDIFF}" -N --brief --gz=bad-gzip in.gz in.lz > /dev/null 2>&1 [ $? = 2 ] || test_failed $LINENO -"${ZDIFF}" -N -q --force-format=,lz in.lz in.bz2 > /dev/null 2>&1 -r=$? -{ [ $r = 1 ] || [ $r = 2 ] ; } || test_failed $LINENO "${ZDIFF}" -N --bad-option 2> /dev/null [ $? = 2 ] || test_failed $LINENO |