/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
6614.1.3 by Vincent Ladeuil
Fix assertEquals being deprecated by using assertEqual.
1
# Copyright (C) 2005-2013, 2016 Canonical Ltd
1831.1.1 by Martin Pool
[merge] remove default ignore list & update
2
#
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
1831.1.1 by Martin Pool
[merge] remove default ignore list & update
7
#
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
1831.1.1 by Martin Pool
[merge] remove default ignore list & update
12
#
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
4183.7.1 by Sabin Iacob
update FSF mailing address
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
16
17
18
"""Black-box tests for bzr.
19
20
These check that it behaves properly when it's invoked through the regular
3943.8.1 by Marius Kruger
remove all trailing whitespace from bzr source
21
command-line interface. This doesn't actually run a new interpreter but
6622.1.29 by Jelmer Vernooij
Fix some more tests.
22
rather starts again from the run_brz function.
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
23
"""
24
1692.3.3 by Robert Collins
Get run_bzr in tests to always assign a new, clean ui factory.
25
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
26
from breezy import tests
1570.1.2 by Robert Collins
Import bzrtools' 'fix' command as 'bzr reconcile.'
27
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
28
6625.1.5 by Martin
Drop custom load_tests implementation and use unittest signature
29
def load_tests(loader, basic_tests, pattern):
3302.9.6 by Vincent Ladeuil
bzrlib.tests.blackbox switched from test_suite() to load_tests().
30
    suite = loader.suiteClass()
31
    # add the tests for this module
32
    suite.addTests(basic_tests)
33
6622.1.34 by Jelmer Vernooij
Rename brzlib => breezy.
34
    prefix = 'breezy.tests.blackbox.'
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
35
    testmod_names = [
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
36
                     'test_add',
37
                     'test_added',
38
                     'test_alias',
39
                     'test_aliases',
40
                     'test_ancestry',
41
                     'test_annotate',
6656.2.1 by Jelmer Vernooij
Integrate bisect command into core.
42
                     'test_bisect',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
43
                     'test_branch',
6060.6.1 by Jelmer Vernooij
Add 'bzr branches' command.
44
                     'test_branches',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
45
                     'test_break_lock',
46
                     'test_bound_branches',
47
                     'test_bundle_info',
48
                     'test_cat',
49
                     'test_cat_revision',
50
                     'test_check',
51
                     'test_checkout',
52
                     'test_clean_tree',
53
                     'test_command_encoding',
54
                     'test_commit',
5455.1.6 by Vincent Ladeuil
Merge bzr.dev
55
                     'test_config',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
56
                     'test_conflicts',
6829.4.1 by Jelmer Vernooij
Initial work on a 'brz cp'.
57
                     'test_cp',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
58
                     'test_debug',
59
                     'test_deleted',
60
                     'test_diff',
61
                     'test_dump_btree',
62
                     'test_exceptions',
63
                     'test_export',
6162.4.6 by Jonathan Riddell
add blackbox test for export_pot
64
                     'test_export_pot',
6651.3.1 by Jelmer Vernooij
Bundle the fetch-ghosts command as hidden command.
65
                     'test_fetch_ghosts',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
66
                     'test_filesystem_cicp',
67
                     'test_filtered_view_ops',
68
                     'test_find_merge_base',
69
                     'test_help',
70
                     'test_hooks',
6637.1.2 by Jelmer Vernooij
Add tests.
71
                     'test_import',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
72
                     'test_ignore',
73
                     'test_ignored',
74
                     'test_info',
75
                     'test_init',
76
                     'test_inventory',
77
                     'test_join',
6652.1.1 by Jelmer Vernooij
Bundle the link-tree command.
78
                     'test_link_tree',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
79
                     'test_locale',
80
                     'test_log',
81
                     'test_logformats',
82
                     'test_lookup_revision',
83
                     'test_ls',
84
                     'test_lsprof',
85
                     'test_merge',
86
                     'test_merge_directive',
87
                     'test_missing',
6352.1.1 by Jelmer Vernooij
add blackbox tests for mkdir.
88
                     'test_mkdir',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
89
                     'test_modified',
90
                     'test_mv',
91
                     'test_nick',
92
                     'test_non_ascii',
93
                     'test_outside_wt',
94
                     'test_pack',
6556.2.3 by Jelmer Vernooij
Add basic test for ping.
95
                     'test_ping',
7015.1.2 by Martin
Make last plugins tests pass again on Python 3
96
                     'test_plugins',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
97
                     'test_pull',
98
                     'test_push',
99
                     'test_reconcile',
100
                     'test_reconfigure',
101
                     'test_reference',
102
                     'test_remerge',
103
                     'test_remove',
104
                     'test_re_sign',
5861.1.6 by Vincent Ladeuil
Make TestRemember a test class that can be reused for other commands.
105
                     'test_remember_option',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
106
                     'test_remove_tree',
5630.2.8 by John Arbash Meinel
Rename the command to 'repair-workingtree' as mentioned by vila.
107
                     'test_repair_workingtree',
4597.9.19 by Vincent Ladeuil
resolve now reports conflicts resolved/remaining.
108
                     'test_resolve',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
109
                     'test_revert',
110
                     'test_revno',
111
                     'test_revision_history',
112
                     'test_revision_info',
113
                     'test_rmbranch',
114
                     'test_script',
115
                     'test_selftest',
116
                     'test_send',
117
                     'test_serve',
118
                     'test_shared_repository',
6405.1.1 by Jelmer Vernooij
add really basic test for shell-complete command.
119
                     'test_shell_complete',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
120
                     'test_shelve',
121
                     'test_sign_my_commits',
6583.4.4 by Reagan Sanders
Split the existing test cases for verify-signatures away from those for sign-my-commits and added test cases covering the --verbose option.
122
                     'test_verify_signatures',
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
123
                     'test_split',
124
                     'test_status',
125
                     'test_switch',
126
                     'test_tags',
127
                     'test_testament',
128
                     'test_too_much',
129
                     'test_uncommit',
130
                     'test_unknowns',
131
                     'test_update',
132
                     'test_upgrade',
133
                     'test_version',
134
                     'test_version_info',
135
                     'test_versioning',
136
                     'test_view',
137
                     'test_whoami',
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
138
                     ]
3302.9.27 by Vincent Ladeuil
Fixed as per Ian's review.
139
    # add the tests for the sub modules
5455.1.1 by Vincent Ladeuil
Add a new hidden ``test-script`` command.
140
    suite.addTests(loader.loadTestsFromModuleNames(
141
            [prefix + module_name for module_name in testmod_names]))
1185.85.24 by John Arbash Meinel
Moved run_bzr_decode into TestCase
142
    return suite
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
143
144
5184.1.1 by Vincent Ladeuil
Random cleanups to catch up with copyright updates in trunk.
145
class ExternalBase(tests.TestCaseWithTransport):
5283.4.5 by Martin Pool
Update remaining subclasses of ExternalBase
146
    """Don't use this class anymore, use TestCaseWithTransport or similar"""
1513 by Robert Collins
Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
147