summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorrspangler@google.com <rspangler@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 21:59:43 +0000
committerrspangler@google.com <rspangler@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 21:59:43 +0000
commitab2e302d9406235e7db8dd63d9047fff48cfc65c (patch)
treef8edca554f1e639b1d3eac4c9cb67172803235df /build
parentb1917d58ea5625e9b637f682a20a13c17dfda738 (diff)
downloadchromium_src-ab2e302d9406235e7db8dd63d9047fff48cfc65c.zip
chromium_src-ab2e302d9406235e7db8dd63d9047fff48cfc65c.tar.gz
chromium_src-ab2e302d9406235e7db8dd63d9047fff48cfc65c.tar.bz2
Add Croc code coverage config for linux.
Review URL: http://codereview.chromium.org/115591 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/linux/chrome_linux.croc89
1 files changed, 89 insertions, 0 deletions
diff --git a/build/linux/chrome_linux.croc b/build/linux/chrome_linux.croc
new file mode 100644
index 0000000..f4f10b5
--- /dev/null
+++ b/build/linux/chrome_linux.croc
@@ -0,0 +1,89 @@
+# -*- python -*-
+# Crocodile config file for Chromium linux
+
+{
+ # 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' : '.*(_|/)(mac|win)(\\.|_)',
+ 'include' : 0,
+ },
+
+ # Groups
+ {
+ 'regexp' : '',
+ 'group' : 'source',
+ },
+ {
+ 'regexp' : '.*_(test|test_linux|unittest)\\.',
+ 'group' : 'test',
+ },
+
+ # Languages
+ {
+ 'regexp' : '.*\\.(c|h)$',
+ 'language' : 'C',
+ },
+ {
+ 'regexp' : '.*\\.(cc|cpp|hpp)$',
+ 'language' : 'C++',
+ },
+ ],
+
+ # 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',
+ },
+ ],
+}