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