##// END OF EJS Templates
pyoxidized: adapt output of test-install.t...
marmoute -
r48653:88783831 stable
parent child Browse files
Show More
@@ -1,264 +1,278 b''
1 1 hg debuginstall
2 2 $ hg debuginstall
3 3 checking encoding (ascii)...
4 4 checking Python executable (*) (glob)
5 5 checking Python implementation (*) (glob)
6 6 checking Python version (2.*) (glob) (no-py3 !)
7 7 checking Python version (3.*) (glob) (py3 !)
8 checking Python lib (.*[Ll]ib.*)... (re)
8 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
9 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
9 10 checking Python security support (*) (glob)
10 11 TLS 1.2 not supported by Python install; network connections lack modern security (?)
11 12 SNI not supported by Python install; may have connectivity issues with some servers (?)
12 13 checking Rust extensions \((installed|missing)\) (re)
13 14 checking Mercurial version (*) (glob)
14 15 checking Mercurial custom build (*) (glob)
15 16 checking module policy (*) (glob)
16 17 checking installed modules (*mercurial)... (glob)
17 18 checking registered compression engines (*zlib*) (glob)
18 19 checking available compression engines (*zlib*) (glob)
19 20 checking available compression engines for wire protocol (*zlib*) (glob)
20 21 checking "re2" regexp engine \((available|missing)\) (re)
21 checking templates (*mercurial?templates)... (glob)
22 checking default template (*mercurial?templates?map-cmdline.default) (glob)
22 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
23 checking templates (*app?templates)... (glob) (pyoxidizer !)
24 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
25 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
23 26 checking commit editor... (*) (glob)
24 27 checking username (test)
25 28 no problems detected
26 29
27 30 hg debuginstall JSON
28 31 $ hg debuginstall -Tjson | sed 's|\\\\|\\|g'
29 32 [
30 33 {
31 34 "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
32 35 "compenginesavail": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
33 36 "compenginesserver": [*"zlib"*], (glob)
34 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob)
37 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob) (no-pyoxidizer !)
38 "defaulttemplate": "*app?templates?map-cmdline.default", (glob) (pyoxidizer !)
35 39 "defaulttemplateerror": null,
36 40 "defaulttemplatenotfound": "default",
37 41 "editor": "*", (glob)
38 42 "editornotfound": false,
39 43 "encoding": "ascii",
40 44 "encodingerror": null,
41 45 "extensionserror": null, (no-pure !)
42 46 "hgmodulepolicy": "*", (glob)
43 47 "hgmodules": "*mercurial", (glob)
44 48 "hgver": "*", (glob)
45 49 "hgverextra": "*", (glob)
46 50 "problems": 0,
47 51 "pythonexe": "*", (glob)
48 52 "pythonimplementation": "*", (glob)
49 53 "pythonlib": "*", (glob)
50 54 "pythonsecurity": [*], (glob)
51 55 "pythonver": "*.*.*", (glob)
52 56 "re2": (true|false), (re)
53 "templatedirs": "*mercurial?templates", (glob)
57 "templatedirs": "*mercurial?templates", (glob) (no-pyoxidizer !)
58 "templatedirs": "*app?templates", (glob) (pyoxidizer !)
54 59 "username": "test",
55 60 "usernameerror": null,
56 61 "vinotfound": false
57 62 }
58 63 ]
59 64
60 65 hg debuginstall with no username
61 66 $ HGUSER= hg debuginstall
62 67 checking encoding (ascii)...
63 68 checking Python executable (*) (glob)
64 69 checking Python implementation (*) (glob)
65 70 checking Python version (2.*) (glob) (no-py3 !)
66 71 checking Python version (3.*) (glob) (py3 !)
67 checking Python lib (.*[Ll]ib.*)... (re)
72 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
73 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
68 74 checking Python security support (*) (glob)
69 75 TLS 1.2 not supported by Python install; network connections lack modern security (?)
70 76 SNI not supported by Python install; may have connectivity issues with some servers (?)
71 77 checking Rust extensions \((installed|missing)\) (re)
72 78 checking Mercurial version (*) (glob)
73 79 checking Mercurial custom build (*) (glob)
74 80 checking module policy (*) (glob)
75 81 checking installed modules (*mercurial)... (glob)
76 82 checking registered compression engines (*zlib*) (glob)
77 83 checking available compression engines (*zlib*) (glob)
78 84 checking available compression engines for wire protocol (*zlib*) (glob)
79 85 checking "re2" regexp engine \((available|missing)\) (re)
80 checking templates (*mercurial?templates)... (glob)
81 checking default template (*mercurial?templates?map-cmdline.default) (glob)
86 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
87 checking templates (*app?templates)... (glob) (pyoxidizer !)
88 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
89 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
82 90 checking commit editor... (*) (glob)
83 91 checking username...
84 92 no username supplied
85 93 (specify a username in your configuration file)
86 94 1 problems detected, please check your install!
87 95 [1]
88 96
89 97 hg debuginstall with invalid encoding
90 98 $ HGENCODING=invalidenc hg debuginstall | grep encoding
91 99 checking encoding (invalidenc)...
92 100 unknown encoding: invalidenc
93 101
94 102 exception message in JSON
95 103
96 104 $ HGENCODING=invalidenc HGUSER= hg debuginstall -Tjson | grep error
97 105 "defaulttemplateerror": null,
98 106 "encodingerror": "unknown encoding: invalidenc",
99 107 "extensionserror": null, (no-pure !)
100 108 "usernameerror": "no username supplied",
101 109
102 110 path variables are expanded (~ is the same as $TESTTMP)
103 111 $ mkdir tools
104 112 $ touch tools/testeditor.exe
105 113 #if execbit
106 114 $ chmod 755 tools/testeditor.exe
107 115 #endif
108 116 $ HGEDITOR="~/tools/testeditor.exe" hg debuginstall
109 117 checking encoding (ascii)...
110 118 checking Python executable (*) (glob)
111 119 checking Python implementation (*) (glob)
112 120 checking Python version (2.*) (glob) (no-py3 !)
113 121 checking Python version (3.*) (glob) (py3 !)
114 checking Python lib (.*[Ll]ib.*)... (re)
122 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
123 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
115 124 checking Python security support (*) (glob)
116 125 TLS 1.2 not supported by Python install; network connections lack modern security (?)
117 126 SNI not supported by Python install; may have connectivity issues with some servers (?)
118 127 checking Rust extensions \((installed|missing)\) (re)
119 128 checking Mercurial version (*) (glob)
120 129 checking Mercurial custom build (*) (glob)
121 130 checking module policy (*) (glob)
122 131 checking installed modules (*mercurial)... (glob)
123 132 checking registered compression engines (*zlib*) (glob)
124 133 checking available compression engines (*zlib*) (glob)
125 134 checking available compression engines for wire protocol (*zlib*) (glob)
126 135 checking "re2" regexp engine \((available|missing)\) (re)
127 checking templates (*mercurial?templates)... (glob)
128 checking default template (*mercurial?templates?map-cmdline.default) (glob)
136 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
137 checking templates (*app?templates)... (glob) (pyoxidizer !)
138 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
139 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
129 140 checking commit editor... ($TESTTMP/tools/testeditor.exe)
130 141 checking username (test)
131 142 no problems detected
132 143
133 144 print out the binary post-shlexsplit in the error message when commit editor is
134 145 not found (this is intentionally using backslashes to mimic a windows usecase).
135 146 $ HGEDITOR="c:\foo\bar\baz.exe -y -z" hg debuginstall
136 147 checking encoding (ascii)...
137 148 checking Python executable (*) (glob)
138 149 checking Python implementation (*) (glob)
139 150 checking Python version (2.*) (glob) (no-py3 !)
140 151 checking Python version (3.*) (glob) (py3 !)
141 checking Python lib (.*[Ll]ib.*)... (re)
152 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
153 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
142 154 checking Python security support (*) (glob)
143 155 TLS 1.2 not supported by Python install; network connections lack modern security (?)
144 156 SNI not supported by Python install; may have connectivity issues with some servers (?)
145 157 checking Rust extensions \((installed|missing)\) (re)
146 158 checking Mercurial version (*) (glob)
147 159 checking Mercurial custom build (*) (glob)
148 160 checking module policy (*) (glob)
149 161 checking installed modules (*mercurial)... (glob)
150 162 checking registered compression engines (*zlib*) (glob)
151 163 checking available compression engines (*zlib*) (glob)
152 164 checking available compression engines for wire protocol (*zlib*) (glob)
153 165 checking "re2" regexp engine \((available|missing)\) (re)
154 checking templates (*mercurial?templates)... (glob)
155 checking default template (*mercurial?templates?map-cmdline.default) (glob)
166 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
167 checking templates (*app?templates)... (glob) (pyoxidizer !)
168 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
169 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
156 170 checking commit editor... (c:\foo\bar\baz.exe) (windows !)
157 171 Can't find editor 'c:\foo\bar\baz.exe' in PATH (windows !)
158 172 checking commit editor... (c:foobarbaz.exe) (no-windows !)
159 173 Can't find editor 'c:foobarbaz.exe' in PATH (no-windows !)
160 174 (specify a commit editor in your configuration file)
161 175 checking username (test)
162 176 1 problems detected, please check your install!
163 177 [1]
164 178
165 179 debuginstall extension support
166 180 $ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false | grep atchman
167 181 fsmonitor checking for watchman binary... (false)
168 182 watchman binary missing or broken: warning: Watchman unavailable: watchman exited with code 1
169 183 Verify the json works too:
170 184 $ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false -Tjson | grep atchman
171 185 "fsmonitor-watchman": "false",
172 186 "fsmonitor-watchman-error": "warning: Watchman unavailable: watchman exited with code 1",
173 187
174 188 Verify that Mercurial is installable with pip. Note that this MUST be
175 189 the last test in this file, because we do some nasty things to the
176 190 shell environment in order to make the virtualenv work reliably.
177 191
178 192 On Python 3, we use the venv module, which is part of the standard library.
179 193 But some Linux distros strip out this module's functionality involving pip,
180 194 so we have to look for the ensurepip module, which these distros strip out
181 195 completely.
182 196 On Python 2, we use the 3rd party virtualenv module, if available.
183 197
184 198 $ cd $TESTTMP
185 199 $ unset PYTHONPATH
186 200
187 201 #if py3 ensurepip network-io no-pyoxidizer
188 202 $ "$PYTHON" -m venv installenv >> pip.log
189 203
190 204 Hack: Debian does something a bit different in ensurepip.bootstrap. This makes
191 205 it so that pip thinks the 'wheel' wheel is installed so it can build wheels;
192 206 when it goes to try, however, it shells out to run `python3 -u <setup.py>`,
193 207 that *doesn't* get the 'wheel' wheel, and it fails with an invalid command
194 208 'bdist_wheel'. To fix this, we just delete the wheel from where Debian put it in
195 209 our virtual env. Then pip doesn't think it's installed and doesn't try to build.
196 210 $ rm installenv/share/python-wheels/wheel-*.whl >/dev/null 2>&1 || true
197 211
198 212 Note: we use this weird path to run pip and hg to avoid platform differences,
199 213 since it's bin on most platforms but Scripts on Windows.
200 214 $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
201 215 Failed building wheel for mercurial (?)
202 216 WARNING: You are using pip version *; however, version * is available. (glob) (?)
203 217 You should consider upgrading via the '$TESTTMP/installenv/bin/python* -m pip install --upgrade pip' command. (glob) (?)
204 218 $ ./installenv/*/hg debuginstall || cat pip.log
205 219 checking encoding (ascii)...
206 220 checking Python executable (*) (glob)
207 221 checking Python implementation (*) (glob)
208 222 checking Python version (3.*) (glob)
209 223 checking Python lib (*)... (glob)
210 224 checking Python security support (*) (glob)
211 225 checking Rust extensions \((installed|missing)\) (re)
212 226 checking Mercurial version (*) (glob)
213 227 checking Mercurial custom build (*) (glob)
214 228 checking module policy (*) (glob)
215 229 checking installed modules (*/mercurial)... (glob)
216 230 checking registered compression engines (*) (glob)
217 231 checking available compression engines (*) (glob)
218 232 checking available compression engines for wire protocol (*) (glob)
219 233 checking "re2" regexp engine \((available|missing)\) (re)
220 234 checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob)
221 235 checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob)
222 236 checking commit editor... (*) (glob)
223 237 checking username (test)
224 238 no problems detected
225 239 #endif
226 240
227 241 #if virtualenv no-py3 network-io no-pyoxidizer
228 242
229 243 Note: --no-site-packages is the default for all versions enabled by hghave
230 244
231 245 $ "$PYTHON" -m virtualenv installenv >> pip.log
232 246 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. (?)
233 247 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support (?)
234 248
235 249 Note: we use this weird path to run pip and hg to avoid platform differences,
236 250 since it's bin on most platforms but Scripts on Windows.
237 251 $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
238 252 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. (?)
239 253 DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support (?)
240 254 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. (?)
241 255 $ ./installenv/*/hg debuginstall || cat pip.log
242 256 checking encoding (ascii)...
243 257 checking Python executable (*) (glob)
244 258 checking Python implementation (*) (glob)
245 259 checking Python version (2.*) (glob)
246 260 checking Python lib (*)... (glob)
247 261 checking Python security support (*) (glob)
248 262 TLS 1.2 not supported by Python install; network connections lack modern security (?)
249 263 SNI not supported by Python install; may have connectivity issues with some servers (?)
250 264 checking Rust extensions \((installed|missing)\) (re)
251 265 checking Mercurial version (*) (glob)
252 266 checking Mercurial custom build (*) (glob)
253 267 checking module policy (*) (glob)
254 268 checking installed modules (*/mercurial)... (glob)
255 269 checking registered compression engines (*) (glob)
256 270 checking available compression engines (*) (glob)
257 271 checking available compression engines for wire protocol (*) (glob)
258 272 checking "re2" regexp engine \((available|missing)\) (re)
259 273 checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob)
260 274 checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob)
261 275 checking commit editor... (*) (glob)
262 276 checking username (test)
263 277 no problems detected
264 278 #endif
General Comments 0
You need to be logged in to leave comments. Login now