##// END OF EJS Templates
hgweb: added test case for extension loading phases (issue1824)...
Yuya Nishihara -
r9661:c4f6c02e default
parent child Browse files
Show More
@@ -75,6 +75,20 b" echo 'bar = bar.py' >> $HGRCPATH"
75 75 # command with no output, we just want to see the extensions loaded
76 76 hg paths
77 77
78 # check hgweb's load order
79 echo '% hgweb.cgi'
80 cat > hgweb.cgi <<EOF
81 #!/usr/bin/env python
82 from mercurial import demandimport; demandimport.enable()
83 from mercurial.hgweb import hgweb
84 from mercurial.hgweb import wsgicgi
85
86 application = hgweb('.', 'test repo')
87 wsgicgi.launch(application)
88 EOF
89 SCRIPT_NAME='/' SERVER_PORT='80' SERVER_NAME='localhost' python hgweb.cgi \
90 | grep '^[[:digit:]]) [[:alnum:] ]*$' # ignores HTML output
91
78 92 echo 'foo = !' >> $HGRCPATH
79 93 echo 'bar = !' >> $HGRCPATH
80 94
@@ -24,6 +24,17 b' 3) foo extsetup'
24 24 3) bar extsetup
25 25 4) foo reposetup
26 26 4) bar reposetup
27 % hgweb.cgi
28 1) foo imported
29 1) bar imported
30 2) foo uisetup
31 2) bar uisetup
32 3) foo extsetup
33 3) bar extsetup
34 4) foo reposetup
35 4) bar reposetup
36 4) foo reposetup
37 4) bar reposetup
27 38 empty extension - empty cmdtable
28 39
29 40 no commands defined
General Comments 0
You need to be logged in to leave comments. Login now