##// END OF EJS Templates
tests: tell pip not to check for a newer version...
Danek Duvall -
r32954:b5305a49 default
parent child Browse files
Show More
@@ -1,212 +1,212
1 1 hg debuginstall
2 2 $ hg debuginstall
3 3 checking encoding (ascii)...
4 4 checking Python executable (*) (glob)
5 5 checking Python version (2.*) (glob)
6 6 checking Python lib (*lib*)... (glob)
7 7 checking Python security support (*) (glob)
8 8 TLS 1.2 not supported by Python install; network connections lack modern security (?)
9 9 SNI not supported by Python install; may have connectivity issues with some servers (?)
10 10 checking Mercurial version (*) (glob)
11 11 checking Mercurial custom build (*) (glob)
12 12 checking module policy (*) (glob)
13 13 checking installed modules (*mercurial)... (glob)
14 14 checking registered compression engines (*zlib*) (glob)
15 15 checking available compression engines (*zlib*) (glob)
16 16 checking available compression engines for wire protocol (*zlib*) (glob)
17 17 checking templates (*mercurial?templates)... (glob)
18 18 checking default template (*mercurial?templates?map-cmdline.default) (glob)
19 19 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
20 20 checking username (test)
21 21 no problems detected
22 22
23 23 hg debuginstall JSON
24 24 $ hg debuginstall -Tjson | sed 's|\\\\|\\|g'
25 25 [
26 26 {
27 27 "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
28 28 "compenginesavail": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
29 29 "compenginesserver": [*"zlib"*], (glob)
30 30 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob)
31 31 "defaulttemplateerror": null,
32 32 "defaulttemplatenotfound": "default",
33 33 "editor": "* -c \"import sys; sys.exit(0)\"", (glob)
34 34 "editornotfound": false,
35 35 "encoding": "ascii",
36 36 "encodingerror": null,
37 37 "extensionserror": null, (no-pure !)
38 38 "hgmodulepolicy": "*", (glob)
39 39 "hgmodules": "*mercurial", (glob)
40 40 "hgver": "*", (glob)
41 41 "hgverextra": "*", (glob)
42 42 "problems": 0,
43 43 "pythonexe": "*", (glob)
44 44 "pythonlib": "*", (glob)
45 45 "pythonsecurity": [*], (glob)
46 46 "pythonver": "*.*.*", (glob)
47 47 "templatedirs": "*mercurial?templates", (glob)
48 48 "username": "test",
49 49 "usernameerror": null,
50 50 "vinotfound": false
51 51 }
52 52 ]
53 53
54 54 hg debuginstall with no username
55 55 $ HGUSER= hg debuginstall
56 56 checking encoding (ascii)...
57 57 checking Python executable (*) (glob)
58 58 checking Python version (2.*) (glob)
59 59 checking Python lib (*lib*)... (glob)
60 60 checking Python security support (*) (glob)
61 61 TLS 1.2 not supported by Python install; network connections lack modern security (?)
62 62 SNI not supported by Python install; may have connectivity issues with some servers (?)
63 63 checking Mercurial version (*) (glob)
64 64 checking Mercurial custom build (*) (glob)
65 65 checking module policy (*) (glob)
66 66 checking installed modules (*mercurial)... (glob)
67 67 checking registered compression engines (*zlib*) (glob)
68 68 checking available compression engines (*zlib*) (glob)
69 69 checking available compression engines for wire protocol (*zlib*) (glob)
70 70 checking templates (*mercurial?templates)... (glob)
71 71 checking default template (*mercurial?templates?map-cmdline.default) (glob)
72 72 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
73 73 checking username...
74 74 no username supplied
75 75 (specify a username in your configuration file)
76 76 1 problems detected, please check your install!
77 77 [1]
78 78
79 79 path variables are expanded (~ is the same as $TESTTMP)
80 80 $ mkdir tools
81 81 $ touch tools/testeditor.exe
82 82 #if execbit
83 83 $ chmod 755 tools/testeditor.exe
84 84 #endif
85 85 $ hg debuginstall --config ui.editor=~/tools/testeditor.exe
86 86 checking encoding (ascii)...
87 87 checking Python executable (*) (glob)
88 88 checking Python version (*) (glob)
89 89 checking Python lib (*lib*)... (glob)
90 90 checking Python security support (*) (glob)
91 91 TLS 1.2 not supported by Python install; network connections lack modern security (?)
92 92 SNI not supported by Python install; may have connectivity issues with some servers (?)
93 93 checking Mercurial version (*) (glob)
94 94 checking Mercurial custom build (*) (glob)
95 95 checking module policy (*) (glob)
96 96 checking installed modules (*mercurial)... (glob)
97 97 checking registered compression engines (*zlib*) (glob)
98 98 checking available compression engines (*zlib*) (glob)
99 99 checking available compression engines for wire protocol (*zlib*) (glob)
100 100 checking templates (*mercurial?templates)... (glob)
101 101 checking default template (*mercurial?templates?map-cmdline.default) (glob)
102 102 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
103 103 checking username (test)
104 104 no problems detected
105 105
106 106 #if test-repo
107 107 $ . "$TESTDIR/helpers-testrepo.sh"
108 108
109 109 $ cat >> wixxml.py << EOF
110 110 > import os, subprocess, sys
111 111 > import xml.etree.ElementTree as ET
112 112 >
113 113 > # MSYS mangles the path if it expands $TESTDIR
114 114 > testdir = os.environ['TESTDIR']
115 115 > ns = {'wix' : 'http://schemas.microsoft.com/wix/2006/wi'}
116 116 >
117 117 > def directory(node, relpath):
118 118 > '''generator of files in the xml node, rooted at relpath'''
119 119 > dirs = node.findall('./{%(wix)s}Directory' % ns)
120 120 >
121 121 > for d in dirs:
122 122 > for subfile in directory(d, relpath + d.attrib['Name'] + '/'):
123 123 > yield subfile
124 124 >
125 125 > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns)
126 126 >
127 127 > for f in files:
128 128 > yield relpath + f.attrib['Name']
129 129 >
130 130 > def hgdirectory(relpath):
131 131 > '''generator of tracked files, rooted at relpath'''
132 132 > hgdir = "%s/../mercurial" % (testdir)
133 133 > args = ['hg', '--cwd', hgdir, 'files', relpath]
134 134 > proc = subprocess.Popen(args, stdout=subprocess.PIPE,
135 135 > stderr=subprocess.PIPE)
136 136 > output = proc.communicate()[0]
137 137 >
138 138 > slash = '/'
139 139 > for line in output.splitlines():
140 140 > if os.name == 'nt':
141 141 > yield line.replace(os.sep, slash)
142 142 > else:
143 143 > yield line
144 144 >
145 145 > tracked = [f for f in hgdirectory(sys.argv[1])]
146 146 >
147 147 > xml = ET.parse("%s/../contrib/wix/%s.wxs" % (testdir, sys.argv[1]))
148 148 > root = xml.getroot()
149 149 > dir = root.find('.//{%(wix)s}DirectoryRef' % ns)
150 150 >
151 151 > installed = [f for f in directory(dir, '')]
152 152 >
153 153 > print('Not installed:')
154 154 > for f in sorted(set(tracked) - set(installed)):
155 155 > print(' %s' % f)
156 156 >
157 157 > print('Not tracked:')
158 158 > for f in sorted(set(installed) - set(tracked)):
159 159 > print(' %s' % f)
160 160 > EOF
161 161
162 162 $ $PYTHON wixxml.py help
163 163 Not installed:
164 164 help/common.txt
165 165 help/hg-ssh.8.txt
166 166 help/hg.1.txt
167 167 help/hgignore.5.txt
168 168 help/hgrc.5.txt
169 169 Not tracked:
170 170
171 171 $ $PYTHON wixxml.py templates
172 172 Not installed:
173 173 Not tracked:
174 174
175 175 #endif
176 176
177 177 #if virtualenv
178 178
179 179 Verify that Mercurial is installable with pip. Note that this MUST be
180 180 the last test in this file, because we do some nasty things to the
181 181 shell environment in order to make the virtualenv work reliably.
182 182
183 183 $ cd $TESTTMP
184 184 Note: --no-site-packages is deprecated, but some places have an
185 185 ancient virtualenv from their linux distro or similar and it's not yet
186 186 the default for them.
187 187 $ unset PYTHONPATH
188 188 $ $PYTHON -m virtualenv --no-site-packages --never-download installenv >> pip.log
189 189 Note: we use this weird path to run pip and hg to avoid platform differences,
190 190 since it's bin on most platforms but Scripts on Windows.
191 $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
191 $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log
192 192 $ ./installenv/*/hg debuginstall || cat pip.log
193 193 checking encoding (ascii)...
194 194 checking Python executable (*) (glob)
195 195 checking Python version (2.*) (glob)
196 196 checking Python lib (*)... (glob)
197 197 checking Python security support (*) (glob)
198 198 TLS 1.2 not supported by Python install; network connections lack modern security (?)
199 199 SNI not supported by Python install; may have connectivity issues with some servers (?)
200 200 checking Mercurial version (*) (glob)
201 201 checking Mercurial custom build (*) (glob)
202 202 checking module policy (*) (glob)
203 203 checking installed modules (*/mercurial)... (glob)
204 204 checking registered compression engines (*) (glob)
205 205 checking available compression engines (*) (glob)
206 206 checking available compression engines for wire protocol (*) (glob)
207 207 checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob)
208 208 checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob)
209 209 checking commit editor... (*) (glob)
210 210 checking username (test)
211 211 no problems detected
212 212 #endif
General Comments 0
You need to be logged in to leave comments. Login now