comparison tests/run-tests @ 397:e5683db23ec4

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-----
author mpm@selenic.com
date Tue, 21 Jun 2005 17:19:12 -0800
parents 37249c522770
children 7ed217cfae9e
comparison
equal deleted inserted replaced
396:8f8bb77d560e 397:e5683db23ec4
3 set -e 3 set -e
4 4
5 tests=0 5 tests=0
6 failed=0 6 failed=0
7 H=$PWD 7 H=$PWD
8
9 TESTPATH=$PWD/install/bin
10 export PATH=$TESTPATH:$PATH
11 export PYTHONPATH=$PWD/install/lib/python
12
13 rm -rf install
14 cd ..
15 ${PYTHON:-python} setup.py install --home=tests/install
16 cd $H
8 17
9 function run_one 18 function run_one
10 { 19 {
11 export TZ=GMT 20 export TZ=GMT
12 D=`mktemp -d` 21 D=`mktemp -d`
42 TESTS=$@ 51 TESTS=$@
43 if [ "$TESTS" == "" ] ; then 52 if [ "$TESTS" == "" ] ; then
44 TESTS=`ls test-* | grep -Ev "\.|~"` 53 TESTS=`ls test-* | grep -Ev "\.|~"`
45 fi 54 fi
46 55
56 rm -f test-*.err
57
47 for f in $TESTS ; do 58 for f in $TESTS ; do
48 echo -n "." 59 echo -n "."
49 if ! run_one $f ; then 60 if ! run_one $f ; then
50 failed=$[$failed + 1] 61 failed=$[$failed + 1]
51 fi 62 fi
52 tests=$[$tests + 1] 63 tests=$[$tests + 1]
53 done 64 done
54 65
66 rm -rf install
67
55 echo 68 echo
56 echo Ran $tests tests, $failed failed 69 echo Ran $tests tests, $failed failed
57 70
58 if [ $failed -gt 0 ] ; then 71 if [ $failed -gt 0 ] ; then
59 exit 1 72 exit 1