use "./gzip" for gzip tests
parent
862698f479
commit
5d848527e6
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
PRGDIR = ../../programs
|
PRGDIR = ../../programs
|
||||||
VOID = /dev/null
|
VOID = /dev/null
|
||||||
|
export PATH := .:$(PATH)
|
||||||
|
|
||||||
.PHONY: all
|
.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
|
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
|
.PHONY: zstd
|
||||||
zstd:
|
zstd:
|
||||||
$(MAKE) -C $(PRGDIR) zstd
|
$(MAKE) -C $(PRGDIR) zstd
|
||||||
#alias gzip='$(PRGDIR)/zstd --format=gzip'
|
ln -sf $(PRGDIR)/zstd gzip
|
||||||
#ln -sf /drive_d/GitHub/zstd/programs/zstd /usr/local/bin/gzip
|
@echo PATH=$(PATH)
|
||||||
gzip --version
|
gzip --version
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
@ -33,9 +33,9 @@ clean:
|
||||||
# validated only for Linux, OSX, Hurd and some BSD targets
|
# validated only for Linux, OSX, Hurd and some BSD targets
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD))
|
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-%: 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
|
endif
|
||||||
|
|
|
@ -17,7 +17,13 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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_
|
echo a >exp || framework_failure_
|
||||||
gzip <exp >in || framework_failure_
|
gzip <exp >in || framework_failure_
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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.
|
# This test case was provided by Aki Helin.
|
||||||
printf '\037\235\220\0\0\0\304' > helin.gz || framework_failure_
|
printf '\037\235\220\0\0\0\304' > helin.gz || framework_failure_
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
test "x$SHELL" = x && SHELL=/bin/sh
|
test "x$SHELL" = x && SHELL=/bin/sh
|
||||||
export SHELL
|
export SHELL
|
||||||
|
|
||||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||||
|
|
||||||
expected_failure_status_chroot=125
|
expected_failure_status_chroot=125
|
||||||
expected_failure_status_env=125
|
expected_failure_status_env=125
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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 \
|
printf '\n...: invalid compressed data--format violated\n' > exp \
|
||||||
|| framework_failure_
|
|| framework_failure_
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# limit so don't run it by default.
|
||||||
|
|
||||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||||
|
|
||||||
echo fooooooooo > in || framework_failure_
|
echo fooooooooo > in || framework_failure_
|
||||||
cp in orig || framework_failure_
|
cp in orig || framework_failure_
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# limit so don't run it by default.
|
||||||
|
|
||||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||||
|
|
||||||
echo zoology zucchini > in || framework_failure_
|
echo zoology zucchini > in || framework_failure_
|
||||||
cp in orig || framework_failure_
|
cp in orig || framework_failure_
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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
|
# The input must be larger than 32KiB and slightly
|
||||||
# less uniform than e.g., all zeros.
|
# less uniform than e.g., all zeros.
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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 'xxx\nyyy\n' > exp2 || framework_failure_
|
||||||
printf 'aaa\nbbb\nccc\n' > exp3 || 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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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_
|
printf anything | gzip > F.gz || framework_failure_
|
||||||
echo y > yes || framework_failure_
|
echo y > yes || framework_failure_
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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 a | gzip > in || framework_failure_
|
||||||
printf aaa > exp || framework_failure_
|
printf aaa > exp || framework_failure_
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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 0 | gzip; printf '\0') > 0.gz || framework_failure_
|
||||||
(echo 00 | gzip; printf '\0\0') > 00.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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# limit so don't run it by default.
|
||||||
|
|
||||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||||
|
|
||||||
for input in \
|
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' \
|
'\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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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_
|
printf anything > F && cp F G || framework_failure_
|
||||||
gzip -Sz F || fail=1
|
gzip -Sz F || fail=1
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# limit so don't run it by default.
|
||||||
|
|
||||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||||
|
|
||||||
echo a > a || framework_failure_
|
echo a > a || framework_failure_
|
||||||
echo b > b || framework_failure_
|
echo b > b || framework_failure_
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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
|
# A limited replacement for seq: handle 1 or 2 args; increment must be 1
|
||||||
seq()
|
seq()
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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_
|
printf 'needle\nn2\n' > n || framework_failure_
|
||||||
cp n haystack || framework_failure_
|
cp n haystack || framework_failure_
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# 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_
|
echo a | gzip -c > f.gz || framework_failure_
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
# limit so don't run it by default.
|
# limit so don't run it by default.
|
||||||
|
|
||||||
. "${srcdir=.}/init.sh"; path_prepend_ ..
|
. "${srcdir=.}/init.sh"; path_prepend_ .
|
||||||
|
|
||||||
cat <<'EOF' >compress || framework_failure_
|
cat <<'EOF' >compress || framework_failure_
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
Loading…
Reference in New Issue