summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-01-31 22:51:20 (GMT)
committerYann Collet <cyan@fb.com>2022-01-31 22:51:20 (GMT)
commit4f984e45a5a36c446d959e1c790d90cef5d5dcb8 (patch)
tree14b092852f4877522b6fdd058d56ef418b5e59fa /tests
parent379c1a10cad71b004a4fa95a482c47ca0fa18835 (diff)
downloadlz4-4f984e45a5a36c446d959e1c790d90cef5d5dcb8.zip
lz4-4f984e45a5a36c446d959e1c790d90cef5d5dcb8.tar.gz
lz4-4f984e45a5a36c446d959e1c790d90cef5d5dcb8.tar.bz2
added target test-compile-with-lz4-memory-usage
and run it in GA CI
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 5fc6fc6..b4d40ca 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -174,14 +174,22 @@ test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-install
test32: CFLAGS+=-m32
test32: test
+.PHONY: test-amalgamation
test-amalgamation: lz4_all.o
lz4_all.c: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c
$(CAT) $^ > $@
+.PHONY: test-install
test-install: lz4 lib liblz4.pc
lz4_root=.. ./test_install.sh
+.PHONY: test-compile-with-lz4-memory-usage
+test-compile-with-lz4-memory-usage:
+ $(MAKE) clean; CFLAGS=-O0 CPPFLAGS=-D'LZ4_MEMORY_USAGE=LZ4_MEMORY_USAGE_MIN' $(MAKE) all
+ $(MAKE) clean; CFLAGS=-O0 CPPFLAGS=-D'LZ4_MEMORY_USAGE=LZ4_MEMORY_USAGE_MAX' $(MAKE) all
+
+.PHONY: test-lz4-sparse
test-lz4-sparse: lz4 datagen
@echo "\n ---- test sparse file support ----"
$(DATAGEN) -g5M -P100 > tmplsdg5M