summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>2014-04-16 14:26:15 (GMT)
committerTakayuki MATSUOKA <takayuki.matsuoka@gmail.com>2014-04-16 14:26:15 (GMT)
commita41790a75934b110eb6a94987b97620a5f5825bf (patch)
tree715bd0fd95e714f3d2fabe4382b49c0bde9ab8de /programs
parent0390c7dd9d9885b7b629ff97863a2ffb1e6607e9 (diff)
downloadlz4-a41790a75934b110eb6a94987b97620a5f5825bf.zip
lz4-a41790a75934b110eb6a94987b97620a5f5825bf.tar.gz
lz4-a41790a75934b110eb6a94987b97620a5f5825bf.tar.bz2
Add build target 'test'
Diffstat (limited to 'programs')
-rw-r--r--programs/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/programs/Makefile b/programs/Makefile
index a1814b6..8ec0b85 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -41,6 +41,7 @@ BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man/man1
LZ4DIR=..
+TEST_FILES = COPYING
# Define *.exe as extension for Windows systems
ifneq (,$(filter Windows%,$(OS)))
@@ -103,4 +104,24 @@ uninstall:
[ -f $(DESTDIR)$(MANDIR)/lz4.1 ] && rm -f $(DESTDIR)$(MANDIR)/lz4.1
@echo lz4 successfully uninstalled
+test: test-lz4 test-lz4c test-lz4c32 test-fuzzer test-fuzzer32 test-fullbench test-fullbench32
+
+test-lz4:
+
+test-lz4c:
+
+test-lz4c32:
+
+test-fuzzer: fuzzer
+ ./fuzzer --no-prompt
+
+test-fuzzer32: fuzzer32
+ ./fuzzer32 --no-prompt
+
+test-fullbench: fullbench
+ ./fullbench --no-prompt $(TEST_FILES)
+
+test-fullbench32: fullbench32
+ ./fullbench32 --no-prompt $(TEST_FILES)
+
endif