diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:10:22 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 16:10:22 +0000 |
commit | d0dfe799cbd65ce2e4d467f793ad1a0bf4cf4a16 (patch) | |
tree | f6ad8f3c9639fb3a8688d51239d0ccdabe33520a /testsuite | |
parent | Adding debian version 0.2-1. (diff) | |
download | zutils-d0dfe799cbd65ce2e4d467f793ad1a0bf4cf4a16.tar.xz zutils-d0dfe799cbd65ce2e4d467f793ad1a0bf4cf4a16.zip |
Merging upstream version 0.3.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/check.sh | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 5d20086..dbbf076 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -45,12 +45,25 @@ for i in ${extensions}; do echo -n . done +"${ZCAT}" in > copy || fail=1 +cmp in copy || fail=1 +echo -n . "${ZCAT}" in in.gz in.bz2 in.lz -- -in- > copy5 || fail=1 cmp in5 copy5 || fail=1 echo -n . for i in ${extensions}; do + "${ZDIFF}" --cmp in.$i || fail=1 + echo -n . + "${ZDIFF}" --cmp in in.$i || fail=1 + echo -n . + "${ZDIFF}" --cmp in.$i in || fail=1 + echo -n . +done + + +for i in ${extensions}; do "${ZDIFF}" in.$i || fail=1 echo -n . "${ZDIFF}" in in.$i || fail=1 @@ -82,26 +95,22 @@ echo -n . for i in ${extensions}; do - "${ZDIFF}" --cmp in.$i || fail=1 - echo -n . - "${ZDIFF}" --cmp in in.$i || fail=1 - echo -n . - "${ZDIFF}" --cmp in.$i in || fail=1 - echo -n . -done - - -for i in ${extensions}; do "${ZGREP}" License in.$i 2>&1 > /dev/null || fail=1 echo -n . done +"${ZGREP}" License in 2>&1 > /dev/null || fail=1 +echo -n . +"${ZGREP}" License -- -in- 2>&1 > /dev/null || fail=1 +echo -n . +"${ZGREP}" License -- -in-.lz 2>&1 > /dev/null || fail=1 +echo -n . "${ZGREP}" License in in.gz in.bz2 in.lz -- -in- 2>&1 > /dev/null || fail=1 echo -n . echo -if test ${fail} = 0; then +if [ ${fail} = 0 ]; then echo "tests completed successfully." cd "${objdir}" && rm -r tmp else |