about summary refs log tree commit diff stats
path: root/cpp/045closure_name.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-25 19:06:32 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-25 19:47:17 -0700
commite853b94e93f0a525c857eff97b5ed3d7e9fecdac (patch)
treea91449a1497a7cbb3433cb41d8d10c966a0c809e /cpp/045closure_name.cc
parent6de26237ff5c596084caea6e0a9158c22692f566 (diff)
downloadmu-e853b94e93f0a525c857eff97b5ed3d7e9fecdac.tar.gz
971
Diffstat (limited to 'cpp/045closure_name.cc')
0 files changed, 0 insertions, 0 deletions
com> 2010-02-25 02:45:47 +0100 added Makefile' href='/akspecs/ranger/commit/all_tests.py?h=v1.7.0-emacs&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)