[PATCH] run-tests tweaking (was:Re: fix test-tags.out since hash length changed)

Michael A Fetterman Michael.Fetterman at cl.cam.ac.uk
Sat Jun 18 23:26:23 UTC 2005


In this patch are the following few lines:

+
+rm -rf tests/install
+cd ..
+${PYTHON:-python} setup.py install --home=tests/install

The "cd .." should appear before the "rm -rf", not after...
Otherwise, this seems to work great!


Michael Fetterman


-----Original Message-----
From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com]
On Behalf Of Andrew Thompson
Sent: Saturday, June 18, 2005 5:53 PM
To: Thomas Arendsen Hein
Cc: Mercurial List
Subject: [PATCH] run-tests tweaking (was:Re: fix test-tags.out since hash
length changed)

Thomas Arendsen Hein wrote:
>>Attached is a patch that goes to the parent directory, stores $PWD, and 
>>adds that to your path before calling the tests. I'm fairly certain it 
>>does the right thing to test your local copy of Mercurial.
> 
> This only works if you do "setup.py build_ext -i" before, but maybe
> you can make a local installation for the test, e.g.:
> 
> ${PYTHON:-python} setup.py --home=tests/install

This makes sense.

> $PATH should then first point to tests/install/bin and $PYTHONPATH
> only to tests/install/lib/python

Done.

>>Also, I've put in a rm -f test-*.err before the tests run so that once 
>>they're done you only have new .err files.
> 
> Thats good.

Also added an rm to flush the tests/install directory once the tests 
complete.

-- 
Andrew Thompson
http://aktzero.com/




More information about the Mercurial mailing list