annotate tests/test-install.t @ 50928:d718eddf01d9

safehasattr: drop usage in favor of hasattr The two functions should now be equivalent at least in their usage in core.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 31 Aug 2023 23:56:15 +0200
parents 950c39918bd2
children 4f4f65c67729
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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)
44145
0b475b0b0344 debugcommands: add Python implementation to debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43623
diff changeset
5 checking Python implementation (*) (glob)
49876
950c39918bd2 tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents: 49845
diff changeset
6 checking Python version (3.*) (glob)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
7 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
8 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
30222
7b428b00a1d4 commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29266
diff changeset
9 checking Python security support (*) (glob)
7b428b00a1d4 commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29266
diff changeset
10 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
11 SNI not supported by Python install; may have connectivity issues with some servers (?)
44463
295417387769 debuginstall: print if Rust extensions are installed
Raphaël Gomès <rgomes@octobus.net>
parents: 44145
diff changeset
12 checking Rust extensions \((installed|missing)\) (re)
29197
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
13 checking Mercurial version (*) (glob)
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
14 checking Mercurial custom build (*) (glob)
29266
b3a677c82a35 debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents: 29219
diff changeset
15 checking module policy (*) (glob)
49835
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
16 checking installed modules (*mercurial)... (glob) (no-pyoxidizer-in-memory !)
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
17 checking installed modules (*/release/app/hg*)... (glob) (pyoxidizer-in-memory !)
30462
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
18 checking registered compression engines (*zlib*) (glob)
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
19 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
20 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
21 checking "re2" regexp engine \((available|missing)\) (re)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
22 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
23 checking templates (*app?templates)... (glob) (pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
24 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
25 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
36236
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
26 checking commit editor... (*) (glob)
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
27 checking username (test)
16934
0c9c41e53f1a debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 15447
diff changeset
28 no problems detected
9734
36c388a1aa51 commands: call ui.username carefully in debuginstall
Martin Geisler <mg@lazybytes.net>
parents: 4365
diff changeset
29
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
30 hg debuginstall JSON
28885
d7e7b3dd44c8 test-install: fix output on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 28626
diff changeset
31 $ hg debuginstall -Tjson | sed 's|\\\\|\\|g'
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
32 [
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
33 {
30462
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
34 "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
35 "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
36 "compenginesserver": [*"zlib"*], (glob)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
37 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
38 "defaulttemplate": "*app?templates?map-cmdline.default", (glob) (pyoxidizer !)
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
39 "defaulttemplateerror": null,
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
40 "defaulttemplatenotfound": "default",
36236
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
41 "editor": "*", (glob)
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
42 "editornotfound": false,
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
43 "encoding": "ascii",
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
44 "encodingerror": null,
32209
85dc5a25f1fc debuginstall: check C extensions only if they are loadable per policy
Yuya Nishihara <yuya@tcha.org>
parents: 31098
diff changeset
45 "extensionserror": null, (no-pure !)
29266
b3a677c82a35 debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents: 29219
diff changeset
46 "hgmodulepolicy": "*", (glob)
49835
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
47 "hgmodules": "*mercurial", (glob) (no-pyoxidizer-in-memory !)
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
48 "hgmodules": "*/release/app/hg*", (glob) (pyoxidizer-in-memory !)
29197
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
49 "hgver": "*", (glob)
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
50 "hgverextra": "*", (glob)
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
51 "problems": 0,
28544
4d93d73b8aec tests: python executable path should always be globbed
Danek Duvall <danek.duvall@oracle.com>
parents: 28440
diff changeset
52 "pythonexe": "*", (glob)
44145
0b475b0b0344 debugcommands: add Python implementation to debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43623
diff changeset
53 "pythonimplementation": "*", (glob)
28626
60ee2593a270 tests: python executable should always be globbed
Sean Farley <sean@farley.io>
parents: 28544
diff changeset
54 "pythonlib": "*", (glob)
30222
7b428b00a1d4 commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29266
diff changeset
55 "pythonsecurity": [*], (glob)
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
56 "pythonver": "*.*.*", (glob)
35448
8251c4c4abdc debuginstall: add a line about re2 availability
Boris Feld <boris.feld@octobus.net>
parents: 34130
diff changeset
57 "re2": (true|false), (re)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
58 "templatedirs": "*mercurial?templates", (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
59 "templatedirs": "*app?templates", (glob) (pyoxidizer !)
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
60 "username": "test",
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
61 "usernameerror": null,
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
62 "vinotfound": false
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
63 }
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
64 ]
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
65
11917
b03cf2349a80 tests: unify test-install
Pradeepkumar Gayam <in3xes@gmail.com>
parents: 9734
diff changeset
66 hg debuginstall with no username
b03cf2349a80 tests: unify test-install
Pradeepkumar Gayam <in3xes@gmail.com>
parents: 9734
diff changeset
67 $ HGUSER= hg debuginstall
16934
0c9c41e53f1a debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 15447
diff changeset
68 checking encoding (ascii)...
20741
f1dfef0a9352 debuginstall: change showing to checking for consistency and future checking
Matt Mackall <mpm@selenic.com>
parents: 20740
diff changeset
69 checking Python executable (*) (glob)
44145
0b475b0b0344 debugcommands: add Python implementation to debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43623
diff changeset
70 checking Python implementation (*) (glob)
49876
950c39918bd2 tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents: 49845
diff changeset
71 checking Python version (3.*) (glob)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
72 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
73 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
30222
7b428b00a1d4 commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29266
diff changeset
74 checking Python security support (*) (glob)
7b428b00a1d4 commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29266
diff changeset
75 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
76 SNI not supported by Python install; may have connectivity issues with some servers (?)
44463
295417387769 debuginstall: print if Rust extensions are installed
Raphaël Gomès <rgomes@octobus.net>
parents: 44145
diff changeset
77 checking Rust extensions \((installed|missing)\) (re)
29197
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
78 checking Mercurial version (*) (glob)
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
79 checking Mercurial custom build (*) (glob)
29266
b3a677c82a35 debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents: 29219
diff changeset
80 checking module policy (*) (glob)
49835
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
81 checking installed modules (*mercurial)... (glob) (no-pyoxidizer-in-memory !)
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
82 checking installed modules (*/release/app/hg*)... (glob) (pyoxidizer-in-memory !)
30462
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
83 checking registered compression engines (*zlib*) (glob)
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
84 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
85 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
86 checking "re2" regexp engine \((available|missing)\) (re)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
87 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
88 checking templates (*app?templates)... (glob) (pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
89 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
90 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
36236
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
91 checking commit editor... (*) (glob)
16934
0c9c41e53f1a debuginstall: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 15447
diff changeset
92 checking username...
20574
5614f8cf0861 ui: suggest config --edit when no username is set
Matt Mackall <mpm@selenic.com>
parents: 17392
diff changeset
93 no username supplied
12084
ff7c1118a83a Merge with stable
Martin Geisler <mg@aragost.com>
parents: 12004
diff changeset
94 (specify a username in your configuration file)
11917
b03cf2349a80 tests: unify test-install
Pradeepkumar Gayam <in3xes@gmail.com>
parents: 9734
diff changeset
95 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
96 [1]
24891
be4915009b09 debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents: 20741
diff changeset
97
34129
902219a99901 debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents: 33204
diff changeset
98 hg debuginstall with invalid encoding
902219a99901 debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents: 33204
diff changeset
99 $ HGENCODING=invalidenc hg debuginstall | grep encoding
902219a99901 debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents: 33204
diff changeset
100 checking encoding (invalidenc)...
902219a99901 debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents: 33204
diff changeset
101 unknown encoding: invalidenc
902219a99901 debuginstall: use codecs.lookup() to detect invalid encoding
Yuya Nishihara <yuya@tcha.org>
parents: 33204
diff changeset
102
34130
ada8a19672ab debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents: 34129
diff changeset
103 exception message in JSON
ada8a19672ab debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents: 34129
diff changeset
104
ada8a19672ab debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents: 34129
diff changeset
105 $ 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
106 "defaulttemplateerror": null,
ada8a19672ab debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents: 34129
diff changeset
107 "encodingerror": "unknown encoding: invalidenc",
ada8a19672ab debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents: 34129
diff changeset
108 "extensionserror": null, (no-pure !)
ada8a19672ab debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents: 34129
diff changeset
109 "usernameerror": "no username supplied",
ada8a19672ab debuginstall: do not pass exception object to formatter (issue5676)
Yuya Nishihara <yuya@tcha.org>
parents: 34129
diff changeset
110
24891
be4915009b09 debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents: 20741
diff changeset
111 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
112 $ mkdir tools
be4915009b09 debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents: 20741
diff changeset
113 $ 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
114 #if execbit
be4915009b09 debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents: 20741
diff changeset
115 $ 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
116 #endif
35520
711149d8e676 tests: switch test from '--config ui.editor=~/foo' to HGEDITOR=~/foo
Kyle Lippincott <spectral@google.com>
parents: 35448
diff changeset
117 $ 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
118 checking encoding (ascii)...
be4915009b09 debuginstall: expand the editor path before searching for it (issue4380)
Matt Harbison <matt_harbison@yahoo.com>
parents: 20741
diff changeset
119 checking Python executable (*) (glob)
44145
0b475b0b0344 debugcommands: add Python implementation to debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43623
diff changeset
120 checking Python implementation (*) (glob)
49876
950c39918bd2 tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents: 49845
diff changeset
121 checking Python version (3.*) (glob)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
122 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
123 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
30222
7b428b00a1d4 commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29266
diff changeset
124 checking Python security support (*) (glob)
7b428b00a1d4 commands: print security protocol support in debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29266
diff changeset
125 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
126 SNI not supported by Python install; may have connectivity issues with some servers (?)
44463
295417387769 debuginstall: print if Rust extensions are installed
Raphaël Gomès <rgomes@octobus.net>
parents: 44145
diff changeset
127 checking Rust extensions \((installed|missing)\) (re)
29197
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
128 checking Mercurial version (*) (glob)
c5f9ff302065 debuginstall: add mercurial version
timeless <timeless@mozdev.org>
parents: 29090
diff changeset
129 checking Mercurial custom build (*) (glob)
29266
b3a677c82a35 debuginstall: expose modulepolicy
timeless <timeless@mozdev.org>
parents: 29219
diff changeset
130 checking module policy (*) (glob)
49835
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
131 checking installed modules (*mercurial)... (glob) (no-pyoxidizer-in-memory !)
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
132 checking installed modules (*/release/app/hg*)... (glob) (pyoxidizer-in-memory !)
30462
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
133 checking registered compression engines (*zlib*) (glob)
356406ac454f debuginstall: print compression engine support
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30222
diff changeset
134 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
135 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
136 checking "re2" regexp engine \((available|missing)\) (re)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
137 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
138 checking templates (*app?templates)... (glob) (pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
139 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
140 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
35520
711149d8e676 tests: switch test from '--config ui.editor=~/foo' to HGEDITOR=~/foo
Kyle Lippincott <spectral@google.com>
parents: 35448
diff changeset
141 checking commit editor... ($TESTTMP/tools/testeditor.exe)
28440
855d9b2eea67 debuginstall: convert to formatter
timeless <timeless@mozdev.org>
parents: 27684
diff changeset
142 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
143 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
144
36236
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
145 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
146 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
147 $ 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
148 checking encoding (ascii)...
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
149 checking Python executable (*) (glob)
44145
0b475b0b0344 debugcommands: add Python implementation to debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43623
diff changeset
150 checking Python implementation (*) (glob)
49876
950c39918bd2 tests: drop `(py3 !)` output matching predicates
Matt Harbison <matt_harbison@yahoo.com>
parents: 49845
diff changeset
151 checking Python version (3.*) (glob)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
152 checking Python lib (.*[Ll]ib.*)... (re) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
153 checking Python lib (.*pyoxidizer.*)... (re) (pyoxidizer !)
36236
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
154 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
155 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
156 SNI not supported by Python install; may have connectivity issues with some servers (?)
44463
295417387769 debuginstall: print if Rust extensions are installed
Raphaël Gomès <rgomes@octobus.net>
parents: 44145
diff changeset
157 checking Rust extensions \((installed|missing)\) (re)
36236
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
158 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
159 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
160 checking module policy (*) (glob)
49835
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
161 checking installed modules (*mercurial)... (glob) (no-pyoxidizer-in-memory !)
4836705ab9ba tests: conditionalize path output for in-memory pyoxidizer resources
Matt Harbison <matt_harbison@yahoo.com>
parents: 48874
diff changeset
162 checking installed modules (*/release/app/hg*)... (glob) (pyoxidizer-in-memory !)
36236
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
163 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
164 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
165 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
166 checking "re2" regexp engine \((available|missing)\) (re)
47845
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
167 checking templates (*mercurial?templates)... (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
168 checking templates (*app?templates)... (glob) (pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
169 checking default template (*mercurial?templates?map-cmdline.default) (glob) (no-pyoxidizer !)
887838316d3c pyoxidized: adapt output of test-install.t
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 47844
diff changeset
170 checking default template (*app?templates?map-cmdline.default) (glob) (pyoxidizer !)
36309
94a1ff16f362 debuginstall: do not parse editor command in posix way on Windows
Yuya Nishihara <yuya@tcha.org>
parents: 36236
diff changeset
171 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
172 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
173 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
174 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
175 (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
176 checking username (test)
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
177 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
178 [1]
564dec70b50c debugcommands: print out the editor that was searched for (post shlexsplit)
Kyle Lippincott <spectral@google.com>
parents: 35520
diff changeset
179
42652
684b56ade431 fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents: 42066
diff changeset
180 debuginstall extension support
684b56ade431 fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents: 42066
diff changeset
181 $ 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
182 fsmonitor checking for watchman binary... (false)
684b56ade431 fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents: 42066
diff changeset
183 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
184 Verify the json works too:
684b56ade431 fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents: 42066
diff changeset
185 $ 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
186 "fsmonitor-watchman": "false",
684b56ade431 fsmonitor: add support for extra `hg debuginstall` data
Augie Fackler <augie@google.com>
parents: 42066
diff changeset
187 "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
188
32727
c94c1aeb35fb tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents: 32209
diff changeset
189 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
190 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
191 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
192
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
193 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
194 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
195 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
196 completely.
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
197 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
198
32727
c94c1aeb35fb tests: add a test for installing hg with pip in a virtualenv
Augie Fackler <augie@google.com>
parents: 32209
diff changeset
199 $ cd $TESTTMP
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
200 $ unset PYTHONPATH
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
201
47844
fa50f208de73 pyoxidized: disable part of `test-install.t` related to pip and virtualenv
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46604
diff changeset
202 #if py3 ensurepip network-io no-pyoxidizer
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
203 $ "$PYTHON" -m venv installenv >> pip.log
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
204
45368
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
205 Hack: Debian does something a bit different in ensurepip.bootstrap. This makes
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
206 it so that pip thinks the 'wheel' wheel is installed so it can build wheels;
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
207 when it goes to try, however, it shells out to run `python3 -u <setup.py>`,
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
208 that *doesn't* get the 'wheel' wheel, and it fails with an invalid command
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
209 'bdist_wheel'. To fix this, we just delete the wheel from where Debian put it in
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
210 our virtual env. Then pip doesn't think it's installed and doesn't try to build.
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
211 $ rm installenv/share/python-wheels/wheel-*.whl >/dev/null 2>&1 || true
d71693f799a0 tests: make test-install.t work on debian systems
Kyle Lippincott <spectral@google.com>
parents: 45216
diff changeset
212
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
213 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
214 since it's bin on most platforms but Scripts on Windows.
46604
ad107ed7a4aa ci: test real dependency installation for pip
Joerg Sonnenberger <joerg@bec.de>
parents: 46097
diff changeset
215 $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
43622
45c15ed06f33 tests: add optional output when wheel is missing
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43617
diff changeset
216 Failed building wheel for mercurial (?)
46604
ad107ed7a4aa ci: test real dependency installation for pip
Joerg Sonnenberger <joerg@bec.de>
parents: 46097
diff changeset
217 WARNING: You are using pip version *; however, version * is available. (glob) (?)
ad107ed7a4aa ci: test real dependency installation for pip
Joerg Sonnenberger <joerg@bec.de>
parents: 46097
diff changeset
218 You should consider upgrading via the '$TESTTMP/installenv/bin/python* -m pip install --upgrade pip' command. (glob) (?)
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
219 $ ./installenv/*/hg debuginstall || cat pip.log
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
220 checking encoding (ascii)...
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
221 checking Python executable (*) (glob)
44145
0b475b0b0344 debugcommands: add Python implementation to debuginstall
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43623
diff changeset
222 checking Python implementation (*) (glob)
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
223 checking Python version (3.*) (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
224 checking Python lib (*)... (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
225 checking Python security support (*) (glob)
44463
295417387769 debuginstall: print if Rust extensions are installed
Raphaël Gomès <rgomes@octobus.net>
parents: 44145
diff changeset
226 checking Rust extensions \((installed|missing)\) (re)
43410
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
227 checking Mercurial version (*) (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
228 checking Mercurial custom build (*) (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
229 checking module policy (*) (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
230 checking installed modules (*/mercurial)... (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
231 checking registered compression engines (*) (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
232 checking available compression engines (*) (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
233 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
234 checking "re2" regexp engine \((available|missing)\) (re)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
235 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
236 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
237 checking commit editor... (*) (glob)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
238 checking username (test)
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
239 no problems detected
9bab6407c2c9 tests: use venv on Python 3
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43409
diff changeset
240 #endif