PATCH: debug-test script (from wiki)

Martin Geisler mg at lazybytes.net
Mon Apr 20 14:07:57 CDT 2009


Greg Ward <greg-hg at gerg.ca> writes:

> After hacking on Mercurial all weekend, I'm getting tired of grabbing
> the the "debug-test" script from
> http://www.selenic.com/mercurial/wiki/index.cgi/DebuggingTests for
> every working clone.  And then I have to remember that tests/tmp is
> full of ignoreable files.

I think it's better to extend run-tests.py a little instead of
maintaining an alternative test starter -- the debug-test script forgets
to set the LANG environment variable and may differ from run-tests.py in
other ways.

Luckily, the run-tests.py script almost supports what debug-test does.
This comes close:

   ./run-tests.py -v --keep-tmpdir --with-hg=../hg

This still creates a random directory, but it now uses the hg just above
the tests/ directory.

The --tmpdir option to run-tests.py lets you specify another base
directory for the random test directory.

I think it would be better to let --tmpdir specify the real test
directory so that there is no randomness. But then run-tests.py should
probably abort if the directory already exists, or maybe delete it?

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090420/c4f9e0b7/attachment.pgp 


More information about the Mercurial-devel mailing list