1
0
Fork 0

Adding upstream version 1.7.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 05:56:02 +01:00
parent 3cd16fdfbc
commit 350226fc6e
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
29 changed files with 107 additions and 73 deletions

View file

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