Commit Graph

73 Commits

Author SHA1 Message Date
Mads Kiilerich
b2aa8c5ab5 tests: skip cvs tests with msys on windows
They will fail with weird 'ssh' errors.
2011-11-21 01:49:20 +01:00
Mads Kiilerich
c9c5f0a2ca tests: introduce 'hghave msys' to skip tests that would fail because of msys 2011-11-21 01:49:20 +01:00
Mads Kiilerich
bd64c64dd6 tests: skip color test on platforms without tic 2011-11-21 00:39:32 +01:00
Mads Kiilerich
8415df7277 tests: use 'hghave serve' to guard tests that requires serve daemon management 2011-11-07 03:24:53 +01:00
Mads Kiilerich
a144f886ca tests: use 'hghave system-sh' to guard tests that requires sh in system() 2011-11-07 03:14:55 +01:00
Mads Kiilerich
8344ac235d tests: use 'hghave no-windows' to avoid testing reserved file names on windows 2011-11-07 03:14:55 +01:00
Mads Kiilerich
4838bfb2c4 tests: use 'hghave symlink' for tests using symlinks 2011-11-07 03:14:54 +01:00
Thomas Arendsen Hein
e0dfb62c23 tests: check for svn >= 1.3 and >= 1.5 in tests that require those versions 2011-10-23 21:22:55 +02:00
Idan Kamara
09359f3d7d posix, windows: introduce cachestat
This class contains a stat result, and possibly other file info to reliably
determine between two points in time whether a file has changed.

Uniquely identifying a file gives us that reliability because we either
atomic rename or append. So one of two will happen: the file 'id' will change,
or the size of the file will change.

posix implements it simply by calling os.stat() and checking if the result
has st_ino.

For now on Windows we always assume the path is uncacheable. This can be
improved on NTFS due to file IDs: http://msdn.microsoft.com/en-us/library/aa363788(v=vs.85).aspx

So we need to find out if a file path is on an NTFS drive, for that we have:

- GetVolumeInformation, which unfortunately only works with a root path (but is available on XP)
- GetVolumeInformationByHandleW, works on a full file path but requires Vista or higher
2011-07-25 15:03:02 +03:00
Thomas Arendsen Hein
cfcb12e99a tests: fix updated monotone version requirement
2f94efb209fa only updated the comment, not the actual check.
2011-06-10 16:50:45 +02:00
Sune Foldager
14d5e718b5 tests: update monotone version requirement 2011-05-26 11:11:34 +02:00
timeless
75e43f8a4b tests: add pyflakes checking for unused imports 2011-05-01 15:22:30 +02:00
Patrick Mezard
3616aca56a subrepo: handle svn tracked/unknown directory collisions
This happens more often than expected. Say you have an svn subrepository with
python code. Python would have generated unknown .pyc files. Now, you rebase
this setup on a revision where a directory containing python code does not
exist. Subversion is first asked to remove this directory when updating, but
will not because it contains untracked items. Then it will have to bring back
the directory after the merge but will fail because it now collides with an
untracked directory.

Using --force is not very elegant and only works with svn >= 1.5 but the only
alternative I can think of is to write our own purge command for subversion.
2011-03-04 14:00:49 +01:00
timeless
4901987354 tests: improve hghave error reporting for missing Py OpenSSL 2011-03-06 05:56:59 -06:00
Martin Geisler
722ee510d8 test-i18n: make test conditional on msgfmt availability 2011-02-20 13:35:30 +01:00
Mads Kiilerich
f0c431567a tests: update ssl requirement for test-https.t
hgweb requires OpenSSL for serving https.
2011-02-16 03:28:22 +01:00
Patrick Mezard
fdcf00f54a hghave: remove unused hotshot check 2011-01-23 12:30:15 +01:00
Mads Kiilerich
affe4fdcad hgweb: use Pythons ssl module for HTTPS serve when using Python 2.6 or later
pyOpenSSL apparently doesn't work for Python 2.7 and isn't very actively
maintained.

The built-in ssl module seems like a long-term winner, so we now use that with
Python 2.6 and higher.
2010-10-20 20:19:34 +02:00
Mads Kiilerich
c627f511ce serve: fix https mode and add test
The https mode failed in super because BaseRequestHandler is an old-style
class.

This introduces the first test of https client/server functionality - and
"hghave ssl". The test is currently only run on Python 2.6.
2010-10-17 04:13:35 +02:00
Martin Geisler
ce3c2717e9 doc: add generic frontend to rst2man and rst2html
This will allow us to easily register new roles and directives.
2010-04-22 09:57:04 +02:00
Patrick Mezard
d8a8eb5584 convert: reenable SVN support after license issue solved 2009-11-10 22:32:17 +01:00
Patrick Mezard
240248e679 hghave: be more tolerant to rst2html output
On Windows, rst2html.bat calls rst2html.py, printing something like:

"rst2html.py (Docutils"

