blob: 8913c1f835b6797d412a36d2e22b6bfef204d100 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from libbe import plugin
import doctest
import sys
if len(sys.argv) > 1:
match = False
mod = plugin.get_plugin("libbe", sys.argv[1])
if mod is not None:
doctest.testmod(mod)
match = True
mod = plugin.get_plugin("becommands", sys.argv[1])
if mod is not None:
doctest.testmod(mod)
match = True
if not match:
print "No modules match \"%s\"" % sys.argv[1]
else:
for module in plugin.iter_plugins("libbe"):
doctest.testmod(module[1])
for module in plugin.iter_plugins("becommands"):
doctest.testmod(module[1])
|