Create initial testsuite
This creates a simple testsuite, heavily inspired by the testsuite in git. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
5
Makefile
5
Makefile
@ -24,7 +24,7 @@ ifdef NEEDS_LIBICONV
|
||||
endif
|
||||
|
||||
|
||||
.PHONY: all git install clean distclean emptycache force-version get-git
|
||||
.PHONY: all git test install clean distclean emptycache force-version get-git
|
||||
|
||||
all: cgit git
|
||||
|
||||
@ -54,6 +54,9 @@ git:
|
||||
cd git && $(MAKE) xdiff/lib.a
|
||||
cd git && $(MAKE) libgit.a
|
||||
|
||||
test: all
|
||||
$(MAKE) -C tests
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH)
|
||||
install cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
|
||||
|
Reference in New Issue
Block a user