/[gzz]/gzz/test/testutil.py
ViewVC logotype

Diff of /gzz/test/testutil.py

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

revision 1.30 by tjl, Sat Oct 19 14:29:27 2002 UTC revision 1.31 by tjl, Sat Oct 19 14:35:41 2002 UTC
# Line 124  def load(file): Line 124  def load(file):
124      compiledTestFile = compile(open(file).read() + '\n', file, 'exec')      compiledTestFile = compile(open(file).read() + '\n', file, 'exec')
125      tests = {}      tests = {}
126            
     def jni(e, file=file):  
         # A jni test  
         if enableJNI == false:  
             print file + " skipped: JNI required."  
             return  
         else:  
             raise e  
       
127      tests["needGL"] = needGL      tests["needGL"] = needGL
128      try:      try:
129          exec compiledTestFile in tests          exec compiledTestFile in tests
130      except NeedGLError, e:      except NeedGLError, e:
131          print "Skipping test %s because it needs OpenGL compiled.", file          print "Skipping OpenGL test %s" % file
132            
133      testnames = [t for t in tests.keys() if t.startswith('test')]      testnames = [t for t in tests.keys() if t.startswith('test')]
134    

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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