about summary refs log tree commit diff stats
path: root/html/shell/print.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-04 21:56:43 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-04 21:56:43 -0700
commit73bbe731c57dfeec5dbd70e9279fa1ee028d2cd8 (patch)
tree2a251015e12cf045a9daeb701339886f11ec02dc /html/shell/print.mu.html
parent7531bc2124b837d5e2ad0185adeb6bf38e39edc4 (diff)
downloadmu-73bbe731c57dfeec5dbd70e9279fa1ee028d2cd8.tar.gz
select function to render first
Diffstat (limited to 'html/shell/print.mu.html')
0 files changed, 0 insertions, 0 deletions
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
                 



                                                                   





                                        
 



                                                                                       
 
                                                                  


                                                                        
#!/usr/bin/python
"""Run all the tests inside the test/ directory as a test suite."""
if __name__ == '__main__':
	import unittest
	from test import *
	from sys import exit, argv

	try:
		verbosity = int(argv[1])
	except IndexError:
		verbosity = 2

	tests = []
	for key, val in vars().copy().items():
		if key.startswith('tc_'):
			tests.extend(v for k,v in vars(val).items() if type(v) == type)

	suite = unittest.TestSuite(map(unittest.makeSuite, tests))
	result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
	if len(result.errors) + len(result.failures) > 0:
		exit(1)