# 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 --git a/tests/run-tests b/tests/run-tests --- a/tests/run-tests +++ b/tests/run-tests @@ -6,6 +6,15 @@ tests=0 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 @@ if [ "$TESTS" == "" ] ; then 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 @@ for f in $TESTS ; do tests=$[$tests + 1] done +rm -rf install + echo echo Ran $tests tests, $failed failed