blob: 50f8d03b828d4157c7a125a6af0719dc52c71e44 [file] [log] [blame]
maruel@chromium.org8fb47fe2012-10-03 20:13:15 +00001#!/usr/bin/env python
2# coding=utf-8
Marc-Antoine Ruel8add1242013-11-05 17:28:27 -05003# Copyright 2012 The Swarming Authors. All rights reserved.
Marc-Antoine Ruele98b1122013-11-05 20:27:57 -05004# Use of this source code is governed under the Apache License, Version 2.0 that
5# can be found in the LICENSE file.
maruel@chromium.org8fb47fe2012-10-03 20:13:15 +00006
7###
8# Run me to generate the documentation!
9###
10
maruel@chromium.orga92f1e12012-11-08 17:08:20 +000011# Line too long (NN/80)
12# pylint: disable=C0301
13
maruel@chromium.org8fb47fe2012-10-03 20:13:15 +000014"""Test tracing and isolation infrastructure.
15
maruel@chromium.org8fb47fe2012-10-03 20:13:15 +000016A few scripts have strict dependency rules:
maruel@chromium.orga92f1e12012-11-08 17:08:20 +000017- The pure tracing scripts (trace_*.py) do not know about isolate
18 infrastructure.
maruel@chromium.org8fb47fe2012-10-03 20:13:15 +000019"""
20
21import os
22import sys
23
24
25def 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
36if __name__ == '__main__':
37 sys.exit(main())