mirror of
https://github.com/git/git.git
synced 2026-04-12 01:40:10 +02:00
Merge branch 'jn/gitweb-test'
* jn/gitweb-test: gitweb/Makefile: Include gitweb/config.mak gitweb/Makefile: Add 'test' and 'test-installed' targets t/gitweb-lib.sh: Add support for GITWEB_TEST_INSTALLED gitweb: Move call to evaluate_git_version after evaluate_gitweb_config
This commit is contained in:
@@ -40,6 +40,7 @@ HIGHLIGHT_BIN = highlight
|
||||
# include user config
|
||||
-include ../config.mak.autogen
|
||||
-include ../config.mak
|
||||
-include config.mak
|
||||
|
||||
# determine version
|
||||
../GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
|
||||
@@ -145,6 +146,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 +168,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
|
||||
|
||||
|
||||
@@ -1075,6 +1075,7 @@ sub run_request {
|
||||
|
||||
evaluate_uri();
|
||||
evaluate_gitweb_config();
|
||||
evaluate_git_version();
|
||||
check_loadavg();
|
||||
|
||||
# $projectroot and $projects_list might be set in gitweb config file
|
||||
@@ -1127,7 +1128,6 @@ sub evaluate_argv {
|
||||
|
||||
sub run {
|
||||
evaluate_argv();
|
||||
evaluate_git_version();
|
||||
|
||||
$pre_listen_hook->()
|
||||
if $pre_listen_hook;
|
||||
|
||||
Reference in New Issue
Block a user