summary refs log tree commit diff stats
path: root/doc/uml/generation_settings
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-12 02:00:53 +0100
committerhut <hut@lavabit.com>2010-03-12 02:00:53 +0100
commit62cd83bace8e77cd1ff7028da6cf65d0d1defa27 (patch)
treed96694a43bb8389c2a93c6f357151f71008475fd /doc/uml/generation_settings
parentcc813408772738fc124130095ba4a5c33c84dea3 (diff)
downloadranger-62cd83bace8e77cd1ff7028da6cf65d0d1defa27.tar.gz
updated pydoc
Diffstat (limited to 'doc/uml/generation_settings')
0 files changed, 0 insertions, 0 deletions
the previous revision' href='/akspecs/ranger/blame/all_tests.py?h=v1.1.2&id=649a69cb87af38f4bf1848085d49d1193f6e01ab'>^
e9e4b4ff ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
                 














                                                                       



                                                                   





                                        
 



                                                                                       
 
                                                                  


                                                                        
#!/usr/bin/python
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

"""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)