test-install.t
261 lines
| 12.6 KiB
| text/troff
|
Tads3Lexer
/ tests / test-install.t
|
r11917 | hg debuginstall | ||
$ hg debuginstall | ||||
|
r16934 | checking encoding (ascii)... | ||
|
r20741 | checking Python executable (*) (glob) | ||
|
r44603 | checking Python implementation (*) (glob) | ||
|
r41010 | checking Python version (2.*) (glob) (no-py3 !) | ||
checking Python version (3.*) (glob) (py3 !) | ||||
|
r41011 | checking Python lib (.*[Ll]ib.*)... (re) | ||
|
r30222 | checking Python security support (*) (glob) | ||
TLS 1.2 not supported by Python install; network connections lack modern security (?) | ||||
SNI not supported by Python install; may have connectivity issues with some servers (?) | ||||
|
r44953 | checking Rust extensions \((installed|missing)\) (re) | ||
|
r29197 | checking Mercurial version (*) (glob) | ||
checking Mercurial custom build (*) (glob) | ||||
|
r29266 | checking module policy (*) (glob) | ||
|
r16934 | checking installed modules (*mercurial)... (glob) | ||
|
r30462 | checking registered compression engines (*zlib*) (glob) | ||
checking available compression engines (*zlib*) (glob) | ||||
|
r30762 | checking available compression engines for wire protocol (*zlib*) (glob) | ||
|
r35464 | checking "re2" regexp engine \((available|missing)\) (re) | ||
|
r45019 | checking "re2" regexp engine Rust bindings \((installed|missing)\) (re) | ||
|
r16934 | checking templates (*mercurial?templates)... (glob) | ||
|
r28440 | checking default template (*mercurial?templates?map-cmdline.default) (glob) | ||
|
r36254 | checking commit editor... (*) (glob) | ||
|
r28440 | checking username (test) | ||
|
r16934 | no problems detected | ||
|
r11917 | |||
|
r28440 | hg debuginstall JSON | ||
|
r28885 | $ hg debuginstall -Tjson | sed 's|\\\\|\\|g' | ||
|
r28440 | [ | ||
{ | ||||
|
r30462 | "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob) | ||
"compenginesavail": ["bz2", "bz2truncated", "none", "zlib"*], (glob) | ||||
|
r30762 | "compenginesserver": [*"zlib"*], (glob) | ||
|
r28440 | "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob) | ||
"defaulttemplateerror": null, | ||||
"defaulttemplatenotfound": "default", | ||||
|
r36254 | "editor": "*", (glob) | ||
|
r28440 | "editornotfound": false, | ||
"encoding": "ascii", | ||||
"encodingerror": null, | ||||
|
r32204 | "extensionserror": null, (no-pure !) | ||
|
r29266 | "hgmodulepolicy": "*", (glob) | ||
|
r28440 | "hgmodules": "*mercurial", (glob) | ||
|
r29197 | "hgver": "*", (glob) | ||
"hgverextra": "*", (glob) | ||||
|
r28440 | "problems": 0, | ||
|
r28544 | "pythonexe": "*", (glob) | ||
|
r44603 | "pythonimplementation": "*", (glob) | ||
|
r28626 | "pythonlib": "*", (glob) | ||
|
r30222 | "pythonsecurity": [*], (glob) | ||
|
r28440 | "pythonver": "*.*.*", (glob) | ||
|
r35464 | "re2": (true|false), (re) | ||
|
r28440 | "templatedirs": "*mercurial?templates", (glob) | ||
"username": "test", | ||||
"usernameerror": null, | ||||
"vinotfound": false | ||||
} | ||||
] | ||||
|
r11917 | hg debuginstall with no username | ||
$ HGUSER= hg debuginstall | ||||
|
r16934 | checking encoding (ascii)... | ||
|
r20741 | checking Python executable (*) (glob) | ||
|
r44603 | checking Python implementation (*) (glob) | ||
|
r41010 | checking Python version (2.*) (glob) (no-py3 !) | ||
checking Python version (3.*) (glob) (py3 !) | ||||
|
r41011 | checking Python lib (.*[Ll]ib.*)... (re) | ||
|
r30222 | checking Python security support (*) (glob) | ||
TLS 1.2 not supported by Python install; network connections lack modern security (?) | ||||
SNI not supported by Python install; may have connectivity issues with some servers (?) | ||||
|
r44953 | checking Rust extensions \((installed|missing)\) (re) | ||
|
r29197 | checking Mercurial version (*) (glob) | ||
checking Mercurial custom build (*) (glob) | ||||
|
r29266 | checking module policy (*) (glob) | ||
|
r16934 | checking installed modules (*mercurial)... (glob) | ||
|
r30462 | checking registered compression engines (*zlib*) (glob) | ||
checking available compression engines (*zlib*) (glob) | ||||
|
r30762 | checking available compression engines for wire protocol (*zlib*) (glob) | ||
|
r35464 | checking "re2" regexp engine \((available|missing)\) (re) | ||
|
r45019 | checking "re2" regexp engine Rust bindings \((installed|missing)\) (re) | ||
|
r16934 | checking templates (*mercurial?templates)... (glob) | ||
|
r28440 | checking default template (*mercurial?templates?map-cmdline.default) (glob) | ||
|
r36254 | checking commit editor... (*) (glob) | ||
|
r16934 | checking username... | ||
|
r20574 | no username supplied | ||
|
r12084 | (specify a username in your configuration file) | ||
|
r11917 | 1 problems detected, please check your install! | ||
|
r12316 | [1] | ||
|
r24891 | |||
|
r34131 | hg debuginstall with invalid encoding | ||
$ HGENCODING=invalidenc hg debuginstall | grep encoding | ||||
checking encoding (invalidenc)... | ||||
unknown encoding: invalidenc | ||||
|
r34132 | exception message in JSON | ||
$ HGENCODING=invalidenc HGUSER= hg debuginstall -Tjson | grep error | ||||
"defaulttemplateerror": null, | ||||
"encodingerror": "unknown encoding: invalidenc", | ||||
"extensionserror": null, (no-pure !) | ||||
"usernameerror": "no username supplied", | ||||
|
r24891 | path variables are expanded (~ is the same as $TESTTMP) | ||
$ mkdir tools | ||||
$ touch tools/testeditor.exe | ||||
#if execbit | ||||
$ chmod 755 tools/testeditor.exe | ||||
#endif | ||||
|
r35538 | $ HGEDITOR="~/tools/testeditor.exe" hg debuginstall | ||
|
r24891 | checking encoding (ascii)... | ||
checking Python executable (*) (glob) | ||||
|
r44603 | checking Python implementation (*) (glob) | ||
|
r41010 | checking Python version (2.*) (glob) (no-py3 !) | ||
checking Python version (3.*) (glob) (py3 !) | ||||
|
r41011 | checking Python lib (.*[Ll]ib.*)... (re) | ||
|
r30222 | checking Python security support (*) (glob) | ||
TLS 1.2 not supported by Python install; network connections lack modern security (?) | ||||
SNI not supported by Python install; may have connectivity issues with some servers (?) | ||||
|
r44953 | checking Rust extensions \((installed|missing)\) (re) | ||
|
r29197 | checking Mercurial version (*) (glob) | ||
checking Mercurial custom build (*) (glob) | ||||
|
r29266 | checking module policy (*) (glob) | ||
|
r24891 | checking installed modules (*mercurial)... (glob) | ||
|
r30462 | checking registered compression engines (*zlib*) (glob) | ||
checking available compression engines (*zlib*) (glob) | ||||
|
r30762 | checking available compression engines for wire protocol (*zlib*) (glob) | ||
|
r35464 | checking "re2" regexp engine \((available|missing)\) (re) | ||
|
r45019 | checking "re2" regexp engine Rust bindings \((installed|missing)\) (re) | ||
|
r24891 | checking templates (*mercurial?templates)... (glob) | ||
|
r28440 | checking default template (*mercurial?templates?map-cmdline.default) (glob) | ||
|
r35538 | checking commit editor... ($TESTTMP/tools/testeditor.exe) | ||
|
r28440 | checking username (test) | ||
|
r24891 | no problems detected | ||
|
r27383 | |||
|
r36254 | print out the binary post-shlexsplit in the error message when commit editor is | ||
not found (this is intentionally using backslashes to mimic a windows usecase). | ||||
$ HGEDITOR="c:\foo\bar\baz.exe -y -z" hg debuginstall | ||||
checking encoding (ascii)... | ||||
checking Python executable (*) (glob) | ||||
|
r44603 | checking Python implementation (*) (glob) | ||
|
r41010 | checking Python version (2.*) (glob) (no-py3 !) | ||
checking Python version (3.*) (glob) (py3 !) | ||||
|
r41011 | checking Python lib (.*[Ll]ib.*)... (re) | ||
|
r36254 | checking Python security support (*) (glob) | ||
TLS 1.2 not supported by Python install; network connections lack modern security (?) | ||||
SNI not supported by Python install; may have connectivity issues with some servers (?) | ||||
|
r44953 | checking Rust extensions \((installed|missing)\) (re) | ||
|
r36254 | checking Mercurial version (*) (glob) | ||
checking Mercurial custom build (*) (glob) | ||||
checking module policy (*) (glob) | ||||
checking installed modules (*mercurial)... (glob) | ||||
checking registered compression engines (*zlib*) (glob) | ||||
checking available compression engines (*zlib*) (glob) | ||||
checking available compression engines for wire protocol (*zlib*) (glob) | ||||
checking "re2" regexp engine \((available|missing)\) (re) | ||||
|
r45019 | checking "re2" regexp engine Rust bindings \((installed|missing)\) (re) | ||
|
r36254 | checking templates (*mercurial?templates)... (glob) | ||
checking default template (*mercurial?templates?map-cmdline.default) (glob) | ||||
|
r36327 | checking commit editor... (c:\foo\bar\baz.exe) (windows !) | ||
Can't find editor 'c:\foo\bar\baz.exe' in PATH (windows !) | ||||
checking commit editor... (c:foobarbaz.exe) (no-windows !) | ||||
Can't find editor 'c:foobarbaz.exe' in PATH (no-windows !) | ||||
|
r36254 | (specify a commit editor in your configuration file) | ||
checking username (test) | ||||
1 problems detected, please check your install! | ||||
[1] | ||||
|
r42879 | debuginstall extension support | ||
$ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false | grep atchman | ||||
fsmonitor checking for watchman binary... (false) | ||||
watchman binary missing or broken: warning: Watchman unavailable: watchman exited with code 1 | ||||
Verify the json works too: | ||||
$ hg debuginstall --config extensions.fsmonitor= --config fsmonitor.watchman_exe=false -Tjson | grep atchman | ||||
"fsmonitor-watchman": "false", | ||||
"fsmonitor-watchman-error": "warning: Watchman unavailable: watchman exited with code 1", | ||||
|
r32727 | Verify that Mercurial is installable with pip. Note that this MUST be | ||
the last test in this file, because we do some nasty things to the | ||||
shell environment in order to make the virtualenv work reliably. | ||||
|
r43728 | On Python 3, we use the venv module, which is part of the standard library. | ||
|
r43730 | But some Linux distros strip out this module's functionality involving pip, | ||
so we have to look for the ensurepip module, which these distros strip out | ||||
completely. | ||||
|
r43728 | On Python 2, we use the 3rd party virtualenv module, if available. | ||
|
r32727 | $ cd $TESTTMP | ||
|
r43728 | $ unset PYTHONPATH | ||
|
r43730 | #if py3 ensurepip | ||
|
r43728 | $ "$PYTHON" -m venv installenv >> pip.log | ||
Note: we use this weird path to run pip and hg to avoid platform differences, | ||||
since it's bin on most platforms but Scripts on Windows. | ||||
$ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log | ||||
|
r44021 | Failed building wheel for mercurial (?) | ||
|
r43728 | $ ./installenv/*/hg debuginstall || cat pip.log | ||
checking encoding (ascii)... | ||||
checking Python executable (*) (glob) | ||||
|
r44603 | checking Python implementation (*) (glob) | ||
|
r43728 | checking Python version (3.*) (glob) | ||
checking Python lib (*)... (glob) | ||||
checking Python security support (*) (glob) | ||||
|
r44953 | checking Rust extensions \((installed|missing)\) (re) | ||
|
r43728 | checking Mercurial version (*) (glob) | ||
checking Mercurial custom build (*) (glob) | ||||
checking module policy (*) (glob) | ||||
checking installed modules (*/mercurial)... (glob) | ||||
checking registered compression engines (*) (glob) | ||||
checking available compression engines (*) (glob) | ||||
checking available compression engines for wire protocol (*) (glob) | ||||
checking "re2" regexp engine \((available|missing)\) (re) | ||||
|
r45019 | checking "re2" regexp engine Rust bindings \((installed|missing)\) (re) | ||
|
r43728 | checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob) | ||
checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob) | ||||
checking commit editor... (*) (glob) | ||||
checking username (test) | ||||
no problems detected | ||||
#endif | ||||
#if no-py3 virtualenv | ||||
|
r32727 | Note: --no-site-packages is deprecated, but some places have an | ||
ancient virtualenv from their linux distro or similar and it's not yet | ||||
the default for them. | ||||
|
r43728 | |||
|
r39743 | $ "$PYTHON" -m virtualenv --no-site-packages --never-download installenv >> pip.log | ||
|
r41672 | 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. (?) | ||
|
r43276 | 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 (?) | ||
|
r43728 | |||
|
r32727 | Note: we use this weird path to run pip and hg to avoid platform differences, | ||
since it's bin on most platforms but Scripts on Windows. | ||||
|
r32954 | $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log | ||
|
r42233 | 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. (?) | ||
|
r43276 | 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 (?) | ||
|
r32727 | $ ./installenv/*/hg debuginstall || cat pip.log | ||
checking encoding (ascii)... | ||||
checking Python executable (*) (glob) | ||||
|
r44603 | checking Python implementation (*) (glob) | ||
|
r43728 | checking Python version (2.*) (glob) | ||
|
r32727 | checking Python lib (*)... (glob) | ||
checking Python security support (*) (glob) | ||||
TLS 1.2 not supported by Python install; network connections lack modern security (?) | ||||
SNI not supported by Python install; may have connectivity issues with some servers (?) | ||||
|
r44953 | checking Rust extensions \((installed|missing)\) (re) | ||
|
r32727 | checking Mercurial version (*) (glob) | ||
checking Mercurial custom build (*) (glob) | ||||
checking module policy (*) (glob) | ||||
checking installed modules (*/mercurial)... (glob) | ||||
checking registered compression engines (*) (glob) | ||||
checking available compression engines (*) (glob) | ||||
checking available compression engines for wire protocol (*) (glob) | ||||
|
r35464 | checking "re2" regexp engine \((available|missing)\) (re) | ||
|
r45019 | checking "re2" regexp engine Rust bindings \((installed|missing)\) (re) | ||
|
r32727 | checking templates ($TESTTMP/installenv/*/site-packages/mercurial/templates)... (glob) | ||
checking default template ($TESTTMP/installenv/*/site-packages/mercurial/templates/map-cmdline.default) (glob) | ||||
checking commit editor... (*) (glob) | ||||
checking username (test) | ||||
no problems detected | ||||
#endif | ||||