maruel@chromium.org | 8fb47fe | 2012-10-03 20:13:15 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # coding=utf-8 |
maruel | ea586f3 | 2016-04-05 11:11:33 -0700 | [diff] [blame^] | 3 | # Copyright 2012 The LUCI Authors. All rights reserved. |
| 4 | # Use of this source code is governed by the Apache v2.0 license that can be |
| 5 | # found in the LICENSE file. |
maruel@chromium.org | 8fb47fe | 2012-10-03 20:13:15 +0000 | [diff] [blame] | 6 | |
| 7 | ### |
| 8 | # Run me to generate the documentation! |
| 9 | ### |
| 10 | |
maruel@chromium.org | a92f1e1 | 2012-11-08 17:08:20 +0000 | [diff] [blame] | 11 | # Line too long (NN/80) |
| 12 | # pylint: disable=C0301 |
| 13 | |
maruel@chromium.org | 8fb47fe | 2012-10-03 20:13:15 +0000 | [diff] [blame] | 14 | """Test tracing and isolation infrastructure. |
| 15 | |
maruel@chromium.org | 8fb47fe | 2012-10-03 20:13:15 +0000 | [diff] [blame] | 16 | A few scripts have strict dependency rules: |
maruel@chromium.org | a92f1e1 | 2012-11-08 17:08:20 +0000 | [diff] [blame] | 17 | - The pure tracing scripts (trace_*.py) do not know about isolate |
| 18 | infrastructure. |
maruel@chromium.org | 8fb47fe | 2012-10-03 20:13:15 +0000 | [diff] [blame] | 19 | """ |
| 20 | |
| 21 | import os |
| 22 | import sys |
| 23 | |
| 24 | |
| 25 | def main(): |
| 26 | for i in sorted(os.listdir(os.path.dirname(os.path.abspath(__file__)))): |
| 27 | if not i.endswith('.py') or i == 'PRESUBMIT.py': |
| 28 | continue |
| 29 | module = __import__(i[:-3]) |
| 30 | if hasattr(module, '__doc__'): |
| 31 | print module.__name__ |
| 32 | print ''.join(' %s\n' % i for i in module.__doc__.splitlines()) |
| 33 | return 0 |
| 34 | |
| 35 | |
| 36 | if __name__ == '__main__': |
| 37 | sys.exit(main()) |