summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorBing Xu <bingxu@fb.com>2018-11-16 17:12:26 (GMT)
committerBing Xu <bingxu@fb.com>2018-11-16 17:37:19 (GMT)
commita7e8d394c0c76d952e3f02f6f33a1fc60be94de6 (patch)
tree58267c9b4e70850c36a69cda1c13e87cdc2a59e9 /tests/Makefile
parent17f5071e72095d93e146264577ed7621763c2b70 (diff)
downloadlz4-a7e8d394c0c76d952e3f02f6f33a1fc60be94de6.zip
lz4-a7e8d394c0c76d952e3f02f6f33a1fc60be94de6.tar.gz
lz4-a7e8d394c0c76d952e3f02f6f33a1fc60be94de6.tar.bz2
[amalgamation] add test
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 989ef85..24dc581 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -152,11 +152,17 @@ endif
DD:=dd
-test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-install
+test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-install test-amalgamation
test32: CFLAGS+=-m32
test32: test
+test-amalgamation: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c
+ cat $(LZ4DIR)/lz4.c > lz4_all.c
+ cat $(LZ4DIR)/lz4hc.c >> lz4_all.c
+ $(CC) -I$(LZ4DIR) -c lz4_all.c
+ $(RM) lz4_all.c
+
test-install: lz4 lib liblz4.pc
lz4_root=.. ./test_install.sh