make : added target shortest

shortest only run fast part of playTests.sh .
cc @iburinoc
This commit is contained in:
Yann Collet 2017-03-01 17:02:49 -08:00
parent c1c040eae1
commit 27526c7201
3 changed files with 10 additions and 2 deletions

View File

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

View 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

View File

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