# HG changeset patch # User mpm@selenic.com # Date 1119403152 28800 # Node ID e5683db23ec487e02ceb5a9f8e19e96c9c228707 # Parent 8f8bb77d560e70bcc95577e4dfa877df18d876ab From: Andrew Thompson -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 From: Andrew Thompson 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----- diff -r 8f8bb77d560e -r e5683db23ec4 tests/run-tests --- 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