Mercurial > hg
comparison tests/test-install.t @ 32727:c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Since we're doing so much clever junk in our setup.py, let's have a
test that exercises it.
Thanks to Matt Harbison for testing this on Windows and verifying that
installenv/*/hg would work as a way to work around bin being called
Scripts on Windows.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 06 Jun 2017 11:16:38 -0400 |
parents | 85dc5a25f1fc |
children | 75be14993fda |
comparison
equal
deleted
inserted
replaced
32726:a6e4c4218b71 | 32727:c94c1aeb35fb |
---|---|
171 $ python wixxml.py templates | 171 $ python wixxml.py templates |
172 Not installed: | 172 Not installed: |
173 Not tracked: | 173 Not tracked: |
174 | 174 |
175 #endif | 175 #endif |
176 | |
177 #if virtualenv | |
178 | |
179 Verify that Mercurial is installable with pip. Note that this MUST be | |
180 the last test in this file, because we do some nasty things to the | |
181 shell environment in order to make the virtualenv work reliably. | |
182 | |
183 $ cd $TESTTMP | |
184 Note: --no-site-packages is deprecated, but some places have an | |
185 ancient virtualenv from their linux distro or similar and it's not yet | |
186 the default for them. | |
187 $ unset PYTHONPATH | |
188 $ $PYTHON -m virtualenv --no-site-packages installenv >> pip.log | |
189 Note: we use this weird path to run pip and hg to avoid platform differences, | |
190 since it's bin on most platforms but Scripts on Windows. | |
191 $ ./installenv/*/pip install $TESTDIR/.. >> pip.log | |
192 $ ./installenv/*/hg debuginstall || cat pip.log | |
193 checking encoding (ascii)... | |
194 checking Python executable (*) (glob) | |
195 checking Python version (2.*) (glob) | |
196 checking Python lib (*)... (glob) | |
197 checking Python security support (*) (glob) | |
198 TLS 1.2 not supported by Python install; network connections lack modern security (?) | |
199 SNI not supported by Python install; may have connectivity issues with some servers (?) | |
200 checking Mercurial version (*) (glob) | |
201 checking Mercurial custom build (*) (glob) | |
202 checking module policy (*) (glob) | |
203 checking installed modules (*/mercurial)... (glob) | |
204 checking registered compression engines (*) (glob) | |
205 checking available compression engines (*) (glob) | |
206 checking available compression engines for wire protocol (*) (glob) | |
207 checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob) | |
208 checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob) | |
209 checking commit editor... (*) (glob) | |
210 checking username (test) | |
211 no problems detected | |
212 #endif |