Mercurial > hg
annotate tests/test-install.t @ 43622:45c15ed06f33
tests: add optional output when wheel is missing
If the `wheel` package isn't installed, pip will emit a warning
on stderr complaining about that. Alternatively, we could
redirect stderr to stdout and swallow the warning. But I like
tests having visibility of warnings, as it helps keep us honest
regarding edge cases.
Differential Revision: https://phab.mercurial-scm.org/D7371
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 11 Nov 2019 19:04:49 -0800 |
parents | 697c2e32c490 |
children | 94eac340d212 |
rev | line source |
---|---|
4365
46280c004f22
change tests to use simplemerge by default
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
3846
diff
changeset
|
1 hg debuginstall |
11917
b03cf2349a80
tests: unify test-install
Pradeepkumar Gayam <in3xes@gmail.com>
parents:
9734
diff
changeset
|
2 $ hg debuginstall |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
3 checking encoding (ascii)... |
20741
f1dfef0a9352
debuginstall: change showing to checking for consistency and future checking
Matt Mackall <mpm@selenic.com>
parents:
20740
diff
changeset
|
4 checking Python executable (*) (glob) |
40974
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
5 checking Python version (2.*) (glob) (no-py3 !) |
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
6 checking Python version (3.*) (glob) (py3 !) |
40975
2465e0b27a0d
run-tests: alias hg to hg.exe on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
40974
diff
changeset
|
7 checking Python lib (.*[Ll]ib.*)... (re) |
30222
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
8 checking Python security support (*) (glob) |
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
9 TLS 1.2 not supported by Python install; network connections lack modern security (?) |
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
10 SNI not supported by Python install; may have connectivity issues with some servers (?) |
29197
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
11 checking Mercurial version (*) (glob) |
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
12 checking Mercurial custom build (*) (glob) |
29266
b3a677c82a35
debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents:
29219
diff
changeset
|
13 checking module policy (*) (glob) |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
14 checking installed modules (*mercurial)... (glob) |
30462
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
15 checking registered compression engines (*zlib*) (glob) |
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
16 checking available compression engines (*zlib*) (glob) |
30762
35b516f800e0
wireproto: advertise supported media types and compression formats
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30462
diff
changeset
|
17 checking available compression engines for wire protocol (*zlib*) (glob) |
35448
8251c4c4abdc
debuginstall: add a line about re2 availability
Boris Feld <boris.feld@octobus.net>
parents:
34130
diff
changeset
|
18 checking "re2" regexp engine \((available|missing)\) (re) |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
19 checking templates (*mercurial?templates)... (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
20 checking default template (*mercurial?templates?map-cmdline.default) (glob) |
36236
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
21 checking commit editor... (*) (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
22 checking username (test) |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
23 no problems detected |
9734
36c388a1aa51
commands: call ui.username carefully in debuginstall
Martin Geisler <mg@lazybytes.net>
parents:
4365
diff
changeset
|
24 |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
25 hg debuginstall JSON |
28885
d7e7b3dd44c8
test-install: fix output on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
28626
diff
changeset
|
26 $ hg debuginstall -Tjson | sed 's|\\\\|\\|g' |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
27 [ |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
28 { |
30462
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
29 "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob) |
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
30 "compenginesavail": ["bz2", "bz2truncated", "none", "zlib"*], (glob) |
30762
35b516f800e0
wireproto: advertise supported media types and compression formats
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30462
diff
changeset
|
31 "compenginesserver": [*"zlib"*], (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
32 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob) |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
33 "defaulttemplateerror": null, |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
34 "defaulttemplatenotfound": "default", |
36236
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
35 "editor": "*", (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
36 "editornotfound": false, |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
37 "encoding": "ascii", |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
38 "encodingerror": null, |
32209
85dc5a25f1fc
debuginstall: check C extensions only if they are loadable per policy
Yuya Nishihara <yuya@tcha.org>
parents:
31098
diff
changeset
|
39 "extensionserror": null, (no-pure !) |
29266
b3a677c82a35
debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents:
29219
diff
changeset
|
40 "hgmodulepolicy": "*", (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
41 "hgmodules": "*mercurial", (glob) |
29197
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
42 "hgver": "*", (glob) |
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
43 "hgverextra": "*", (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
44 "problems": 0, |
28544
4d93d73b8aec
tests: python executable path should always be globbed
Danek Duvall <danek.duvall@oracle.com>
parents:
28440
diff
changeset
|
45 "pythonexe": "*", (glob) |
28626
60ee2593a270
tests: python executable should always be globbed
Sean Farley <sean@farley.io>
parents:
28544
diff
changeset
|
46 "pythonlib": "*", (glob) |
30222
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
47 "pythonsecurity": [*], (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
48 "pythonver": "*.*.*", (glob) |
35448
8251c4c4abdc
debuginstall: add a line about re2 availability
Boris Feld <boris.feld@octobus.net>
parents:
34130
diff
changeset
|
49 "re2": (true|false), (re) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
50 "templatedirs": "*mercurial?templates", (glob) |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
51 "username": "test", |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
52 "usernameerror": null, |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
53 "vinotfound": false |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
54 } |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
55 ] |
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
56 |
11917
b03cf2349a80
tests: unify test-install
Pradeepkumar Gayam <in3xes@gmail.com>
parents:
9734
diff
changeset
|
57 hg debuginstall with no username |
b03cf2349a80
tests: unify test-install
Pradeepkumar Gayam <in3xes@gmail.com>
parents:
9734
diff
changeset
|
58 $ HGUSER= hg debuginstall |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
59 checking encoding (ascii)... |
20741
f1dfef0a9352
debuginstall: change showing to checking for consistency and future checking
Matt Mackall <mpm@selenic.com>
parents:
20740
diff
changeset
|
60 checking Python executable (*) (glob) |
40974
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
61 checking Python version (2.*) (glob) (no-py3 !) |
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
62 checking Python version (3.*) (glob) (py3 !) |
40975
2465e0b27a0d
run-tests: alias hg to hg.exe on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
40974
diff
changeset
|
63 checking Python lib (.*[Ll]ib.*)... (re) |
30222
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
64 checking Python security support (*) (glob) |
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
65 TLS 1.2 not supported by Python install; network connections lack modern security (?) |
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
66 SNI not supported by Python install; may have connectivity issues with some servers (?) |
29197
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
67 checking Mercurial version (*) (glob) |
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
68 checking Mercurial custom build (*) (glob) |
29266
b3a677c82a35
debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents:
29219
diff
changeset
|
69 checking module policy (*) (glob) |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
70 checking installed modules (*mercurial)... (glob) |
30462
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
71 checking registered compression engines (*zlib*) (glob) |
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
72 checking available compression engines (*zlib*) (glob) |
30762
35b516f800e0
wireproto: advertise supported media types and compression formats
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30462
diff
changeset
|
73 checking available compression engines for wire protocol (*zlib*) (glob) |
35448
8251c4c4abdc
debuginstall: add a line about re2 availability
Boris Feld <boris.feld@octobus.net>
parents:
34130
diff
changeset
|
74 checking "re2" regexp engine \((available|missing)\) (re) |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
75 checking templates (*mercurial?templates)... (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
76 checking default template (*mercurial?templates?map-cmdline.default) (glob) |
36236
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
77 checking commit editor... (*) (glob) |
16934
0c9c41e53f1a
debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
78 checking username... |
20574
5614f8cf0861
ui: suggest config --edit when no username is set
Matt Mackall <mpm@selenic.com>
parents:
17392
diff
changeset
|
79 no username supplied |
12084 | 80 (specify a username in your configuration file) |
11917
b03cf2349a80
tests: unify test-install
Pradeepkumar Gayam <in3xes@gmail.com>
parents:
9734
diff
changeset
|
81 1 problems detected, please check your install! |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12084
diff
changeset
|
82 [1] |
24891
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
83 |
34129
902219a99901
debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents:
33204
diff
changeset
|
84 hg debuginstall with invalid encoding |
902219a99901
debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents:
33204
diff
changeset
|
85 $ HGENCODING=invalidenc hg debuginstall | grep encoding |
902219a99901
debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents:
33204
diff
changeset
|
86 checking encoding (invalidenc)... |
902219a99901
debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents:
33204
diff
changeset
|
87 unknown encoding: invalidenc |
902219a99901
debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents:
33204
diff
changeset
|
88 |
34130
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
89 exception message in JSON |
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
90 |
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
91 $ HGENCODING=invalidenc HGUSER= hg debuginstall -Tjson | grep error |
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
92 "defaulttemplateerror": null, |
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
93 "encodingerror": "unknown encoding: invalidenc", |
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
94 "extensionserror": null, (no-pure !) |
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
95 "usernameerror": "no username supplied", |
ada8a19672ab
debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents:
34129
diff
changeset
|
96 |
24891
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
97 path variables are expanded (~ is the same as $TESTTMP) |
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
98 $ mkdir tools |
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
99 $ touch tools/testeditor.exe |
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
100 #if execbit |
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
101 $ chmod 755 tools/testeditor.exe |
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
102 #endif |
35520
711149d8e676
tests: switch test from '--config ui.editor=~/foo' to HGEDITOR=~/foo
Kyle Lippincott <spectral@google.com>
parents:
35448
diff
changeset
|
103 $ HGEDITOR="~/tools/testeditor.exe" hg debuginstall |
24891
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
104 checking encoding (ascii)... |
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
105 checking Python executable (*) (glob) |
40974
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
106 checking Python version (2.*) (glob) (no-py3 !) |
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
107 checking Python version (3.*) (glob) (py3 !) |
40975
2465e0b27a0d
run-tests: alias hg to hg.exe on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
40974
diff
changeset
|
108 checking Python lib (.*[Ll]ib.*)... (re) |
30222
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
109 checking Python security support (*) (glob) |
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
110 TLS 1.2 not supported by Python install; network connections lack modern security (?) |
7b428b00a1d4
commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29266
diff
changeset
|
111 SNI not supported by Python install; may have connectivity issues with some servers (?) |
29197
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
112 checking Mercurial version (*) (glob) |
c5f9ff302065
debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents:
29090
diff
changeset
|
113 checking Mercurial custom build (*) (glob) |
29266
b3a677c82a35
debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents:
29219
diff
changeset
|
114 checking module policy (*) (glob) |
24891
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
115 checking installed modules (*mercurial)... (glob) |
30462
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
116 checking registered compression engines (*zlib*) (glob) |
356406ac454f
debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30222
diff
changeset
|
117 checking available compression engines (*zlib*) (glob) |
30762
35b516f800e0
wireproto: advertise supported media types and compression formats
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30462
diff
changeset
|
118 checking available compression engines for wire protocol (*zlib*) (glob) |
35448
8251c4c4abdc
debuginstall: add a line about re2 availability
Boris Feld <boris.feld@octobus.net>
parents:
34130
diff
changeset
|
119 checking "re2" regexp engine \((available|missing)\) (re) |
24891
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
120 checking templates (*mercurial?templates)... (glob) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
121 checking default template (*mercurial?templates?map-cmdline.default) (glob) |
35520
711149d8e676
tests: switch test from '--config ui.editor=~/foo' to HGEDITOR=~/foo
Kyle Lippincott <spectral@google.com>
parents:
35448
diff
changeset
|
122 checking commit editor... ($TESTTMP/tools/testeditor.exe) |
28440
855d9b2eea67
debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents:
27684
diff
changeset
|
123 checking username (test) |
24891
be4915009b09
debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents:
20741
diff
changeset
|
124 no problems detected |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
125 |
36236
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
126 print out the binary post-shlexsplit in the error message when commit editor is |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
127 not found (this is intentionally using backslashes to mimic a windows usecase). |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
128 $ HGEDITOR="c:\foo\bar\baz.exe -y -z" hg debuginstall |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
129 checking encoding (ascii)... |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
130 checking Python executable (*) (glob) |
40974
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
131 checking Python version (2.*) (glob) (no-py3 !) |
e1f759f1f691
py3: conditionalize the python version in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
40369
diff
changeset
|
132 checking Python version (3.*) (glob) (py3 !) |
40975
2465e0b27a0d
run-tests: alias hg to hg.exe on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
40974
diff
changeset
|
133 checking Python lib (.*[Ll]ib.*)... (re) |
36236
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
134 checking Python security support (*) (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
135 TLS 1.2 not supported by Python install; network connections lack modern security (?) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
136 SNI not supported by Python install; may have connectivity issues with some servers (?) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
137 checking Mercurial version (*) (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
138 checking Mercurial custom build (*) (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
139 checking module policy (*) (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
140 checking installed modules (*mercurial)... (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
141 checking registered compression engines (*zlib*) (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
142 checking available compression engines (*zlib*) (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
143 checking available compression engines for wire protocol (*zlib*) (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
144 checking "re2" regexp engine \((available|missing)\) (re) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
145 checking templates (*mercurial?templates)... (glob) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
146 checking default template (*mercurial?templates?map-cmdline.default) (glob) |
36309
94a1ff16f362
debuginstall: do not parse editor command in posix way on Windows
Yuya Nishihara <yuya@tcha.org>
parents:
36236
diff
changeset
|
147 checking commit editor... (c:\foo\bar\baz.exe) (windows !) |
94a1ff16f362
debuginstall: do not parse editor command in posix way on Windows
Yuya Nishihara <yuya@tcha.org>
parents:
36236
diff
changeset
|
148 Can't find editor 'c:\foo\bar\baz.exe' in PATH (windows !) |
94a1ff16f362
debuginstall: do not parse editor command in posix way on Windows
Yuya Nishihara <yuya@tcha.org>
parents:
36236
diff
changeset
|
149 checking commit editor... (c:foobarbaz.exe) (no-windows !) |
94a1ff16f362
debuginstall: do not parse editor command in posix way on Windows
Yuya Nishihara <yuya@tcha.org>
parents:
36236
diff
changeset
|
150 Can't find editor 'c:foobarbaz.exe' in PATH (no-windows !) |
36236
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
151 (specify a commit editor in your configuration file) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
152 checking username (test) |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
153 1 problems detected, please check your install! |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
154 [1] |
564dec70b50c
debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents:
35520
diff
changeset
|
155 |
42652
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
156 debuginstall extension support |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
157 $ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false | grep atchman |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
158 fsmonitor checking for watchman binary... (false) |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
159 watchman binary missing or broken: warning: Watchman unavailable: watchman exited with code 1 |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
160 Verify the json works too: |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
161 $ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false -Tjson | grep atchman |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
162 "fsmonitor-watchman": "false", |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
163 "fsmonitor-watchman-error": "warning: Watchman unavailable: watchman exited with code 1", |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
164 |
684b56ade431
fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents:
42066
diff
changeset
|
165 |
27442
f67c6d8cc606
test-install: perform the wix checking on wdir() instead of "."
Matt Harbison <matt_harbison@yahoo.com>
parents:
27384
diff
changeset
|
166 #if test-repo |
29219
3c9066ed557c
tests: silence test-repo obsolete warning
timeless <timeless@mozdev.org>
parents:
29197
diff
changeset
|
167 $ . "$TESTDIR/helpers-testrepo.sh" |
3c9066ed557c
tests: silence test-repo obsolete warning
timeless <timeless@mozdev.org>
parents:
29197
diff
changeset
|
168 |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
169 $ cat >> wixxml.py << EOF |
40369
ef6cab7930b3
py3: fix module imports in tests, as flagged by test-check-module-imports.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
170 > import os |
ef6cab7930b3
py3: fix module imports in tests, as flagged by test-check-module-imports.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
171 > import subprocess |
ef6cab7930b3
py3: fix module imports in tests, as flagged by test-check-module-imports.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
172 > import sys |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
173 > import xml.etree.ElementTree as ET |
41318
6e54caaed08d
tests: normalize to bytes in test-install.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40975
diff
changeset
|
174 > from mercurial import pycompat |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
175 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
176 > # MSYS mangles the path if it expands $TESTDIR |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
177 > testdir = os.environ['TESTDIR'] |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
178 > ns = {'wix' : 'http://schemas.microsoft.com/wix/2006/wi'} |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
179 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
180 > def directory(node, relpath): |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
181 > '''generator of files in the xml node, rooted at relpath''' |
27519
f4517c88ab81
test-install: embed wix namespace for Python 2.6 compatibility
Yuya Nishihara <yuya@tcha.org>
parents:
27442
diff
changeset
|
182 > dirs = node.findall('./{%(wix)s}Directory' % ns) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
183 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
184 > for d in dirs: |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
185 > for subfile in directory(d, relpath + d.attrib['Name'] + '/'): |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
186 > yield subfile |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
187 > |
27519
f4517c88ab81
test-install: embed wix namespace for Python 2.6 compatibility
Yuya Nishihara <yuya@tcha.org>
parents:
27442
diff
changeset
|
188 > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
189 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
190 > for f in files: |
41318
6e54caaed08d
tests: normalize to bytes in test-install.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40975
diff
changeset
|
191 > yield pycompat.sysbytes(relpath + f.attrib['Name']) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
192 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
193 > def hgdirectory(relpath): |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
194 > '''generator of tracked files, rooted at relpath''' |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
195 > hgdir = "%s/../mercurial" % (testdir) |
27442
f67c6d8cc606
test-install: perform the wix checking on wdir() instead of "."
Matt Harbison <matt_harbison@yahoo.com>
parents:
27384
diff
changeset
|
196 > args = ['hg', '--cwd', hgdir, 'files', relpath] |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
197 > proc = subprocess.Popen(args, stdout=subprocess.PIPE, |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
198 > stderr=subprocess.PIPE) |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
199 > output = proc.communicate()[0] |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
200 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
201 > for line in output.splitlines(): |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
202 > if os.name == 'nt': |
41386
baffda74891c
py3: fix a bytes/str mingling in test-install.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
41318
diff
changeset
|
203 > yield line.replace(pycompat.sysbytes(os.sep), b'/') |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
204 > else: |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
205 > yield line |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
206 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
207 > tracked = [f for f in hgdirectory(sys.argv[1])] |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
208 > |
41920
c68a1df5c79a
wix: move contrib/wix to contrib/packaging/wix
Gregory Szorc <gregory.szorc@gmail.com>
parents:
41531
diff
changeset
|
209 > xml = ET.parse("%s/../contrib/packaging/wix/%s.wxs" % (testdir, sys.argv[1])) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
210 > root = xml.getroot() |
27519
f4517c88ab81
test-install: embed wix namespace for Python 2.6 compatibility
Yuya Nishihara <yuya@tcha.org>
parents:
27442
diff
changeset
|
211 > dir = root.find('.//{%(wix)s}DirectoryRef' % ns) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
212 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
213 > installed = [f for f in directory(dir, '')] |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
214 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
215 > print('Not installed:') |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
216 > for f in sorted(set(tracked) - set(installed)): |
41318
6e54caaed08d
tests: normalize to bytes in test-install.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40975
diff
changeset
|
217 > print(' %s' % pycompat.sysstr(f)) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
218 > |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
219 > print('Not tracked:') |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
220 > for f in sorted(set(installed) - set(tracked)): |
41318
6e54caaed08d
tests: normalize to bytes in test-install.t
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40975
diff
changeset
|
221 > print(' %s' % pycompat.sysstr(f)) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
222 > EOF |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
223 |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
36309
diff
changeset
|
224 $ ( testrepohgenv; "$PYTHON" wixxml.py help ) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
225 Not installed: |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
226 Not tracked: |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
227 |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
36309
diff
changeset
|
228 $ ( testrepohgenv; "$PYTHON" wixxml.py templates ) |
27383
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
229 Not installed: |
b1160299a175
tests: add coverage to ensure Wix tracks 'help' and 'templates' files
Matt Harbison <matt_harbison@yahoo.com>
parents:
24891
diff
changeset
|
230 Not tracked: |
27442
f67c6d8cc606
test-install: perform the wix checking on wdir() instead of "."
Matt Harbison <matt_harbison@yahoo.com>
parents:
27384
diff
changeset
|
231 |
f67c6d8cc606
test-install: perform the wix checking on wdir() instead of "."
Matt Harbison <matt_harbison@yahoo.com>
parents:
27384
diff
changeset
|
232 #endif |
32727
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
233 |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
234 Verify that Mercurial is installable with pip. Note that this MUST be |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
235 the last test in this file, because we do some nasty things to the |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
236 shell environment in order to make the virtualenv work reliably. |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
237 |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
238 On Python 3, we use the venv module, which is part of the standard library. |
43412
ca0cd0a13514
tests: look for ensurepip before using venv
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43410
diff
changeset
|
239 But some Linux distros strip out this module's functionality involving pip, |
ca0cd0a13514
tests: look for ensurepip before using venv
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43410
diff
changeset
|
240 so we have to look for the ensurepip module, which these distros strip out |
ca0cd0a13514
tests: look for ensurepip before using venv
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43410
diff
changeset
|
241 completely. |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
242 On Python 2, we use the 3rd party virtualenv module, if available. |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
243 |
32727
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
244 $ cd $TESTTMP |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
245 $ unset PYTHONPATH |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
246 |
43412
ca0cd0a13514
tests: look for ensurepip before using venv
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43410
diff
changeset
|
247 #if py3 ensurepip |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
248 $ "$PYTHON" -m venv installenv >> pip.log |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
249 |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
250 Note: we use this weird path to run pip and hg to avoid platform differences, |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
251 since it's bin on most platforms but Scripts on Windows. |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
252 $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log |
43622
45c15ed06f33
tests: add optional output when wheel is missing
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43617
diff
changeset
|
253 Failed building wheel for mercurial (?) |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
254 $ ./installenv/*/hg debuginstall || cat pip.log |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
255 checking encoding (ascii)... |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
256 checking Python executable (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
257 checking Python version (3.*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
258 checking Python lib (*)... (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
259 checking Python security support (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
260 checking Mercurial version (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
261 checking Mercurial custom build (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
262 checking module policy (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
263 checking installed modules (*/mercurial)... (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
264 checking registered compression engines (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
265 checking available compression engines (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
266 checking available compression engines for wire protocol (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
267 checking "re2" regexp engine \((available|missing)\) (re) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
268 checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
269 checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
270 checking commit editor... (*) (glob) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
271 checking username (test) |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
272 no problems detected |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
273 #endif |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
274 |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
275 #if no-py3 virtualenv |
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
276 |
32727
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
277 Note: --no-site-packages is deprecated, but some places have an |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
278 ancient virtualenv from their linux distro or similar and it's not yet |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
279 the default for them. |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
280 |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
36309
diff
changeset
|
281 $ "$PYTHON" -m virtualenv --no-site-packages --never-download installenv >> pip.log |
41531
14983ac4a764
tests: add optional Python 2.7 deprecation output
Gregory Szorc <gregory.szorc@gmail.com>
parents:
41386
diff
changeset
|
282 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. (?) |
43006
d6f34ceb08db
tests: look for additional pip warning variant
Gregory Szorc <gregory.szorc@gmail.com>
parents:
42652
diff
changeset
|
283 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 (?) |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
284 |
32727
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
285 Note: we use this weird path to run pip and hg to avoid platform differences, |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
286 since it's bin on most platforms but Scripts on Windows. |
32954
b5305a499dfc
tests: tell pip not to check for a newer version
Danek Duvall <danek.duvall@oracle.com>
parents:
32944
diff
changeset
|
287 $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log |
42066
65ed223619ec
tests: add optional output for Python 2.7 deprecation
Gregory Szorc <gregory.szorc@gmail.com>
parents:
41920
diff
changeset
|
288 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. (?) |
43006
d6f34ceb08db
tests: look for additional pip warning variant
Gregory Szorc <gregory.szorc@gmail.com>
parents:
42652
diff
changeset
|
289 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 (?) |
32727
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
290 $ ./installenv/*/hg debuginstall || cat pip.log |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
291 checking encoding (ascii)... |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
292 checking Python executable (*) (glob) |
43410
9bab6407c2c9
tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents:
43409
diff
changeset
|
293 checking Python version (2.*) (glob) |
32727
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
294 checking Python lib (*)... (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
295 checking Python security support (*) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
296 TLS 1.2 not supported by Python install; network connections lack modern security (?) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
297 SNI not supported by Python install; may have connectivity issues with some servers (?) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
298 checking Mercurial version (*) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
299 checking Mercurial custom build (*) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
300 checking module policy (*) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
301 checking installed modules (*/mercurial)... (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
302 checking registered compression engines (*) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
303 checking available compression engines (*) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
304 checking available compression engines for wire protocol (*) (glob) |
35448
8251c4c4abdc
debuginstall: add a line about re2 availability
Boris Feld <boris.feld@octobus.net>
parents:
34130
diff
changeset
|
305 checking "re2" regexp engine \((available|missing)\) (re) |
32727
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
306 checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
307 checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
308 checking commit editor... (*) (glob) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
309 checking username (test) |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
310 no problems detected |
c94c1aeb35fb
tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents:
32209
diff
changeset
|
311 #endif |