Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: tools/code_coverage/coverage_posix.py

Issue 5535003: scons: excise more scons references from the code base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « testing/gtest.gyp ('k') | tools/data_pack/scons.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « testing/gtest.gyp ('k') | tools/data_pack/scons.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698