[MERGE/RFC] 'bzr selftest --load bzrlib.tests.test_foo'

Martin Pool mbp at sourcefrog.net
Wed May 9 08:45:43 BST 2007


On 5/9/07, John Arbash Meinel <john at arbash-meinel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On my Mac laptop, loading all of the test suite takes a significant
> amount of time:
>
> bzr selftest notestsmatchthingstriaoue
> 6.53s user 1.55s system 61% cpu 13.037 total

For interest, on my 2.5year old i386 Ubuntu laptop, it takes

  ./bzr selftest notestnothing  6.07s user 0.21s system 46% cpu 13.438 total

with cold cache, and

  ./bzr selftest notestnothing  3.26s user 0.10s system 86% cpu 3.902 total

when warm.  I can see why you want it.

I think typing the full module name will get a bit tedious (and maybe
take more than 10 seconds sometimes, the first time you type it :-) so
I would rather it matched on a substring or regexp in the module name.
 Still the patch looks ok, so conditional +1 from me to merge it:

 * deserves a mention in news
 * should also get a mention in the HACKING section about how to run
the selftests

It seems like this might be useful when there are import-related
failures in the test suite, as well as the speed benefit.

-- 
Martin



More information about the bazaar mailing list