2008-09-18 15:48:41 +04:00
|
|
|
# this is hack to make sure no escape characters are inserted into the output
|
2013-11-17 20:16:59 +04:00
|
|
|
import os, sys
|
2008-10-11 18:40:59 +04:00
|
|
|
if 'TERM' in os.environ:
|
2008-10-20 16:51:55 +04:00
|
|
|
del os.environ['TERM']
|
2006-10-03 00:35:37 +04:00
|
|
|
import doctest
|
|
|
|
|
2013-11-17 20:16:59 +04:00
|
|
|
def testmod(name, optionflags=0, testtarget=None):
|
|
|
|
__import__(name)
|
|
|
|
mod = sys.modules[name]
|
|
|
|
if testtarget is not None:
|
|
|
|
mod = getattr(mod, testtarget)
|
|
|
|
doctest.testmod(mod, optionflags=optionflags)
|
|
|
|
|
2015-12-11 19:23:49 +03:00
|
|
|
testmod('mercurial.changegroup')
|
2013-11-17 20:16:59 +04:00
|
|
|
testmod('mercurial.changelog')
|
|
|
|
testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE)
|
|
|
|
testmod('mercurial.dispatch')
|
|
|
|
testmod('mercurial.encoding')
|
2014-03-21 19:46:08 +04:00
|
|
|
testmod('mercurial.hg')
|
2013-11-17 20:16:59 +04:00
|
|
|
testmod('mercurial.hgweb.hgwebdir_mod')
|
|
|
|
testmod('mercurial.match')
|
|
|
|
testmod('mercurial.minirst')
|
2015-03-07 08:48:40 +03:00
|
|
|
testmod('mercurial.patch')
|
2014-05-08 14:03:00 +04:00
|
|
|
testmod('mercurial.pathutil')
|
2015-04-26 12:05:23 +03:00
|
|
|
testmod('mercurial.parser')
|
2013-11-17 20:16:59 +04:00
|
|
|
testmod('mercurial.revset')
|
|
|
|
testmod('mercurial.store')
|
2014-03-22 03:09:17 +04:00
|
|
|
testmod('mercurial.subrepo')
|
2013-11-17 20:16:59 +04:00
|
|
|
testmod('mercurial.templatefilters')
|
2015-06-15 17:11:35 +03:00
|
|
|
testmod('mercurial.templater')
|
2013-11-17 20:16:59 +04:00
|
|
|
testmod('mercurial.ui')
|
|
|
|
testmod('mercurial.url')
|
|
|
|
testmod('mercurial.util')
|
|
|
|
testmod('mercurial.util', testtarget='platform')
|
2015-07-14 16:40:56 +03:00
|
|
|
testmod('hgext.convert.convcmd')
|
2013-11-17 20:16:59 +04:00
|
|
|
testmod('hgext.convert.cvsps')
|
2013-11-17 20:18:39 +04:00
|
|
|
testmod('hgext.convert.filemap')
|
2015-07-14 18:23:57 +03:00
|
|
|
testmod('hgext.convert.p4')
|
2014-02-07 20:28:37 +04:00
|
|
|
testmod('hgext.convert.subversion')
|
2014-09-24 04:41:11 +04:00
|
|
|
testmod('hgext.mq')
|