From: Yann Collet Date: Thu, 2 Mar 2017 01:02:49 +0000 (-0800) Subject: make : added target shortest X-Git-Tag: v1.1.4~1^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27526c7201bc4cf1b5ad66ad746e20671cab3ae1;p=thirdparty%2Fzstd.git make : added target shortest shortest only run fast part of playTests.sh . cc @iburinoc --- diff --git a/Makefile b/Makefile index c73393cdd..0f97e6c5b 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,10 @@ zstdmt: zlibwrapper: $(MAKE) -C $(ZWRAPDIR) test +.PHONY: shortest +shortest: + $(MAKE) -C $(TESTDIR) $@ + .PHONY: test test: $(MAKE) -C $(TESTDIR) $@ @@ -173,7 +177,7 @@ ppcinstall: arminstall: APT_PACKAGES="qemu-system-arm qemu-user-static gcc-powerpc-linux-gnu gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross" $(MAKE) apt-install -valgrindinstall: +valgrindinstall: APT_PACKAGES="valgrind" $(MAKE) apt-install libc6install: diff --git a/tests/Makefile b/tests/Makefile index 30b2a04a3..88c58fce4 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -253,6 +253,9 @@ zstd-playTests: datagen file $(ZSTD) ZSTD="$(QEMU_SYS) $(ZSTD)" ./playTests.sh $(ZSTDRTTEST) +shortest: ZSTDRTTEST= +shortest: test-zstd + test: test-zstd test-fullbench test-fuzzer test-zstream test-invalidDictionaries test-legacy test-decodecorpus ifeq ($(QEMU_SYS),) test: test-pool diff --git a/tests/playTests.sh b/tests/playTests.sh index 5933b14e6..653aaf3c8 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -316,8 +316,9 @@ $ECHO "\n**** gzip compatibility tests **** " GZIPMODE=1 $ZSTD --format=gzip -V || GZIPMODE=0 if [ $GZIPMODE -eq 1 ]; then + $ECHO "gzip support detected" GZIPEXE=1 - which gzip || GZIPEXE=0 + gzip -V || GZIPEXE=0 if [ $GZIPEXE -eq 1 ]; then ./datagen > tmp $ZSTD --format=gzip -f tmp