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

« back to all changes in this revision

Viewing changes to debian/tests/all

  • Committer: Gediminas Paulauskas
  • Date: 2009-12-30 18:47:31 UTC
  • Revision ID: menesis@pov.lt-20091230184731-y4xbpc3lnw9id2vc
Tags: 3.12.0-0ubuntu1
* New upstream release
* Set section to zope
* Add description

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.appsetup',
 
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