| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Generate and process code coverage. | 6 """Generate and process code coverage. |
| 7 | 7 |
| 8 TODO(jrg): rename this from coverage_posix.py to coverage_all.py! | 8 TODO(jrg): rename this from coverage_posix.py to coverage_all.py! |
| 9 | 9 |
| 10 Written for and tested on Mac, Linux, and Windows. To use this script | 10 Written for and tested on Mac, Linux, and Windows. To use this script |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 http://src.chromium.org/viewvc/chrome/trunk/tools/buildbot/scripts/slave/runte
st.py | 62 http://src.chromium.org/viewvc/chrome/trunk/tools/buildbot/scripts/slave/runte
st.py |
| 63 | 63 |
| 64 --target=NAME: specify the build target (e.g. 'Debug' or 'Release'). | 64 --target=NAME: specify the build target (e.g. 'Debug' or 'Release'). |
| 65 This is used by buildbot scripts to help us find the output directory. | 65 This is used by buildbot scripts to help us find the output directory. |
| 66 Must be used with --build-dir. | 66 Must be used with --build-dir. |
| 67 | 67 |
| 68 --build-dir=DIR: According to buildbot comments, this is the name of | 68 --build-dir=DIR: According to buildbot comments, this is the name of |
| 69 the directory within the buildbot working directory in which the | 69 the directory within the buildbot working directory in which the |
| 70 solution, Debug, and Release directories are found. | 70 solution, Debug, and Release directories are found. |
| 71 It's usually "src/build", but on mac it's $DIR/../xcodebuild and on | 71 It's usually "src/build", but on mac it's $DIR/../xcodebuild and on |
| 72 Linux it's $DIR/../sconsbuild or $DIR/sconsbuild or $DIR/out. | 72 Linux it's $DIR/out. |
| 73 This is used by buildbot scripts to help us find the output directory. | 73 This is used by buildbot scripts to help us find the output directory. |
| 74 Must be used with --target. | 74 Must be used with --target. |
| 75 | 75 |
| 76 --no_exclusions: Do NOT use the exclusion list. This script keeps a | 76 --no_exclusions: Do NOT use the exclusion list. This script keeps a |
| 77 list of tests known to be problematic under coverage. For example, | 77 list of tests known to be problematic under coverage. For example, |
| 78 ProcessUtilTest.SpawnChild will crash inside __gcov_fork() when | 78 ProcessUtilTest.SpawnChild will crash inside __gcov_fork() when |
| 79 using the MacOS 10.6 SDK. Use of --no_exclusions prevents the use | 79 using the MacOS 10.6 SDK. Use of --no_exclusions prevents the use |
| 80 of this exclusion list. | 80 of this exclusion list. |
| 81 | 81 |
| 82 --dont-clear-coverage-data: Normally we clear coverage data from | 82 --dont-clear-coverage-data: Normally we clear coverage data from |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 if options.trim: | 907 if options.trim: |
| 908 coverage.TrimTests() | 908 coverage.TrimTests() |
| 909 coverage.RunTests() | 909 coverage.RunTests() |
| 910 if options.genhtml: | 910 if options.genhtml: |
| 911 coverage.GenerateHtml() | 911 coverage.GenerateHtml() |
| 912 return 0 | 912 return 0 |
| 913 | 913 |
| 914 | 914 |
| 915 if __name__ == '__main__': | 915 if __name__ == '__main__': |
| 916 sys.exit(main()) | 916 sys.exit(main()) |
| OLD | NEW |