Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / swarming_client / README.py
1 #!/usr/bin/env python
2 # coding=utf-8
3 # Copyright 2012 The Swarming Authors. All rights reserved.
4 # Use of this source code is governed under the Apache License, Version 2.0 that
5 # can be 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 A few scripts have strict dependency rules:
17 - The pure tracing scripts (trace_*.py) do not know about isolate
18   infrastructure.
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())