equal
deleted
inserted
replaced
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 |