Windows Tests

Adrian Buehlmann adrian at cadifra.com
Sun Apr 24 02:38:47 CDT 2011


On 2011-04-24 03:22, Greg Ward wrote:
> Perhaps you chose bad examples: IMHO run-tests.py can and should paper
> over simple, obvious, common things like / vs \ and cat vs type.
> However, for non-common things, some sort of platform conditional
> would be nice.

Hmm. Consider (using cmd.exe on Windows 7 x64 here):

  $ hg status
  M x\bla.txt

  $ hg --config ui.slash=True status
  M x/bla.txt

  $ hg version -q
  Mercurial Distributed SCM (version 1.8.2+118-1cafa0426a1a)

Perhaps this could be a global mode setting for the test engine? Example
(lines beginning with '@' switch the test mode):

  $ hg status
  M x/bla.txt

@ SEP=native

  $ hg status
  [W] M x\bla.txt
  [U] M x/bla.txt
  $ hg --config ui.slash=True status
  [W] M x/bla.txt
  [U] M x/bla.txt

@ SEP=slash

  $ hg status
  M x/bla.txt

With the SEP testmode having a default of 'slash'.


More information about the Mercurial-devel mailing list