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

Issue 56136: Start of code coverage for Mac.... (Closed)

Created:
11 years, 8 months ago by John Grabowski
Modified:
9 years, 5 months ago
Reviewers:
Mark Mentovai, TVL
CC:
chromium-reviews_googlegroups.com, Mark Larson
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13068

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 24

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -0 lines) Patch
M build/common.gypi View 1 2 2 chunks +35 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A tools/code_coverage/coverage_posix.py View 2 3 1 chunk +120 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
John Grabowski
11 years, 8 months ago (2009-04-01 01:43:39 UTC) #1
Mark Mentovai
LGTM http://codereview.chromium.org/56136/diff/1003/1004 File build/common.gypi (right): http://codereview.chromium.org/56136/diff/1003/1004#newcode53 Line 53: 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, ...
11 years, 8 months ago (2009-04-01 02:31:46 UTC) #2
TVL
drive by http://codereview.chromium.org/56136/diff/1003/1004 File build/common.gypi (right): http://codereview.chromium.org/56136/diff/1003/1004#newcode52 Line 52: ['_type=="executable"', { should this be '_type=="executable" ...
11 years, 8 months ago (2009-04-01 03:56:45 UTC) #3
John Grabowski
http://codereview.chromium.org/56136/diff/1003/1004 File build/common.gypi (right): http://codereview.chromium.org/56136/diff/1003/1004#newcode52 Line 52: ['_type=="executable"', { On 2009/04/01 03:56:46, TVL wrote: > ...
11 years, 8 months ago (2009-04-03 03:42:37 UTC) #4
Mark Mentovai
LG http://codereview.chromium.org/56136/diff/6/2003 File chrome/chrome.gyp (right): http://codereview.chromium.org/56136/diff/6/2003#newcode2826 Line 2826: 'action': [ '../tools/code_coverage/coverage_posix.py', Oh right, one more ...
11 years, 8 months ago (2009-04-03 04:03:15 UTC) #5
John Grabowski
11 years, 8 months ago (2009-04-03 04:23:06 UTC) #6
http://codereview.chromium.org/56136/diff/6/2003
File chrome/chrome.gyp (right):

http://codereview.chromium.org/56136/diff/6/2003#newcode2826
Line 2826: 'action': [ '../tools/code_coverage/coverage_posix.py',
On 2009/04/03 04:03:15, Mark Mentovai wrote:
> Oh right, one more thing, by convention we always put 'python' first on these.

> Two reasons: it guards against scripts that accidentally lose their x-bit, and
> on Windows, we need to do this to actually bring up the python interpreter.
added

http://codereview.chromium.org/56136/diff/6/2004
File tools/code_coverage/coverage_posix.py (right):

http://codereview.chromium.org/56136/diff/6/2004#newcode81
Line 81: subprocess.call([fulltest])
On 2009/04/03 04:03:15, Mark Mentovai wrote:
> My comment about --gtest_print_time belonged on this line, not the TODO line. 
> Stupid trackpad.  I meant that we run all of our unit tests from Xcode with
that
> argument now, we might want to add the argument here too for consistency.

We probably don't want it; don't care about time here (unlike xcode).  But I'd
like to be consistent so I added another TODO.

Powered by Google App Engine
This is Rietveld 408576698