gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz ./TODO test/testutil.py test/gzz/gfx/gl/bas...


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz ./TODO test/testutil.py test/gzz/gfx/gl/bas...
Date: Tue, 15 Oct 2002 06:50:15 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/10/15 06:50:13

Modified files:
        .              : TODO 
        test           : testutil.py 
        test/gzz/gfx/gl: basicrender.test paper.test 
Added files:
        test/tools     : gfx.py 
Removed files:
        test/gzz/gfx/gl: checkColor.py 

Log message:
        Move graphics testing to a module

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/TODO.diff?tr1=1.292&tr2=1.293&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/testutil.py.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/gfx/gl/basicrender.test.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/gfx/gl/paper.test.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/tools/gfx.py?rev=1.1

Patches:
Index: gzz/TODO
diff -c gzz/TODO:1.292 gzz/TODO:1.293
*** gzz/TODO:1.292      Mon Oct 14 14:41:11 2002
--- gzz/TODO    Tue Oct 15 06:50:12 2002
***************
*** 33,41 ****
          [GI03]  - pieces
          [GI03]  - soft shadows of irregus- ?!?!?! Need algorithm...
                        - only very approximate needed
!     tuukkah:
        - genimages lazily: pass existing images. Must check that the
!         file is not zero-length though. [ done? ]
        - clean, rename and document Makefile targets 
        - release engineering 
            - list main changes 
--- 33,45 ----
          [GI03]  - pieces
          [GI03]  - soft shadows of irregus- ?!?!?! Need algorithm...
                        - only very approximate needed
!     tuukkah + vegai:
        - genimages lazily: pass existing images. Must check that the
!         file is not zero-length though. Proper framework:
!         get pdf and ps file size.
!       - speed up tests: currently too much execfile().. could
!         pre-compile and exec compiled in the same globals().
!     tuukkah:
        - clean, rename and document Makefile targets 
        - release engineering 
            - list main changes 
Index: gzz/test/gzz/gfx/gl/basicrender.test
diff -c gzz/test/gzz/gfx/gl/basicrender.test:1.3 
gzz/test/gzz/gfx/gl/basicrender.test:1.4
*** gzz/test/gzz/gfx/gl/basicrender.test:1.3    Sat Oct 12 02:36:51 2002
--- gzz/test/gzz/gfx/gl/basicrender.test        Tue Oct 15 06:50:12 2002
***************
*** 2,8 ****
  from java.awt import Color
  from gzz.gfx.gl import GL, GLCache
  
! execfile("test/gzz/gfx/gl/checkColor.py")
  
  def testBgTriangle():
      vs = getvs()
--- 2,8 ----
  from java.awt import Color
  from gzz.gfx.gl import GL, GLCache
  
! from test.tools.gfx import *
  
  def testBgTriangle():
      vs = getvs()
Index: gzz/test/gzz/gfx/gl/paper.test
diff -c gzz/test/gzz/gfx/gl/paper.test:1.2 gzz/test/gzz/gfx/gl/paper.test:1.3
*** gzz/test/gzz/gfx/gl/paper.test:1.2  Sat Oct 12 06:05:41 2002
--- gzz/test/gzz/gfx/gl/paper.test      Tue Oct 15 06:50:12 2002
***************
*** 2,8 ****
  from java.awt import Color
  from gzz.gfx.gl import GL, GLRen, GLCache, PaperMill
  
! execfile("test/gzz/gfx/gl/checkColor.py")
  
  def testPaperAnythingJava():
      """Test that libpaper, when called through
--- 2,8 ----
  from java.awt import Color
  from gzz.gfx.gl import GL, GLRen, GLCache, PaperMill
  
! from test.tools.gfx import *
  
  def testPaperAnythingJava():
      """Test that libpaper, when called through
Index: gzz/test/testutil.py
diff -c gzz/test/testutil.py:1.26 gzz/test/testutil.py:1.27
*** gzz/test/testutil.py:1.26   Tue Oct 15 05:43:00 2002
--- gzz/test/testutil.py        Tue Oct 15 06:50:12 2002
***************
*** 30,48 ****
  NOTE: testutil.py itself runs all tests in test/ when run as main.
  """
  import sys
  sys.path.insert(0, ".")
  
  import unittest, os.path, fnmatch, string, imp
  import java
  from gzz.client import GraphicsAPI
  
- graphicswindow = None
- def getGraphicsWindow():
-     global graphicswindow
-     if not graphicswindow:
-       graphicswindow = GraphicsAPI.getInstance().createWindow()
-     return graphicswindow
- 
  true = 1
  false = 0
  enableJNI = false
--- 30,42 ----
  NOTE: testutil.py itself runs all tests in test/ when run as main.
  """
  import sys
+ import traceback
  sys.path.insert(0, ".")
  
  import unittest, os.path, fnmatch, string, imp
  import java
  from gzz.client import GraphicsAPI
  
  true = 1
  false = 0
  enableJNI = false
***************
*** 106,112 ****
              raise e
      
      tests["needGL"] = needGL
-     tests["getGraphicsWindow"] = getGraphicsWindow
      try:
          exec compiledTestFile in tests
      except NeedGLError, e:
--- 100,105 ----
***************
*** 119,125 ****
              self.module = imp.new_module(%s)
            self.module.unittestObject = self
            self.module.needGL = needGL
-           self.module.getGraphicsWindow = getGraphicsWindow
            exec faildefs in self.module.__dict__
              exec self.code in self.module.__dict__
      '''
--- 112,117 ----
***************
*** 152,158 ****
  
  
  def docstring(obj):
!     if obj.__doc__ != None: return '"""%s"""' % (obj.__doc__,)
      else: return ""
  
  
--- 144,151 ----
  
  
  def docstring(obj):
!     if getattr(obj,"__doc__", None) != None: 
!       return '"""%s"""' % (obj.__doc__,)
      else: return ""
  
  
***************
*** 194,200 ****
            try:
                unittest.TextTestRunner(verbosity=2).run(suite(test))
            except:
!               print sys.exc_info()
            java.lang.System.exit(0)
      GraphicsAPI.getInstance().startUpdateManager(Starter())
  
--- 187,196 ----
            try:
                unittest.TextTestRunner(verbosity=2).run(suite(test))
            except:
!               typ, val, tra = sys.exc_info()
!               print (repr((typ, val, tra)))
!               l = traceback.format_list(traceback.extract_tb(tra))
!               print "\n".join(l)
            java.lang.System.exit(0)
      GraphicsAPI.getInstance().startUpdateManager(Starter())
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]