/[fenfire]/fenfire/org/fenfire/test/test.py
ViewVC logotype

Diff of /fenfire/org/fenfire/test/test.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by benja, Tue Mar 4 10:50:43 2003 UTC revision 1.5 by benja, Sun Mar 16 16:24:12 2003 UTC
# Line 38  can be tangled into unittests... Line 38  can be tangled into unittests...
38  import sys  import sys
39  #sys.path.insert(0, ".")  #sys.path.insert(0, ".")
40  import os.path, imp  import os.path, imp
41  import java, gzz  import java
42  import getopt  import getopt
43  import fnmatch  import fnmatch
44  import re  import re
45  import traceback  import traceback
46  import org.fenfire.test.dbg  import org.fenfire.util.dbg
47    
48  def test(module):  def test(module):
49      tests = [test for test in dir(module) if test.startswith('test')]      tests = [test for test in dir(module) if test.startswith('test')]
# Line 139  def main(args): Line 139  def main(args):
139      runfail = [None]      runfail = [None]
140            
141      opts, args = getopt.getopt(args,      opts, args = getopt.getopt(args,
142              org.fenfire.test.dbg.short + "f:",              org.fenfire.util.dbg.short + "f:",
143              org.fenfire.test.dbg.long + ["--allowfail="])              org.fenfire.util.dbg.long + ["--allowfail="])
144      for o,a in opts:      for o,a in opts:
145          print "Opt: ",o,a          print "Opt: ",o,a
146          if o in gzz.util.dbg.all:          if o in org.fenfire.util.dbg.all:
147              gzz.util.dbg.option(o,a)              org.fenfire.util.dbg.option(o,a)
148          elif o in ("-f", "--allowfail"):          elif o in ("-f", "--allowfail"):
149              if a == "*":              if a == "*":
150                  runfail = ["GL", "AWT", "*"]                  runfail = ["GL", "AWT", "*"]
# Line 177  def startGraphicsAPI(dirs): Line 177  def startGraphicsAPI(dirs):
177    
178              java.lang.System.exit(exceptions != [])              java.lang.System.exit(exceptions != [])
179    
180      gzz.client.GraphicsAPI.getInstance().startUpdateManager(Starter(dirs))      org.nongnu.libvob.GraphicsAPI.getInstance().startUpdateManager(Starter(dirs))
181    
182    
183  if __name__ == '__main__':  if __name__ == '__main__':

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26