From: Andrew Thompson <andrewkt@aktzero.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
From: Andrew Thompson <andrewkt@aktzero.com>
Make a local temporary install of hg for running tests
Delete old error files before running tests
manifest hash: bbae21d506ce5be8df5dc97f14fcd0f8aece0b20
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCuLyQywK+sNU5EO8RAvROAJ93xEPZNphcpoLxGCMNkZ7SfL6+AQCfXCHZ
3kMQAuZnxo0dn98of/LVecY=
=bsV2
-----END PGP SIGNATURE-----
--- a/tests/run-tests Fri Jun 17 20:37:23 2005 +0100
+++ b/tests/run-tests Tue Jun 21 17:19:12 2005 -0800
@@ -6,6 +6,15 @@
failed=0
H=$PWD
+TESTPATH=$PWD/install/bin
+export PATH=$TESTPATH:$PATH
+export PYTHONPATH=$PWD/install/lib/python
+
+rm -rf install
+cd ..
+${PYTHON:-python} setup.py install --home=tests/install
+cd $H
+
function run_one
{
export TZ=GMT
@@ -44,6 +53,8 @@
TESTS=`ls test-* | grep -Ev "\.|~"`
fi
+rm -f test-*.err
+
for f in $TESTS ; do
echo -n "."
if ! run_one $f ; then
@@ -52,6 +63,8 @@
tests=$[$tests + 1]
done
+rm -rf install
+
echo
echo Ran $tests tests, $failed failed