~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-15 05:02:17 UTC
  • mfrom: (1908.2.20 benchmark-caching)
  • Revision ID: pqm@pqm.ubuntu.com-20060815050217-d2df7c83d6c5eeca
(jam) bzr selftest --benchmark --cache-dir=foo will save and re-use setup trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
1933
1933
                     Option('lsprof-timed',
1934
1934
                            help='generate lsprof output for benchmarked'
1935
1935
                                 ' sections of code.'),
 
1936
                     Option('cache-dir', type=str,
 
1937
                            help='a directory to cache intermediate'
 
1938
                                 ' benchmark steps'),
1936
1939
                     ]
1937
1940
 
1938
1941
    def run(self, testspecs_list=None, verbose=None, one=False,
1939
1942
            keep_output=False, transport=None, benchmark=None,
1940
 
            lsprof_timed=None):
 
1943
            lsprof_timed=None, cache_dir=None):
1941
1944
        import bzrlib.ui
1942
1945
        from bzrlib.tests import selftest
1943
1946
        import bzrlib.benchmarks as benchmarks
 
1947
        from bzrlib.benchmarks import tree_creator
 
1948
 
 
1949
        if cache_dir is not None:
 
1950
            tree_creator.TreeCreator.CACHE_ROOT = osutils.abspath(cache_dir)
1944
1951
        # we don't want progress meters from the tests to go to the
1945
1952
        # real output; and we don't want log messages cluttering up
1946
1953
        # the real logs.