4
"""libtovid test script
6
Execute this script to run tests on the modules in libtovid. These tests
7
consist of executing each libtovid module standalone; it is presumed that
8
each module to be tested contains at least the following:
11
if __name__ == '__main__':
14
which runs unit tests, or:
17
if __name__ == '__main__':
18
doctest.testmod(verbose=True)
20
which does an automated verification of the docstrings in each module.
22
NB -- You're going to get lots of output, so a >log.txt is advised.
30
mod_test = glob('test/*.py')
32
# mod_libtovid = glob('*.py') ?
42
mod_author = glob('author/*.py')
43
mod_render = glob('render/*.py')
44
mod_transcode = glob('transcode/*.py')
45
modules = mod_test + mod_libtovid + mod_author + mod_render + mod_transcode
47
if __name__ == '__main__':
50
print "Testing: %s" % mod
52
print commands.getoutput('python %s' % mod)
53
except KeyboardInterrupt:
54
print "Test interrupted."