]> Lady’s Gitweb - Gitweb/commitdiff
gitweb/Makefile: Add 'test' and 'test-installed' targets
authorJakub Narebski <redacted>
Sun, 26 Sep 2010 13:02:26 +0000 (15:02 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
Makefile

index 2f6b8f5bf900fb5fd6d535867099878861dd0e671539fe2a2905a633cdacab7f..3eb5f5571ef34cfcb9dd1ce9d696ca44068cd7df91084406e73484c0db4efb35 100644 (file)
--- 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
 
This page took 0.27973 seconds and 4 git commands to generate.