diff options
author | Nick Terrell <terrelln@fb.com> | 2016-11-05 02:59:50 (GMT) |
---|---|---|
committer | Nick Terrell <terrelln@fb.com> | 2016-11-05 03:01:23 (GMT) |
commit | 920bf21714f99cc20d3b8bcc28060136a390354a (patch) | |
tree | 6057917cbd5ac8599b22736ef2db83ad48ec9654 /tests/Makefile | |
parent | 8195ba8f7bbf0153a1dc01d2ada8823a29462afa (diff) | |
download | lz4-920bf21714f99cc20d3b8bcc28060136a390354a.zip lz4-920bf21714f99cc20d3b8bcc28060136a390354a.tar.gz lz4-920bf21714f99cc20d3b8bcc28060136a390354a.tar.bz2 |
Fix LZ4_decompress_fast_continue() bug
It specified the external dictionary location incorrectly.
Add tests that expose this bug with both normal compilation and ASAN.
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile index 0dd8a59..2da6408 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -97,6 +97,9 @@ frametest: $(LZ4DIR)/lz4frame.o $(LZ4DIR)/lz4.o $(LZ4DIR)/lz4hc.o $(LZ4DIR)/xxha frametest32: $(LZ4DIR)/lz4frame.c $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/xxhash.c frametest.c $(CC) -m32 $(FLAGS) $^ -o $@$(EXT) +fasttest: $(LZ4DIR)/lz4.o fasttest.c + $(CC) $(FLAGS) $^ -o $@$(EXT) + datagen : $(PRGDIR)/datagen.c datagencli.c $(CC) $(FLAGS) -I$(PRGDIR) $^ -o $@$(EXT) @@ -119,7 +122,7 @@ versionsTest: #FreeBSD targets ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD)) -test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-mem +test: test-lz4 test-lz4c test-fasttest test-frametest test-fullbench test-fuzzer test-mem test32: test-lz4c32 test-frametest32 test-fullbench32 test-fuzzer32 test-mem32 @@ -267,6 +270,9 @@ test-frametest: frametest test-frametest32: frametest32 ./frametest32 $(FUZZER_TIME) +test-fasttest: fasttest + ./fasttest + test-mem: lz4 datagen fuzzer frametest fullbench @echo "\n ---- valgrind tests : memory analyzer ----" valgrind --leak-check=yes --error-exitcode=1 ./datagen -g50M > $(VOID) |