~landscape/zope3/newer-from-ztk

« back to all changes in this revision

Viewing changes to releases/Zope-test.py

  • Committer: Sidnei da Silva
  • Date: 2010-03-01 20:16:04 UTC
  • Revision ID: sidnei.da.silva@canonical.com-20100301201604-sgbk0u8j7lzqycak
- Remove releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import os, sys
2
 
 
3
 
def do(command):
4
 
    print command
5
 
    if os.system(command):
6
 
        sys.exit(1)
7
 
 
8
 
 
9
 
test_ignores = '--ignore_dir=zdaemon --ignore_dir=testing --ignore_dir=server'
10
 
 
11
 
do('rm -rf Zope-0.0.0*')
12
 
do('../../zpkgtools/bin/zpkg -caCZope.cfg Zope')
13
 
do('tar xzf Zope-0.0.0.tgz')
14
 
os.chdir('Zope-0.0.0')
15
 
do('./configure --prefix `pwd`/z --with-python=%s' %sys.executable)
16
 
do('make install')
17
 
os.chdir('z')
18
 
do("bin/zopetest -m. -vpc1 " + test_ignores)
19
 
do("bin/mkzopeinstance -d`pwd`/../i -uadmin:123 -m SHA1")
20
 
os.chdir('../i')
21
 
do("bin/test --testzope -vpc1 " + test_ignores)