~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Martin Pool
  • Date: 2005-06-27 05:14:15 UTC
  • Revision ID: mbp@sourcefrog.net-20050627051415-0f1f3bded0761fe8
- stub shell plugin to check permissions

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
 
210
210
def selftest():
211
211
    from unittest import TestLoader, TestSuite
212
 
    import bzrlib, bzrlib.store, bzrlib.inventory, bzrlib.branch, bzrlib.osutils, bzrlib.commands
213
 
 
 
212
    import bzrlib
214
213
    import bzrlib.selftest.whitebox
215
214
    import bzrlib.selftest.blackbox
216
215
    import bzrlib.selftest.versioning
217
 
    import bzrlib.merge_core
218
216
    from doctest import DocTestSuite
219
217
    import os
220
218
    import shutil
221
219
    import time
222
220
    import sys
223
221
 
224
 
    TestBase.BZRPATH = os.path.join(os.path.realpath(os.path.dirname(bzrlib.__path__[0])), 'bzr')
225
 
    print '%-30s %s' % ('bzr binary', TestBase.BZRPATH)
226
 
 
227
222
    _setup_test_log()
228
223
    _setup_test_dir()
229
224
    print
231
226
    suite = TestSuite()
232
227
    tl = TestLoader()
233
228
 
234
 
    # should also test bzrlib.merge_core, but they seem to be out of date with
235
 
    # the code.
236
 
 
237
229
    for m in bzrlib.selftest.whitebox, \
238
230
            bzrlib.selftest.versioning:
239
231
        suite.addTest(tl.loadTestsFromModule(m))