gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz ./Gzz.py ./Makefile test/gzz/control/Gzz.te...


From: Benja Fallenstein
Subject: [Gzz-commits] gzz ./Gzz.py ./Makefile test/gzz/control/Gzz.te...
Date: Sat, 09 Nov 2002 10:07:08 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      02/11/09 10:07:08

Modified files:
        .              : Gzz.py Makefile 
Added files:
        test/gzz/control: Gzz.test GzzGl.test 

Log message:
        Unit tests that the clients start

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/Gzz.py.diff?tr1=1.44&tr2=1.45&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/Makefile.diff?tr1=1.207&tr2=1.208&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/control/Gzz.test?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/control/GzzGl.test?rev=1.1

Patches:
Index: gzz/Gzz.py
diff -u gzz/Gzz.py:1.44 gzz/Gzz.py:1.45
--- gzz/Gzz.py:1.44     Mon Nov  4 15:37:26 2002
+++ gzz/Gzz.py  Sat Nov  9 10:07:08 2002
@@ -161,11 +161,15 @@
 
 def run():
     opts, args = getopt.getopt(sys.argv[1:], "Ctp"+gzz.util.dbg.short,
-            ["--commander"]+gzz.util.dbg.long)
+            ["test-client", "commander"]+gzz.util.dbg.long)
+
+    testclient = 0
 
     for o,a in opts:
         if o in gzz.util.dbg.all:
             gzz.util.dbg.option(o,a)
+        if o == "--test-client":
+            testclient = 1
              
     if gzz.client.GraphicsAPI.getTypeString() == "gl":
         print "Running GL..."
@@ -176,6 +180,9 @@
         g = Gzz(opts, args, 0)
         g.graphicsAPI.startUpdateManager(None)
         g.run()
+
+    if testclient:
+        sys.exit(0)
 
 if __name__ == '__main__':
     run()
Index: gzz/Makefile
diff -u gzz/Makefile:1.207 gzz/Makefile:1.208
--- gzz/Makefile:1.207  Fri Nov  8 15:21:19 2002
+++ gzz/Makefile        Sat Nov  9 10:07:08 2002
@@ -411,6 +411,11 @@
 runctalk:
        $(GLLIB) $(JYTHON) Documentation/Manuscripts/ProcText/CTalk/CTalk.py
 
+testclient::
+       $(JYTHON) Gzz.py -t --test-client -Dgzzclient=awt
+testclient-gl::
+       $(GLLIB) $(JYTHON) Gzz.py -t --test-client -Dgzzclient=gl
+
 jython:
        $(JYTHON) $(DBG)
 




reply via email to

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