blob: 888632b5698dd120dfc1554eae67a3adca70e589 [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.
maruelf1f5e2a2016-05-25 17:10:39 -07004# Use of this source code is governed under the Apache License, Version 2.0
5# that 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__'):
Marc-Antoine Ruelf899c482019-10-10 23:32:06 +000031 print(module.__name__)
32 print(''.join(' %s\n' % i for i in module.__doc__.splitlines()))
maruel@chromium.org8fb47fe2012-10-03 20:13:15 +000033 return 0
34
35
36if __name__ == '__main__':
37 sys.exit(main())