Windows Tests

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Thu May 5 03:14:14 CDT 2011


On Thu, May 5, 2011 at 10:06 AM, Friedrich, Anna-Christina
<Anna-Christina.Friedrich at draeger.com> wrote:
> I know cmd.exe is not as powerful.
> Martin pointed out the right thing which is essential for our use of mercurial:
>
>>I think part of the fun is to run the commands using cmd.exe -- this is
>>what most users will end up doing, so if the test suite is to have any
>>value, we need to test in that environment.
>
>
> As I mentioned before, I implemented a converter tool,
> which made approximately 130 tests executable on Windows.
> The tool turns .t files into batch files. It is not perfect and once in a while you have to adjust some parts manually.
> The major benefit is that those tests run via cmd.exe.

Can these "once in a while" things be addressed with Matt's (U) and
(W) prefixes so that your conversion would be fully automatic, that
is, not requiring us to maintain tests as both .t and .bat files?
-parren

>
> -----Original Message-----
> From: Sune Foldager [mailto:cryo at cyanite.org]
> Sent: Donnerstag, 5. Mai 2011 09:41
> To: Martin Geisler
> Cc: Isaac Jurado; Friedrich, Anna-Christina; mercurial-devel at selenic.com; Greg Ward
> Subject: Re: Windows Tests
>
> On Thu, May 05, 2011 at 09:30:23 +0200, Martin Geisler wrote:
>>Isaac Jurado <diptongo at gmail.com> writes:
>>
>>> On Wed, May 4, 2011 at 2:51 PM, Matt Mackall <mpm at selenic.com> wrote:
>>>>
>>>> So we've either got to figure out how to run the existing tests on
>>>> Windows unmodified
>>>
>>> Maybe something like this?  Although a bit outdated:
>>>
>>>     http://unxutils.sourceforge.net/
>>>
>>> The MSYS may work too:
>>>
>>>     http://www.mingw.org/wiki/msys
>>>
>>> Both alternatives are much lighter than a full Cygwin install.  Even
>>> including a bourne-shell.
>>
>>I think part of the fun is to run the commands using cmd.exe -- this is
>>what most users will end up doing, so if the test suite is to have any
>>value, we need to test in that environment.
>
> I think this is unrealistic; cmd.exe is a bag of hurt in this sceanrio.
> It's not just the lack of obvious commands, but also the lack of any shell intelligence. I think it's more viable to ..*sigh*..simulate bash to some extent.
>
> -Sune
> ---
> This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.
>
> Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-mail aus Ihrem System.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>


More information about the Mercurial-devel mailing list