]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
make : added target shortest
authorYann Collet <cyan@fb.com>
Thu, 2 Mar 2017 01:02:49 +0000 (17:02 -0800)
committerYann Collet <cyan@fb.com>
Thu, 2 Mar 2017 01:02:49 +0000 (17:02 -0800)
shortest only run fast part of playTests.sh .
cc @iburinoc

Makefile
tests/Makefile
tests/playTests.sh

index c73393cdd461409e61fdaa510c9ba8f50050a58f..0f97e6c5baa83804e37b2d366c8cafe3b9c5fde8 100644 (file)
--- 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:
index 30b2a04a3b621b0cb30066d1c89f445572a362f5..88c58fce4840396220f3cf33e4feb669badac0d6 100644 (file)
@@ -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
index 5933b14e6a3dc693081cb8539602a5cccded2cf5..653aaf3c8dc7c3d6833cac995efe745ff0bac0cf 100755 (executable)
@@ -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