~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Martin Pool
  • Date: 2005-07-08 02:28:58 UTC
  • Revision ID: mbp@sourcefrog.net-20050708022858-f8323aaea09ea4f2
- more hash-cache tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
MODULES_TO_TEST = []
21
21
MODULES_TO_DOCTEST = []
22
22
 
23
 
def selftest(verbose=False):
 
23
def selftest():
24
24
    from unittest import TestLoader, TestSuite
25
25
    import bzrlib, bzrlib.store, bzrlib.inventory, bzrlib.branch
26
 
    import bzrlib.osutils, bzrlib.commands, bzrlib.merge3, bzrlib.plugin
 
26
    import bzrlib.osutils, bzrlib.commands, bzrlib.merge3
27
27
    global MODULES_TO_TEST, MODULES_TO_DOCTEST
28
28
 
29
29
    import bzrlib.selftest.whitebox
31
31
    import bzrlib.selftest.versioning
32
32
    import bzrlib.selftest.testmerge3
33
33
    import bzrlib.selftest.testhashcache
34
 
    import bzrlib.selftest.testrevisionnamespaces
35
 
    import bzrlib.selftest.testbranch
36
 
    import bzrlib.selftest.teststatus
37
 
    import bzrlib.selftest.testinv
38
34
    import bzrlib.merge_core
39
35
    from doctest import DocTestSuite
40
36
    import os
50
46
            
51
47
    for m in (bzrlib.selftest.whitebox,
52
48
              bzrlib.selftest.versioning,
53
 
              bzrlib.selftest.testinv,
54
49
              bzrlib.selftest.testmerge3,
55
 
              bzrlib.selftest.testhashcache,
56
 
              bzrlib.selftest.teststatus,
57
 
              bzrlib.selftest.blackbox,
58
 
              bzrlib.selftest.testhashcache,
59
 
              bzrlib.selftest.testrevisionnamespaces,
60
 
              bzrlib.selftest.testbranch,
61
 
              ):
 
50
              bzrlib.selftest.testhashcache):
62
51
        if m not in MODULES_TO_TEST:
63
52
            MODULES_TO_TEST.append(m)
64
53
 
82
71
    for m in (MODULES_TO_DOCTEST):
83
72
        suite.addTest(DocTestSuite(m))
84
73
 
85
 
    for p in bzrlib.plugin.all_plugins:
86
 
        if hasattr(p, 'test_suite'):
87
 
            suite.addTest(p.test_suite())
 
74
#     for cl in (bzrlib.selftest.whitebox.TEST_CLASSES 
 
75
#                + bzrlib.selftest.versioning.TEST_CLASSES
 
76
#                + bzrlib.selftest.testmerge3.TEST_CLASSES
 
77
#                + bzrlib.selftest.testhashcache.TEST_CLASSES
 
78
#                + bzrlib.selftest.blackbox.TEST_CLASSES):
 
79
#         suite.addTest(cl())
88
80
 
89
81
    suite.addTest(unittest.makeSuite(bzrlib.merge_core.MergeTest, 'test_'))
90
82
 
91
 
    return run_suite(suite, 'testbzr', verbose=verbose)
 
83
    return run_suite(suite, 'testbzr')
92
84
 
93
85
 
94
86