diff options
Diffstat (limited to 'testsuite/check.sh')
-rwxr-xr-x | testsuite/check.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh index 3986d71..a1ea5da 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-2017 Antonio Diaz Diaz. +# Copyright (C) 2009-2018 Antonio Diaz Diaz. # # This script is free software: you have unlimited permission # to copy, distribute and modify it. @@ -41,6 +41,8 @@ cd "${objdir}"/tmp || framework_failure for i in ${compressors}; do cat "${testdir}"/test.txt > in || framework_failure $i in || compressor_needed + printf "Hello World!\n" > hello || framework_failure + $i hello || compressor_needed done cat "${testdir}"/test.txt > in || framework_failure @@ -234,6 +236,10 @@ printf "\ntesting zgrep-%s..." "$2" for i in ${extensions}; do "${ZGREP}" -N "GNU" in.$i > /dev/null || test_failed $LINENO $i + "${ZGREP}" -N "GNU" in.$i hello.$i > /dev/null || test_failed $LINENO $i + "${ZGREP}" -N "GNU" hello.$i in.$i > /dev/null || test_failed $LINENO $i + "${ZGREP}" -N -q "GNU" in.$i hello.$i || test_failed $LINENO $i + "${ZGREP}" -N -q "GNU" hello.$i in.$i || test_failed $LINENO $i "${ZGREP}" -N "GNU" < in.$i > /dev/null || test_failed $LINENO $i "${ZGREP}" -N -l "GNU" in.$i > /dev/null || test_failed $LINENO $i "${ZGREP}" -N -L "GNU" in.$i || test_failed $LINENO $i |