]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
updated scripts +x permissions
authorinikep <inikep@gmail.com>
Thu, 18 Aug 2016 12:04:57 +0000 (14:04 +0200)
committerinikep <inikep@gmail.com>
Thu, 18 Aug 2016 12:04:57 +0000 (14:04 +0200)
tests/Makefile
tests/playTests.sh [changed mode: 0644->0755]

index e0689ce672ec1f4f0022e50524120dd0d62a1e57..a8fb97c21816ff9354e5d8497d2116eb5ea1b9d4 100644 (file)
@@ -28,6 +28,7 @@
 # zbufftest32: Same as zbufftest, but forced to compile in 32-bits mode
 # fullbench  : Precisely measure speed for each zstd inner function
 # fullbench32: Same as fullbench, but forced to compile in 32-bits mode
+# versionstest : Compatibility test between zstd versions stored on Github (v0.1+)
 # ##########################################################################
 
 DESTDIR?=
@@ -36,6 +37,9 @@ BINDIR  = $(PREFIX)/bin
 MANDIR  = $(PREFIX)/share/man/man1
 ZSTDDIR = ../lib
 PRGDIR  = ../programs
+PYTHON ?= python3
+TESTARTEFACT := versionsTest namespaceTest
+
 
 CPPFLAGS= -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/dictBuilder -I$(PRGDIR)
 CFLAGS ?= -O3
@@ -67,7 +71,7 @@ ZBUFFTEST = -T2mn
 FUZZERTEST= -T5mn
 ZSTDRTTEST= --test-large-data
 
-.PHONY: default all all32 clean test test32 test-all
+.PHONY: default all all32 clean test test32 test-all namespaceTest versionsTest
 
 default: fullbench
 
@@ -121,9 +125,17 @@ datagen : $(PRGDIR)/datagen.c datagencli.c
 roundTripCrash : $(ZSTD_FILES) roundTripCrash.c
        $(CC)      $(FLAGS) $^ -o $@$(EXT)
 
+namespaceTest:
+       if $(CC) namespaceTest.c ../lib/common/xxhash.c -o $@ ; then echo compilation should fail; exit 1 ; fi
+       $(RM) $@
+
+versionsTest:
+       $(PYTHON) test-zstd-versions.py
+
 clean:
        $(MAKE) -C ../lib clean
-       @rm -f core *.o tmp* result* *.gcda dictionary *.zst \
+       @$(RM) -fR $(TESTARTEFACT)
+       @$(RM) -f core *.o tmp* result* *.gcda dictionary *.zst \
         $(PRGDIR)/zstd$(EXT) $(PRGDIR)/zstd32$(EXT) \
         fullbench$(EXT) fullbench32$(EXT) \
         fuzzer$(EXT) fuzzer32$(EXT) zbufftest$(EXT) zbufftest32$(EXT) \
old mode 100644 (file)
new mode 100755 (executable)