use "./gzip" for gzip tests
parent
862698f479
commit
5d848527e6
|
@ -9,7 +9,7 @@
|
|||
|
||||
PRGDIR = ../../programs
|
||||
VOID = /dev/null
|
||||
|
||||
export PATH := .:$(PATH)
|
||||
|
||||
.PHONY: all
|
||||
all: test-gzip-env test-helin-segv test-hufts test-keep test-list test-memcpy-abuse test-mixed test-null-suffix-clobber test-stdin test-trailing-nul test-unpack-invalid test-zdiff test-zgrep-context test-zgrep-f test-zgrep-signal test-znew-k test-z-suffix
|
||||
|
@ -18,8 +18,8 @@ all: test-gzip-env test-helin-segv test-hufts test-keep test-list test-memcpy-ab
|
|||
.PHONY: zstd
|
||||
zstd:
|
||||
$(MAKE) -C $(PRGDIR) zstd
|
||||
#alias gzip='$(PRGDIR)/zstd --format=gzip'
|
||||
#ln -sf /drive_d/GitHub/zstd/programs/zstd /usr/local/bin/gzip
|
||||
ln -sf $(PRGDIR)/zstd gzip
|
||||
@echo PATH=$(PATH)
|
||||
gzip --version
|
||||
|
||||
.PHONY: clean
|
||||
|
@ -33,9 +33,9 @@ clean:
|
|||
# validated only for Linux, OSX, Hurd and some BSD targets
|
||||
#------------------------------------------------------------------------------
|
||||
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD))
|
||||
#.PHONY: test-gzip-env test-helin-segv test-hufts test-keep test-list test-memcpy-abuse test-mixed test-null-suffix-clobber test-stdin test-trailing-nul test-unpack-invalid test-zdiff test-zgrep-context test-zgrep-f test-zgrep-signal test-znew-k test-z-suffix
|
||||
|
||||
test-%: zstd
|
||||
@./test-driver.sh --test-name $* --log-file $*.log --trs-file $*.trs --expect-failure "no" --color-tests "yes" --enable-hard-errors "yes" ./$*.sh
|
||||
@./test-driver.sh --test-name $* --log-file $*.log --trs-file $*.trs --expect-failure "no" --color-tests "yes" --enable-hard-errors "yes" ./$*.sh
|
||||
# || echo ignoring error
|
||||
|
||||
endif
|
||||
|
|
|
@ -17,7 +17,13 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
echo XXX=$PATH
|
||||
gzip --version
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
echo XXX=$PATH
|
||||
gzip --version
|
||||
|
||||
echo a >exp || framework_failure_
|
||||
gzip <exp >in || framework_failure_
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
# This test case was provided by Aki Helin.
|
||||
printf '\037\235\220\0\0\0\304' > helin.gz || framework_failure_
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
test "x$SHELL" = x && SHELL=/bin/sh
|
||||
export SHELL
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
expected_failure_status_chroot=125
|
||||
expected_failure_status_env=125
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
printf '\n...: invalid compressed data--format violated\n' > exp \
|
||||
|| framework_failure_
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
echo fooooooooo > in || framework_failure_
|
||||
cp in orig || framework_failure_
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
echo zoology zucchini > in || framework_failure_
|
||||
cp in orig || framework_failure_
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
# The input must be larger than 32KiB and slightly
|
||||
# less uniform than e.g., all zeros.
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
printf 'xxx\nyyy\n' > exp2 || framework_failure_
|
||||
printf 'aaa\nbbb\nccc\n' > exp3 || framework_failure_
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
printf anything | gzip > F.gz || framework_failure_
|
||||
echo y > yes || framework_failure_
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
printf a | gzip > in || framework_failure_
|
||||
printf aaa > exp || framework_failure_
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
(echo 0 | gzip; printf '\0') > 0.gz || framework_failure_
|
||||
(echo 00 | gzip; printf '\0\0') > 00.gz || framework_failure_
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
for input in \
|
||||
'\037\036\000\000\037\213\010\000\000\000\000\000\002\003\036\000\000\000\002\003\037\213\010\000\000\000\000\000\002\003\355\301\001\015\000\000\000\302\240\037\000\302\240\037\213\010\000\000\000\000\000\002\003\355\301' \
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
printf anything > F && cp F G || framework_failure_
|
||||
gzip -Sz F || fail=1
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
echo a > a || framework_failure_
|
||||
echo b > b || framework_failure_
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
# A limited replacement for seq: handle 1 or 2 args; increment must be 1
|
||||
seq()
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
printf 'needle\nn2\n' > n || framework_failure_
|
||||
cp n haystack || framework_failure_
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
echo a | gzip -c > f.gz || framework_failure_
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# limit so don't run it by default.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||
|
||||
cat <<'EOF' >compress || framework_failure_
|
||||
#!/bin/sh
|
||||
|
|
Loading…
Reference in New Issue