(notice the extra ".py")
2009-11-10 11:57:03 +01:00
Dirkjan Ochtman
0636c72fff tests: fix hghave test for rst2html to not spew error output 2009-11-05 11:51:35 +01:00
Patrick Mezard
0133f8d115 convert/cvs: stop supporting external cvsps 2009-10-05 22:57:15 +02:00
Brendan Cully
d911a1a256 convert: unbreak non-svn engines 2009-09-30 14:43:22 -07:00
Martin Geisler
5e6ffe0a8d test-gendoc: test documentation generation 2009-09-13 18:00:37 +02:00
Simon Heimberg
e3956518ad hghave: check for case insensitive filesystem in current dir
check was done on TEMP
2009-08-07 15:34:54 +02:00
Bryan O'Sullivan
91929f684f Fix failing darcs test 2009-08-06 21:35:25 -07:00
Mads Kiilerich
ca42a59332 tests/hghave: bzr114 checks for bzr >= 1.14
Everything but the implementation indicated that bzr114 also should be true for
"or higher".
2009-07-25 02:20:27 +02:00
Brendan Cully
09380f981f gpg: add test 2009-06-14 13:32:19 -07:00
Patrick Mezard
a001fce5fc hghave: handle Windows raising on popen() failure 2009-04-26 19:39:15 +02:00
Patrick Mezard
6205446ef7 Merge with crew-stable 2009-04-23 16:52:25 +02:00
Patrick Mezard
75233223fe convert/bzr: handle files replaced by directories (issue1623) 2009-04-23 15:07:05 +02:00
Nicolas Dumazet
36eacb3699 run-tests: detect when hghave fails to check for a feature and fail test
hghave exitcode != 0 might mean that hghave failed to check for feature
avaibility. Detect those cases, and fail the test, instead of skipping it.
2009-04-08 02:38:23 +09:00
Nicolas Dumazet
f5d17ae79b hghave: checking that all targets are Exception-free 2009-04-08 02:34:00 +09:00
Frank Kingswood
a2f1d401c2 convert: Perforce source for conversion to Mercurial 2009-03-03 21:32:23 +00:00
Simon Heimberg
23251d5bdf test suite: saver check if bzr is installed
Test if bzrlib.__doc__ is not empty. Ignores an empty lib.
2009-02-08 13:46:04 +01:00
Mads Kiilerich
6e4fb4100f tests: Skip tests if they will fail because of outer repo
For different reasons these tests will fail if run in a tmpdir which is in a hg
repo.

The following three tests assumes no .hg in path dirs - I don't know how to
work around that:

* test-dispatch explicitly tests for no repo and expects "abort: There is no
Mercurial repository here (.hg not found)!"

* test-extension expects parentui to be None when not cd'ed to a repo dir

* test-globalopts tests that implicit -R works correctly - that could perhaps be
done from another repo instead of assuming no repo

The following two might be worth investigating further:

* test-convert-svn-sink fails for unknown reasons, starting with "abort:
unresolved merge conflicts (see hg resolve)"

* test-glog gets strange failures when testing "from outer space"
2008-11-27 00:57:31 +01:00
Dirkjan Ochtman
88ca4ce332 tests: run svn tests only with svn bindings >1.3 2008-11-05 18:57:54 +01:00
Dirkjan Ochtman
1fde4bfba1 tests: check for bzr support by importing bzrlib
This is better than starting bzr --version, because it works correctly when
running tests with a non-default Python (version).
2008-10-02 16:22:02 +02:00
Marek Kubica
0f790a60a5 convert: add bzr source 2008-09-26 20:33:47 +02:00
Benoit Boissinot
ebcbcef11c merge with -stable 2008-09-06 17:04:01 +02:00
Benoit Boissinot
5b0f8d909f inotify: deactivate inotify status on failure
workaround issue1208, add test
fix traceback handling (socket.error is a singleton in this case)
2008-09-06 12:49:20 +02:00
Dirkjan Ochtman
7b9076932b tests: don't run test-convert-cvs if there's no cvs server 2008-05-23 16:50:17 +02:00
Patrick Mezard
5d042582b9 Add test for case folding issues 2008-07-11 14:40:44 +02:00
Thomas Arendsen Hein
ae74a1c929 Skip older monotone versions for tests.
test-convert-mtn is known to work with 0.37 and 0.38, but fails with
0.31 (Debian etch). hghave now skips all versions up to 0.31.
2008-03-24 22:49:33 +01:00
Patrick Mezard
fe0eb5235b Add a test for monotone conversion 2008-03-23 23:18:20 +01:00
Dirkjan Ochtman
a3c9e25c1e tests: add highlight extension tests 2008-03-22 20:16:30 +01:00
Aleix Conchillo Flaque
4b38213355 convert: added GNU Arch (tla) tests and related fixes 2008-02-12 11:35:06 +01:00
Aleix Conchillo Flaque
996e817ac1 convert: added gnu arch (baz) tests 2008-02-12 10:38:34 +01:00