mirror of
https://github.com/lz4/lz4.git
synced 2024-12-18 06:04:07 +08:00
Add build target 'test'
This commit is contained in:
parent
0390c7dd9d
commit
a41790a759
3
Makefile
3
Makefile
@ -145,4 +145,7 @@ dist: clean
|
||||
@sha1sum $(DISTRIBNAME) > $(DISTRIBNAME).sha1
|
||||
@echo Distribution $(DISTRIBNAME) built
|
||||
|
||||
test: lz4programs
|
||||
@cd $(PRGDIR); $(MAKE) -e $@
|
||||
|
||||
endif
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user