From: Jakub Narebski Date: Sun, 26 Sep 2010 13:02:26 +0000 (+0200) Subject: gitweb/Makefile: Add 'test' and 'test-installed' targets X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/2386e13a15459900abad81a305afe7cfea385224b3d3d663375dd17172b6ddaa gitweb/Makefile: Add 'test' and 'test-installed' targets The 'test-installed' target in gitweb/Makefile tests installed gitweb, using the same destination directory that 'install' target uses. The 'test' target is just a convenience wrapper invoking 'gitweb-test' target of t/Makefile. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 2f6b8f5..3eb5f55 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,15 @@ gitweb.cgi: gitweb.perl GITWEB-BUILD-OPTIONS chmod +x $@+ && \ mv $@+ $@ +### Testing rules + +test: + $(MAKE) -C ../t gitweb-test + +test-installed: + GITWEB_TEST_INSTALLED='$(DESTDIR_SQ)$(gitwebdir_SQ)' \ + $(MAKE) -C ../t gitweb-test + ### Installation rules install: all @@ -158,5 +167,5 @@ install: all clean: $(RM) gitweb.cgi static/gitweb.min.js static/gitweb.min.css GITWEB-BUILD-OPTIONS -.PHONY: all clean install .FORCE-GIT-VERSION-FILE FORCE +.PHONY: all clean install test test-installed .FORCE-GIT-VERSION-FILE FORCE