~menesis/ubuntu/natty/zope.app.error/natty

« back to all changes in this revision

Viewing changes to debian/tests/all

  • Committer: Gediminas Paulauskas
  • Date: 2010-03-24 13:50:57 UTC
  • Revision ID: menesis@pov.lt-20100324135057-358wf2bctd4c6w1j
Tags: 3.5.2-1ubuntu1
* Convert to debhelper 7 and the pydeb dh7 extension.
* LICENSE.txt: add the license
* Add copyright
* Set section to zope

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
 
3
 
set -e
4
 
 
5
 
PYVERS=$(pyversions -vr debian/control)
6
 
TMPFILE=$(mktemp)
7
 
 
8
 
cat > $TMPFILE << EOF
9
 
import sys
10
 
from zope.testing import testrunner
11
 
 
12
 
subs = (sys.version_info[0], sys.version_info[1])
13
 
test_path = '/usr/lib/python%s.%s/site-packages/' % subs
14
 
 
15
 
 
16
 
 
17
 
exitcode = testrunner.run([
18
 
                '--tests-pattern', '^f?tests$',
19
 
                '-s', 'zope.app.error',
20
 
                '--test-path', test_path
21
 
                ])
22
 
sys.exit(exitcode)
23
 
EOF
24
 
 
25
 
for version in ${PYVERS}; do
26
 
    python${version} ${TMPFILE}
27
 
done
 
2
. /usr/share/python-zope.testing/test_helper