Rev 600: Remove obsolete test-gtk command - use selftest --starting-with=bzrlib.plugins.gtk now. in file:///data/jelmer/bzr-gtk/trunk/

Jelmer Vernooij jelmer at samba.org
Wed Aug 6 15:35:54 BST 2008


At file:///data/jelmer/bzr-gtk/trunk/

------------------------------------------------------------
revno: 600
revision-id: jelmer at samba.org-20080806143539-nj2amiiaunsrl1p0
parent: jelmer at samba.org-20080806143528-1kn6fcwg8mhaggrl
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Wed 2008-08-06 16:35:39 +0200
message:
  Remove obsolete test-gtk command - use selftest --starting-with=bzrlib.plugins.gtk now.
modified:
  __init__.py                    __init__.py-20060519165329-a1fd52c8a829fcd5
=== modified file '__init__.py'
--- a/__init__.py	2008-08-04 20:03:36 +0000
+++ b/__init__.py	2008-08-06 14:35:39 +0000
@@ -627,69 +627,6 @@
 register_command(cmd_gselftest)
 
 
-class cmd_test_gtk(GTKCommand):
-    """Version of selftest that just runs the gtk test suite."""
-
-    takes_options = ['verbose',
-                     Option('one', short_name='1',
-                            help='Stop when one test fails.'),
-                     Option('benchmark', help='Run the benchmarks.'),
-                     Option('lsprof-timed',
-                     help='Generate lsprof output for benchmarked'
-                          ' sections of code.'),
-                     Option('list-only',
-                     help='List the tests instead of running them.'),
-                     Option('randomize', type=str, argname="SEED",
-                     help='Randomize the order of tests using the given'
-                          ' seed or "now" for the current time.'),
-                    ]
-    takes_args = ['testspecs*']
-
-    def run(self, verbose=None, one=False, benchmark=None,
-            lsprof_timed=None, list_only=False, randomize=None,
-            testspecs_list=None):
-        from bzrlib import __path__ as bzrlib_path
-        from bzrlib.tests import selftest
-
-        print '%10s: %s' % ('bzrlib', bzrlib_path[0])
-        if benchmark:
-            print 'No benchmarks yet'
-            return 3
-
-            test_suite_factory = bench_suite
-            if verbose is None:
-                verbose = True
-            # TODO: should possibly lock the history file...
-            benchfile = open(".perf_history", "at", buffering=1)
-        else:
-            test_suite_factory = test_suite
-            if verbose is None:
-                verbose = False
-            benchfile = None
-
-        if testspecs_list is not None:
-            pattern = '|'.join(testspecs_list)
-        else:
-            pattern = ".*"
-
-        try:
-            result = selftest(verbose=verbose,
-                              pattern=pattern,
-                              stop_on_failure=one,
-                              test_suite_factory=test_suite_factory,
-                              lsprof_timed=lsprof_timed,
-                              bench_history=benchfile,
-                              list_only=list_only,
-                              random_seed=randomize,
-                             )
-        finally:
-            if benchfile is not None:
-                benchfile.close()
-
-register_command(cmd_test_gtk)
-
-
-
 import gettext
 gettext.install('olive-gtk')
 




More information about the bazaar-commits mailing list