diff options
author | rspangler@google.com <rspangler@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 18:31:04 +0000 |
---|---|---|
committer | rspangler@google.com <rspangler@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-13 18:31:04 +0000 |
commit | 916225c4298662c51f7a3218e283da7816d5844d (patch) | |
tree | b88e01cb8c90289604b5c0363a7b26af78c9da25 /build/mac | |
parent | 616d628496d7940cecfe5b42a73215cbbbff9f1d (diff) | |
download | chromium_src-916225c4298662c51f7a3218e283da7816d5844d.zip chromium_src-916225c4298662c51f7a3218e283da7816d5844d.tar.gz chromium_src-916225c4298662c51f7a3218e283da7816d5844d.tar.bz2 |
Add croc code coverage tool. (Same change as yesterday, but now made in the
writable repository)
Review URL: http://codereview.chromium.org/113346
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac')
-rw-r--r-- | build/mac/chrome_mac.croc | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/build/mac/chrome_mac.croc b/build/mac/chrome_mac.croc new file mode 100644 index 0000000..356e453 --- /dev/null +++ b/build/mac/chrome_mac.croc @@ -0,0 +1,96 @@ +# Crocodile config file for Chromium mac + +{ + # List of rules, applied in order + 'rules' : [ + # Files/paths to include. Specify these before the excludes, since rules + # are in order. + { + 'regexp' : '^#/src/(base|media|net|printing)/', + 'include' : 1, + }, + # Don't include subversion or mercurial SCM dirs + { + 'regexp' : '.*/(\\.svn|\\.hg)/', + 'include' : 0, + }, + # Don't include output dirs + { + 'regexp' : '.*/(Debug|Release|sconsbuild|xcodebuild)/', + 'include' : 0, + }, + # Don't include third-party source + { + 'regexp' : '.*/third_party/', + 'include' : 0, + }, + # Don't include windows or mac specific files + { + 'regexp' : '.*(_|/)(linux|win)(\\.|_)', + 'include' : 0, + }, + + # Groups + { + 'regexp' : '', + 'group' : 'source', + }, + { + 'regexp' : '.*_(test|test_mac|unittest)\\.', + 'group' : 'test', + }, + + # Languages + { + 'regexp' : '.*\\.(c|h)$', + 'language' : 'C', + }, + { + 'regexp' : '.*\\.(cc|cpp|hpp)$', + 'language' : 'C++', + }, + { + 'regexp' : '.*\\.m$', + 'language' : 'ObjC', + }, + { + 'regexp' : '.*\\.mm$', + 'language' : 'ObjC++', + }, + ], + + # Paths to add source from + 'add_files' : [ + '#/src' + ], + + # Statistics to print + 'print_stats' : [ + { + 'stat' : 'files_executable', + 'format' : '*RESULT FilesKnown: files_executable= %d files', + }, + { + 'stat' : 'files_instrumented', + 'format' : '*RESULT FilesInstrumented: files_instrumented= %d files', + }, + { + 'stat' : '100.0 * files_instrumented / files_executable', + 'format' : '*RESULT FilesInstrumentedPercent: files_instrumented_percent= %g', + }, + { + 'stat' : 'lines_instrumented', + 'format' : '*RESULT LinesInstrumented: lines_instrumented= %d lines', + }, + { + 'stat' : 'lines_covered', + 'format' : '*RESULT LinesCoveredSource: lines_covered_source= %d lines', + 'group' : 'source', + }, + { + 'stat' : 'lines_covered', + 'format' : '*RESULT LinesCoveredTest: lines_covered_test= %d lines', + 'group' : 'test', + }, + ], +} |