Remove .croc files
They were apparently used by some old code coverage system long ago. https://chromium-review.googlesource.com/c/chromium/src/+/764949/ removed tools/code_coverage/croc.py well over 2 years ago, so we probably don't need these files either. Bug: 784464 Change-Id: I2cb1c7ee973c26b673a225659967516f5bf922d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2036804 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Auto-Submit: Nico Weber <thakis@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#742809} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: cb3953490314bd66e12023f6bdef8610685b467a
This commit is contained in:
Родитель
cd458e9ac7
Коммит
c0085dec90
127
common.croc
127
common.croc
|
@ -1,127 +0,0 @@
|
|||
# -*- python -*-
|
||||
# Crocodile config file for Chromium - settings common to all platforms
|
||||
#
|
||||
# This should be speicified before the platform-specific config, for example:
|
||||
# croc -c chrome_common.croc -c linux/chrome_linux.croc
|
||||
|
||||
{
|
||||
# List of root directories, applied in order
|
||||
'roots' : [
|
||||
# Sub-paths we specifically care about and want to call out
|
||||
{
|
||||
'root' : '_/src',
|
||||
'altname' : 'CHROMIUM',
|
||||
},
|
||||
],
|
||||
|
||||
# List of rules, applied in order
|
||||
# Note that any 'include':0 rules here will be overridden by the 'include':1
|
||||
# rules in the platform-specific configs.
|
||||
'rules' : [
|
||||
# Don't scan for executable lines in uninstrumented C++ header files
|
||||
{
|
||||
'regexp' : '.*\\.(h|hpp)$',
|
||||
'add_if_missing' : 0,
|
||||
},
|
||||
|
||||
# Groups
|
||||
{
|
||||
'regexp' : '',
|
||||
'group' : 'source',
|
||||
},
|
||||
{
|
||||
'regexp' : '.*_(test|unittest|uitest|browsertest)\\.',
|
||||
'group' : 'test',
|
||||
},
|
||||
|
||||
# Languages
|
||||
{
|
||||
'regexp' : '.*\\.(c|h)$',
|
||||
'language' : 'C',
|
||||
},
|
||||
{
|
||||
'regexp' : '.*\\.(cc|cpp|hpp)$',
|
||||
'language' : 'C++',
|
||||
},
|
||||
|
||||
# Files/paths to include. Specify these before the excludes, since rules
|
||||
# are in order.
|
||||
{
|
||||
'regexp' : '^CHROMIUM/(base|media|net|printing|remoting|chrome|content|webkit/glue|native_client)/',
|
||||
'include' : 1,
|
||||
},
|
||||
# Don't include subversion or mercurial SCM dirs
|
||||
{
|
||||
'regexp' : '.*/(\\.svn|\\.hg)/',
|
||||
'include' : 0,
|
||||
},
|
||||
# Don't include output dirs
|
||||
{
|
||||
'regexp' : '.*/(Debug|Release|out|xcodebuild)/',
|
||||
'include' : 0,
|
||||
},
|
||||
# Don't include third-party source
|
||||
{
|
||||
'regexp' : '.*/third_party/',
|
||||
'include' : 0,
|
||||
},
|
||||
# We don't run the V8 test suite, so we don't care about V8 coverage.
|
||||
{
|
||||
'regexp' : '.*/v8/',
|
||||
'include' : 0,
|
||||
},
|
||||
],
|
||||
|
||||
# Paths to add source from
|
||||
'add_files' : [
|
||||
'CHROMIUM'
|
||||
],
|
||||
|
||||
# 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 percent',
|
||||
},
|
||||
{
|
||||
'stat' : 'lines_executable',
|
||||
'format' : '*RESULT LinesKnown: lines_known= %d lines',
|
||||
},
|
||||
{
|
||||
'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',
|
||||
},
|
||||
{
|
||||
'stat' : '100.0 * lines_covered / lines_executable',
|
||||
'format' : '*RESULT PercentCovered: percent_covered= %g percent',
|
||||
},
|
||||
{
|
||||
'stat' : '100.0 * lines_covered / lines_executable',
|
||||
'format' : '*RESULT PercentCoveredSource: percent_covered_source= %g percent',
|
||||
'group' : 'source',
|
||||
},
|
||||
{
|
||||
'stat' : '100.0 * lines_covered / lines_executable',
|
||||
'format' : '*RESULT PercentCoveredTest: percent_covered_test= %g percent',
|
||||
'group' : 'test',
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
# -*- python -*-
|
||||
# Crocodile config file for Chromium iOS.
|
||||
#
|
||||
# Note that Chromium iOS also uses the config file at src/build/common.croc.
|
||||
#
|
||||
# See src/tools/code_coverage/example.croc for more info on config files.
|
||||
|
||||
{
|
||||
# List of rules, applied in order
|
||||
'rules' : [
|
||||
# Specify inclusions before exclusions, since rules are in order.
|
||||
|
||||
# Exclude everything to negate whatever is in src/build/common.croc
|
||||
{
|
||||
'regexp' : '.*',
|
||||
'include' : 0,
|
||||
},
|
||||
|
||||
# Include all directories (but not the files in the directories).
|
||||
# This is a workaround for how croc.py walks the directory tree. See the
|
||||
# TODO in the AddFiles method of src/tools/code_coverage/croc.py
|
||||
{
|
||||
'regexp' : '.*/$',
|
||||
'include' : 1,
|
||||
},
|
||||
|
||||
# Include any file with an 'ios' directory in the path.
|
||||
{
|
||||
'regexp' : '.*/ios/.*',
|
||||
'include' : 1,
|
||||
'add_if_missing' : 1,
|
||||
},
|
||||
|
||||
# Include any file that ends with _ios.
|
||||
{
|
||||
'regexp' : '.*_ios\\.(c|cc|m|mm)$',
|
||||
'include' : 1,
|
||||
'add_if_missing' : 1,
|
||||
},
|
||||
|
||||
# Include any file that ends with _ios_unittest (and label it a test).
|
||||
{
|
||||
'regexp' : '.*_ios_unittest\\.(c|cc|m|mm)$',
|
||||
'include' : 1,
|
||||
'add_if_missing' : 1,
|
||||
'group' : 'test',
|
||||
},
|
||||
|
||||
# Don't scan for executable lines in uninstrumented header files
|
||||
{
|
||||
'regexp' : '.*\\.(h|hpp)$',
|
||||
'add_if_missing' : 0,
|
||||
},
|
||||
|
||||
# Don't measure coverage of perftests.
|
||||
{
|
||||
'regexp' : '.*perftest\\.(c|cc|m|mm)$',
|
||||
'include' : 0,
|
||||
},
|
||||
|
||||
# Languages
|
||||
{
|
||||
'regexp' : '.*\\.m$',
|
||||
'language' : 'ObjC',
|
||||
},
|
||||
{
|
||||
'regexp' : '.*\\.mm$',
|
||||
'language' : 'ObjC++',
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
# -*- python -*-
|
||||
# Crocodile config file for Chromium linux
|
||||
|
||||
# TODO(jhawkins): We'll need to add a chromeos.croc once we get a coverage bot
|
||||
# for that platform.
|
||||
|
||||
{
|
||||
# List of rules, applied in order
|
||||
'rules' : [
|
||||
# Specify inclusions before exclusions, since rules are in order.
|
||||
|
||||
# Don't include non-Linux platform dirs
|
||||
{
|
||||
'regexp' : '.*/(chromeos|views)/',
|
||||
'include' : 0,
|
||||
},
|
||||
# Don't include chromeos, windows, or mac specific files
|
||||
{
|
||||
'regexp' : '.*(_|/)(chromeos|mac|win|views)(\\.|_)',
|
||||
'include' : 0,
|
||||
},
|
||||
|
||||
# Groups
|
||||
{
|
||||
'regexp' : '.*_test_linux\\.',
|
||||
'group' : 'test',
|
||||
},
|
||||
],
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
# -*- python -*-
|
||||
# Crocodile config file for Chromium windows
|
||||
|
||||
{
|
||||
# List of rules, applied in order
|
||||
'rules' : [
|
||||
# Specify inclusions before exclusions, since rules are in order.
|
||||
|
||||
# Don't include chromeos, posix, or linux specific files
|
||||
{
|
||||
'regexp' : '.*(_|/)(chromeos|linux|posix)(\\.|_)',
|
||||
'include' : 0,
|
||||
},
|
||||
# Don't include ChromeOS dirs
|
||||
{
|
||||
'regexp' : '.*/chromeos/',
|
||||
'include' : 0,
|
||||
},
|
||||
|
||||
# Groups
|
||||
{
|
||||
'regexp' : '.*_test_win\\.',
|
||||
'group' : 'test',
|
||||
},
|
||||
],
|
||||
}
|
Загрузка…
Ссылка в новой задаче