~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-02-18 02:33:47 UTC
  • mfrom: (1534.1.24 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060218023347-0952c65f668bfd68
Merge Robert Collins integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
rather starts again from the run_bzr function.
24
24
"""
25
25
 
26
 
from bzrlib.tests import TestLoader
27
 
from bzrlib.tests import TestCaseInTempDir, BzrTestBase
 
26
from bzrlib.tests import (
 
27
                          _load_module_by_name,
 
28
                          TestCaseWithTransport,
 
29
                          TestSuite,
 
30
                          TestLoader,
 
31
                          )
28
32
 
29
33
def test_suite():
30
34
    testmod_names = [
31
35
                     'bzrlib.tests.blackbox.test_added',
 
36
                     'bzrlib.tests.blackbox.test_ancestry',
32
37
                     'bzrlib.tests.blackbox.test_cat',
 
38
                     'bzrlib.tests.blackbox.test_checkout',
 
39
                     'bzrlib.tests.blackbox.test_commit',
33
40
                     'bzrlib.tests.blackbox.test_diff',
34
41
                     'bzrlib.tests.blackbox.test_export',
 
42
                     'bzrlib.tests.blackbox.test_find_merge_base',
 
43
                     'bzrlib.tests.blackbox.test_help',
 
44
                     'bzrlib.tests.blackbox.test_info',
 
45
                     'bzrlib.tests.blackbox.test_log',
 
46
                     'bzrlib.tests.blackbox.test_logformats',
35
47
                     'bzrlib.tests.blackbox.test_missing',
36
48
                     'bzrlib.tests.blackbox.test_outside_wt',
37
49
                     'bzrlib.tests.blackbox.test_pull',
 
50
                     'bzrlib.tests.blackbox.test_re_sign',
38
51
                     'bzrlib.tests.blackbox.test_revert',
39
52
                     'bzrlib.tests.blackbox.test_revno',
40
53
                     'bzrlib.tests.blackbox.test_revision_info',
41
54
                     'bzrlib.tests.blackbox.test_selftest',
 
55
                     'bzrlib.tests.blackbox.test_sign_my_commits',
42
56
                     'bzrlib.tests.blackbox.test_status',
43
57
                     'bzrlib.tests.blackbox.test_too_much',
 
58
                     'bzrlib.tests.blackbox.test_update',
44
59
                     'bzrlib.tests.blackbox.test_upgrade',
45
60
                     'bzrlib.tests.blackbox.test_versioning',
46
61
                     ]
47
 
    return TestLoader().loadTestsFromNames(testmod_names)
48
 
 
49
 
 
50
 
class ExternalBase(TestCaseInTempDir):
 
62
 
 
63
    suite = TestSuite()
 
64
    loader = TestLoader()
 
65
    for mod_name in testmod_names:
 
66
        mod = _load_module_by_name(mod_name)
 
67
        suite.addTest(loader.loadTestsFromModule(mod))
 
68
    return suite
 
69
 
 
70
 
 
71
class ExternalBase(TestCaseWithTransport):
51
72
 
52
73
    def runbzr(self, args, retcode=0, backtick=False):
53
74
        if isinstance(args, basestring):