| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/env python | |
| 2 # coding=utf-8 | |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 ### | |
| 8 # Run me to generate the documentation! | |
| 9 ### | |
| 10 | |
| 11 # Line too long (NN/80) | |
| 12 # pylint: disable=C0301 | |
| 13 | |
| 14 """Test tracing and isolation infrastructure. | |
| 15 | |
| 16 See googletest/*.py for scripts specifically managing GTest executables. More | |
| 17 information about googletest can be found at | |
| 18 http://code.google.com/p/googletest/wiki/Primer | |
| 19 | |
| 20 A few scripts have strict dependency rules: | |
| 21 - The pure tracing scripts (trace_*.py) do not know about isolate | |
| 22 infrastructure. | |
| 23 - Scripts outside googletest/ do not know about GTest. | |
| 24 """ | |
| 25 | |
| 26 import os | |
| 27 import sys | |
| 28 | |
| 29 | |
| 30 def main(): | |
| 31 for i in sorted(os.listdir(os.path.dirname(os.path.abspath(__file__)))): | |
| 32 if not i.endswith('.py') or i == 'PRESUBMIT.py': | |
| 33 continue | |
| 34 module = __import__(i[:-3]) | |
| 35 if hasattr(module, '__doc__'): | |
| 36 print module.__name__ | |
| 37 print ''.join(' %s\n' % i for i in module.__doc__.splitlines()) | |
| 38 return 0 | |
| 39 | |
| 40 | |
| 41 if __name__ == '__main__': | |
| 42 sys.exit(main()) | |
| OLD | NEW |