Hello, I had to munge top-level 'test.py' to get it to work for the Z3.1 release 'tar.gz' bundle. It worked fine after that, and all the unit-tests ran clean - impressive.
Now, as you can see below, from this build-recipe, that that's not gonna cut it. I've nosed all about the Z3 svn-trunk dirs and files, trying to get a handle on how to run all the Z3 svn-trunk tests. If anyone has any ideas, that would be most helpful. thank you, ----mark -------------------------------- # Sun Nov 13 20:28:30 2005, Mon Nov 14 15:16:54 2005 ZSRC=/tools/zope/Zope3/Build ## there is no 3.2 release, yet... ZVERS=Zope-3.2.0a1 ZINS=/usr/local/Zope/${ZVERS} LOG=$ZSRC/${ZVERS}.log py=/usr/bin/python2.4 cd $ZSRC svn checkout svn://svn.zope.org/repos/main/Zope3/trunk Zope3_svn cd Zope3_svn svn co svn://svn.zope.org/repos/main/zpkgtools/trunk zpkgtools cd releases ## zpkg attempts a SVN checkout, by rel-name... ## ../../zpkgtools/bin/zpkg -r Zope-3.2.0a1 -C Zope.cfg Zope ../zpkgtools/bin/zpkg -C Zope.cfg Zope mv Zope-0.0.0.tgz $ZSRC cd $ZSRC mv -f $LOG $LOG.prev /bin/rm -rf ${ZVERS} tar zxf Zope-0.0.0.tgz mv Zope-0.0.0 $ZVERS cd $ZSRC/$ZVERS # CONFIGURE: read if you want more details... less README.txt ./configure --help env OPT='-O3 -Wall -march=i686' \ ./configure --prefix=$ZINS \ --force \ --with-python=$py \ >> $LOG 2>&1 # BUILD make CFLAGS='-O3 -Wall -march=i686' >> $LOG 2>&1 & # TEST - !! no go !! for Z3-trunk ... make CFLAGS='-O3 -Wall -march=i686' test >> $LOG 2>&1 & # cut 'n paste session of 'test.py' contents amdahl:398 $ python2.4 Python 2.4.1 (#2, May 5 2005, 11:32:06) [GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys, os >>> from distutils.util import get_platform >>> PLAT_SPEC = "%s-%s" % (get_platform(), sys.version[0:3]) >>> print PLAT_SPEC linux-i686-2.4 >>> here = os.path.dirname(os.path.realpath(__file__)) Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name '__file__' is not defined >>> here = os.path.dirname(os.path.realpath('test.py')) >>> print here /mnt/hdc8/ZOPE/Zope-3.2.0a1 >>> lib = os.path.join(here, "build", "lib." + PLAT_SPEC) >>> print lib /mnt/hdc8/ZOPE/Zope-3.2.0a1/build/lib.linux-i686-2.4 >>> sys.path.append(lib) >>> print sys.path ['', '/tools/python/dist-py', '/mnt/hdc8/ZOPE/Zope-3.2.0a1', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages', '/usr/lib/site-python', '/mnt/hdc8/ZOPE/Zope-3.2.0a1/build/lib.linux-i686-2.4', '/mnt/hdc8/ZOPE/Zope-3.2.0a1/build/lib.linux-i686-2.4'] >>> import zope.app.testing.test Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named test > _______________________________________________ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users