[Zope3-checkins] SVN: Zope3/trunk/releases/ZopeTestbrowser-test.py Started test script for testbrowser; it does not work yet, but it is a

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Nov 5 06:22:49 EST 2005


Log message for revision 39904:
  Started test script for testbrowser; it does not work yet, but it is a 
  start for Benji.
  

Changed:
  A   Zope3/trunk/releases/ZopeTestbrowser-test.py

-=-
Added: Zope3/trunk/releases/ZopeTestbrowser-test.py
===================================================================
--- Zope3/trunk/releases/ZopeTestbrowser-test.py	2005-11-05 08:09:11 UTC (rev 39903)
+++ Zope3/trunk/releases/ZopeTestbrowser-test.py	2005-11-05 11:22:49 UTC (rev 39904)
@@ -0,0 +1,23 @@
+import os, sys
+
+def do(command):
+    print command
+    if os.system(command):
+        sys.exit(1)
+
+
+do('rm -rf ZopeTestbrowser-0.0.0*')
+do('../../zpkgtools/bin/zpkg -C ZopeTestbrowser.cfg')
+do('tar xozf ZopeTestbrowser-0.0.0.tgz')
+os.chdir('ZopeTestbrowser-0.0.0')
+do('python setup.py install --home `pwd`/here')
+
+zope3_path = os.path.abspath(os.curdir + '/../src')
+tb_path = '.'#os.path.abspath(os.curdir + '/here/lib/python')
+exp = 'export PYTHONPATH=%s:%s' %(zope3_path, tb_path)
+
+os.chdir('here/lib/python')
+tests_path = os.path.abspath(os.curdir + '/zope/testbrowser/ftests')
+for fn in os.listdir(tests_path):
+    if fn.startswith('test') and fn.endswith('.py'):
+        do('%s; python %s/%s' %(exp, tests_path, fn))


Property changes on: Zope3/trunk/releases/ZopeTestbrowser-test.py
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Zope3-Checkins mailing list