michael@0: # -*- python -*- michael@0: # Crocodile config file for Chromium - settings common to all platforms michael@0: # michael@0: # This should be speicified before the platform-specific config, for example: michael@0: # croc -c chrome_common.croc -c linux/chrome_linux.croc michael@0: michael@0: { michael@0: # List of root directories, applied in order michael@0: 'roots' : [ michael@0: # Sub-paths we specifically care about and want to call out michael@0: { michael@0: 'root' : '_/src', michael@0: 'altname' : 'CHROMIUM', michael@0: }, michael@0: ], michael@0: michael@0: # List of rules, applied in order michael@0: # Note that any 'include':0 rules here will be overridden by the 'include':1 michael@0: # rules in the platform-specific configs. michael@0: 'rules' : [ michael@0: # Don't scan for executable lines in uninstrumented C++ header files michael@0: { michael@0: 'regexp' : '.*\\.(h|hpp)$', michael@0: 'add_if_missing' : 0, michael@0: }, michael@0: michael@0: # Groups michael@0: { michael@0: 'regexp' : '', michael@0: 'group' : 'source', michael@0: }, michael@0: { michael@0: 'regexp' : '.*_(test|unittest|uitest|browsertest)\\.', michael@0: 'group' : 'test', michael@0: }, michael@0: michael@0: # Languages michael@0: { michael@0: 'regexp' : '.*\\.(c|h)$', michael@0: 'language' : 'C', michael@0: }, michael@0: { michael@0: 'regexp' : '.*\\.(cc|cpp|hpp)$', michael@0: 'language' : 'C++', michael@0: }, michael@0: michael@0: # Files/paths to include. Specify these before the excludes, since rules michael@0: # are in order. michael@0: { michael@0: 'regexp' : '^CHROMIUM/(base|media|net|printing|remoting|chrome|content|webkit/glue|native_client)/', michael@0: 'include' : 1, michael@0: }, michael@0: # Don't include subversion or mercurial SCM dirs michael@0: { michael@0: 'regexp' : '.*/(\\.svn|\\.hg)/', michael@0: 'include' : 0, michael@0: }, michael@0: # Don't include output dirs michael@0: { michael@0: 'regexp' : '.*/(Debug|Release|sconsbuild|out|xcodebuild)/', michael@0: 'include' : 0, michael@0: }, michael@0: # Don't include third-party source michael@0: { michael@0: 'regexp' : '.*/third_party/', michael@0: 'include' : 0, michael@0: }, michael@0: # We don't run the V8 test suite, so we don't care about V8 coverage. michael@0: { michael@0: 'regexp' : '.*/v8/', michael@0: 'include' : 0, michael@0: }, michael@0: ], michael@0: michael@0: # Paths to add source from michael@0: 'add_files' : [ michael@0: 'CHROMIUM' michael@0: ], michael@0: michael@0: # Statistics to print michael@0: 'print_stats' : [ michael@0: { michael@0: 'stat' : 'files_executable', michael@0: 'format' : '*RESULT FilesKnown: files_executable= %d files', michael@0: }, michael@0: { michael@0: 'stat' : 'files_instrumented', michael@0: 'format' : '*RESULT FilesInstrumented: files_instrumented= %d files', michael@0: }, michael@0: { michael@0: 'stat' : '100.0 * files_instrumented / files_executable', michael@0: 'format' : '*RESULT FilesInstrumentedPercent: files_instrumented_percent= %g', michael@0: }, michael@0: { michael@0: 'stat' : 'lines_executable', michael@0: 'format' : '*RESULT LinesKnown: lines_known= %d lines', michael@0: }, michael@0: { michael@0: 'stat' : 'lines_instrumented', michael@0: 'format' : '*RESULT LinesInstrumented: lines_instrumented= %d lines', michael@0: }, michael@0: { michael@0: 'stat' : 'lines_covered', michael@0: 'format' : '*RESULT LinesCoveredSource: lines_covered_source= %d lines', michael@0: 'group' : 'source', michael@0: }, michael@0: { michael@0: 'stat' : 'lines_covered', michael@0: 'format' : '*RESULT LinesCoveredTest: lines_covered_test= %d lines', michael@0: 'group' : 'test', michael@0: }, michael@0: { michael@0: 'stat' : '100.0 * lines_covered / lines_executable', michael@0: 'format' : '*RESULT PercentCovered: percent_covered= %g', michael@0: }, michael@0: { michael@0: 'stat' : '100.0 * lines_covered / lines_executable', michael@0: 'format' : '*RESULT PercentCoveredSource: percent_covered_source= %g', michael@0: 'group' : 'source', michael@0: }, michael@0: { michael@0: 'stat' : '100.0 * lines_covered / lines_executable', michael@0: 'format' : '*RESULT PercentCoveredTest: percent_covered_test= %g', michael@0: 'group' : 'test', michael@0: }, michael@0: ], michael@0: }