summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 04:35:18 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 04:35:18 +0000
commitf5ecbba1f92417edf8759d93904e12cfe9a2d0b4 (patch)
tree88eb8f6e89012dd41189a478fa6e263569a23ffa /chrome
parenta6cf87ec511a64fc29c0bda5cf83ec282d34be59 (diff)
downloadchromium_src-f5ecbba1f92417edf8759d93904e12cfe9a2d0b4.zip
chromium_src-f5ecbba1f92417edf8759d93904e12cfe9a2d0b4.tar.gz
chromium_src-f5ecbba1f92417edf8759d93904e12cfe9a2d0b4.tar.bz2
Start of code coverage for Mac.
Only base_unittests included for now. Linux changes added as well but untested until Linux switches to gyp. Enable coverage with the following command: src/tools/gyp/gyp_dogfood -Dcoverage=1 src/build/all.gyp Review URL: http://codereview.chromium.org/56136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/chrome.gyp27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 43b1412..615ba24 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -2805,5 +2805,32 @@
},
]}, # 'targets'
], # OS=="win"
+ # TODO(jrg): add in Windows code coverage targets.
+ # Also test on Linux.
+ ['coverage!=0 and OS=="mac"',
+ { 'targets': [
+ {
+ 'target_name': 'coverage',
+ # do NOT place this in the 'all' list; most won't want it.
+ # In gyp, booleans are 0/1 not True/False.
+ 'suppress_wildcard': 1,
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_unittests',
+ ],
+ 'actions': [
+ {
+ 'inputs': [],
+ 'outputs': [],
+ 'action_name': 'coverage',
+ 'action': [ 'python',
+ '../tools/code_coverage/coverage_posix.py',
+ '--directory',
+ '<(PRODUCT_DIR)' ],
+ },
+ ], # 'actions'
+ },
+ ]
+ }],
], # 'conditions'
}