Windows Tests

Matt Mackall mpm at selenic.com
Wed May 4 07:51:25 CDT 2011


On Wed, 2011-05-04 at 14:33 +0200, Friedrich, Anna-Christina wrote:
> Maybe you can implement the changes I mentioned before (adjust hg.bat and run-tests.py) as a first step. 
> That would be very helpful for us.

Send patches, please. See:

http://mercurial.selenic.com/wiki/ContributingChanges

> Furthermore we'd like to participate in implementations that go beyond our "Windows Testing with Batch Files".
> It's an interesting approach to add markers to the .t format. But consider for example functions in .t files.
> I converted those to labels in Batch, otherwise it won't work on Windows. 
> Consider following as well:
> 
> $ cat >> $HGRCPATH <<EOF
>   > [extensions]
>   > convert=
>   > [convert]
>   > hg.saverev=False
>   > EOF
> 
> There are also for and if blocks, that have different syntax for Windows.
> 
> Therefore you have to change almost everything, except of hg-commands 
> -> is it really useful to plaster .t files with markers?

Realistically, we're not going to be able to maintain two independent
test suites. The majority of developers use Unix so the Windows test
suite would not keep pace. We need to share as much as possible between
Windows tests and Unix tests to have any hope of succeeding.

So we've either got to figure out how to run the existing tests on
Windows unmodified or how to minimally annotate test files with the
changes needed for Windows.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list