about summary refs log tree commit diff stats
path: root/071read-line.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-08-10 15:34:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-08-10 15:35:13 -0700
commit7175cf056a2b2203cf00ebea0eaf4c185f67a609 (patch)
treec412f6b49477e1c61598d59070408b8e3d5b1421 /071read-line.subx
parent6477c46465639b7832c91448126132b4dea6f834 (diff)
downloadmu-7175cf056a2b2203cf00ebea0eaf4c185f67a609.tar.gz
.
Diffstat (limited to '071read-line.subx')
0 files changed, 0 insertions, 0 deletions
00 committer hut <hut@lavabit.com> 2010-02-25 02:45:47 +0100 added Makefile' href='/akspecs/ranger/commit/all_tests.py?h=v1.7.0&id=e9e4b4ffa4b4865c46acbebfc7ef2083bfac0210'>e9e4b4ff ^
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)