| 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 """Test tracing and isolation infrastructure. | |
| 12 | |
| 13 Scripts are compartmentalized by their name: | |
| 14 - trace_*.py: Tracing infrastructure scripts. | |
| 15 - isolate_*.py: Executable isolation scripts. (TODO) | |
| 16 - *_test_cases.py: Scripts specifically managing GTest executables. | |
| 17 | |
| 18 A few scripts have strict dependency rules: | |
| 19 - run_test_cases.py, run_test_from_archive.py, shard.py and trace_inputs.py | |
| 20 depends on no other script so they can be run outside the checkout. | |
| 21 - The pure tracing scripts (trace_inputs.py and trace_test_cases.py) do not know | |
| 22 about isolate infrastructure. | |
| 23 - Scripts without _test_cases suffix do not know about GTest. | |
| 24 - Scripts without isolate_ prefix do not know about the isolation | |
| 25 infrastructure. (TODO) | |
| 26 | |
| 27 See http://dev.chromium.org/developers/testing/isolated-testing for more info. | |
| 28 """ | |
| 29 | |
| 30 import os | |
| 31 import sys | |
| 32 | |
| 33 | |
| 34 def main(): | |
| 35 for i in sorted(os.listdir(os.path.dirname(os.path.abspath(__file__)))): | |
| 36 if not i.endswith('.py') or i == 'PRESUBMIT.py': | |
| 37 continue | |
| 38 module = __import__(i[:-3]) | |
| 39 if hasattr(module, '__doc__'): | |
| 40 print module.__name__ | |
| 41 print ''.join(' %s\n' % i for i in module.__doc__.splitlines()) | |
| 42 return 0 | |
| 43 | |
| 44 | |
| 45 if __name__ == '__main__': | |
| 46 sys.exit(main()) | |
| OLD | NEW |