blob: 2232eb21d04e06aa79441ee6199a3b2011588f90 [file] [log] [blame]
maruel@chromium.org8fb47fe2012-10-03 20:13:15 +00001#!/usr/bin/env python
2# coding=utf-8
maruelea586f32016-04-05 11:11:33 -07003# 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.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())