PATCH: debug-test script (from wiki)

Martin Geisler mg at lazybytes.net
Mon Apr 20 14:21:53 CDT 2009


Martin Geisler <mg at lazybytes.net> writes:

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

Ah, wait... I didn't look very closely at the output. The --with-hg
option does not take the path to the hg executable, but instead a base
directory where it expects to find bin/hg.

So I guess run-tests.py needs a bit more work before it can duplicate
the script.

-- 
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/9e996682/attachment.pgp 


More information about the Mercurial-devel mailing list