Windows Tests

Friedrich, Anna-Christina Anna-Christina.Friedrich at draeger.com
Thu May 5 03:37:28 CDT 2011


 
After converting to batch, you have to adjust the batch script once in a while.
For example:
I discovered that some .t tests contain comments using #.
On the other hand there are .t tests which use # inside hg commands, e.g. commit-comments or filenames.
Most of my tool does string search and replace. Therefore it is not possible to automatically decide 
whether # introduces a comment or is used inside a command.
What I did is: deleting comments manually.

I hope it is clear that prefixes wouldn't solve this problem?

Best regards  

-----Original Message-----
From: Peter Arrenbrecht [mailto:peter.arrenbrecht at gmail.com] 
Sent: Donnerstag, 5. Mai 2011 10:14
To: Friedrich, Anna-Christina
Cc: Sune Foldager; Martin Geisler; Greg Ward; mercurial-devel at selenic.com
Subject: Re: Windows Tests

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
---
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.


More information about the Mercurial-devel mailing list