[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/test testutil.py
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/test testutil.py |
Date: |
Mon, 14 Oct 2002 02:37:39 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/10/14 02:37:37
Modified files:
test : testutil.py
Log message:
Fix running all tests
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/testutil.py.diff?tr1=1.23&tr2=1.24&r1=text&r2=text
Patches:
Index: gzz/test/testutil.py
diff -c gzz/test/testutil.py:1.23 gzz/test/testutil.py:1.24
*** gzz/test/testutil.py:1.23 Sun Oct 13 08:45:53 2002
--- gzz/test/testutil.py Mon Oct 14 02:37:37 2002
***************
*** 106,111 ****
--- 106,112 ----
raise e
tests["needGL"] = needGL
+ tests["getGraphicsWindow"] = getGraphicsWindow
try:
exec compiledTestFile in tests
except NeedGLError, e:
***************
*** 117,122 ****
--- 118,124 ----
def setUp(self):
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__
***************
*** 167,186 ****
if __name__ == '__main__':
! test = ['test/']
! if len(sys.argv) > 1:
! sys.path.insert(0, ".")
! import getopt
! import gzz.util.dbg
! opts, args = getopt.getopt(sys.argv[1:],
! gzz.util.dbg.short,
! gzz.util.dbg.long)
! for o,a in opts:
! print "Opt: ",o,a
! if o in gzz.util.dbg.all:
! gzz.util.dbg.option(o,a)
!
! test = args
try:
if test.index('jni') >=0:
print "Enabling jni"
--- 169,185 ----
if __name__ == '__main__':
! sys.path.insert(0, ".")
! import getopt
! import gzz.util.dbg
! opts, args = getopt.getopt(sys.argv[1:],
! gzz.util.dbg.short,
! gzz.util.dbg.long)
! for o,a in opts:
! print "Opt: ",o,a
! if o in gzz.util.dbg.all:
! gzz.util.dbg.option(o,a)
! test = args
try:
if test.index('jni') >=0:
print "Enabling jni"
***************
*** 188,193 ****
--- 187,194 ----
test.remove('jni')
except ValueError:
pass
+ if len(test) == 0:
+ test = ['test/']
class Starter(java.lang.Runnable):
def run(self):
unittest.TextTestRunner(verbosity=2).run(suite(test))