OLD | NEW |
(Empty) | |
| 1 # Crocodile config file for Chromium mac |
| 2 |
| 3 { |
| 4 # List of rules, applied in order |
| 5 'rules' : [ |
| 6 # Files/paths to include. Specify these before the excludes, since rules |
| 7 # are in order. |
| 8 { |
| 9 'regexp' : '^#/src/(base|media|net|printing)/', |
| 10 'include' : 1, |
| 11 }, |
| 12 # Don't include subversion or mercurial SCM dirs |
| 13 { |
| 14 'regexp' : '.*/(\\.svn|\\.hg)/', |
| 15 'include' : 0, |
| 16 }, |
| 17 # Don't include output dirs |
| 18 { |
| 19 'regexp' : '.*/(Debug|Release|sconsbuild|xcodebuild)/', |
| 20 'include' : 0, |
| 21 }, |
| 22 # Don't include third-party source |
| 23 { |
| 24 'regexp' : '.*/third_party/', |
| 25 'include' : 0, |
| 26 }, |
| 27 # Don't include windows or mac specific files |
| 28 { |
| 29 'regexp' : '.*(_|/)(linux|win)(\\.|_)', |
| 30 'include' : 0, |
| 31 }, |
| 32 |
| 33 # Groups |
| 34 { |
| 35 'regexp' : '', |
| 36 'group' : 'source', |
| 37 }, |
| 38 { |
| 39 'regexp' : '.*_(test|test_mac|unittest)\\.', |
| 40 'group' : 'test', |
| 41 }, |
| 42 |
| 43 # Languages |
| 44 { |
| 45 'regexp' : '.*\\.(c|h)$', |
| 46 'language' : 'C', |
| 47 }, |
| 48 { |
| 49 'regexp' : '.*\\.(cc|cpp|hpp)$', |
| 50 'language' : 'C++', |
| 51 }, |
| 52 { |
| 53 'regexp' : '.*\\.m$', |
| 54 'language' : 'ObjC', |
| 55 }, |
| 56 { |
| 57 'regexp' : '.*\\.mm$', |
| 58 'language' : 'ObjC++', |
| 59 }, |
| 60 ], |
| 61 |
| 62 # Paths to add source from |
| 63 'add_files' : [ |
| 64 '#/src' |
| 65 ], |
| 66 |
| 67 # Statistics to print |
| 68 'print_stats' : [ |
| 69 { |
| 70 'stat' : 'files_executable', |
| 71 'format' : '*RESULT FilesKnown: files_executable= %d files', |
| 72 }, |
| 73 { |
| 74 'stat' : 'files_instrumented', |
| 75 'format' : '*RESULT FilesInstrumented: files_instrumented= %d files', |
| 76 }, |
| 77 { |
| 78 'stat' : '100.0 * files_instrumented / files_executable', |
| 79 'format' : '*RESULT FilesInstrumentedPercent: files_instrumented_percent=
%g', |
| 80 }, |
| 81 { |
| 82 'stat' : 'lines_instrumented', |
| 83 'format' : '*RESULT LinesInstrumented: lines_instrumented= %d lines', |
| 84 }, |
| 85 { |
| 86 'stat' : 'lines_covered', |
| 87 'format' : '*RESULT LinesCoveredSource: lines_covered_source= %d lines', |
| 88 'group' : 'source', |
| 89 }, |
| 90 { |
| 91 'stat' : 'lines_covered', |
| 92 'format' : '*RESULT LinesCoveredTest: lines_covered_test= %d lines', |
| 93 'group' : 'test', |
| 94 }, |
| 95 ], |
| 96 } |
OLD | NEW |