summaryrefslogtreecommitdiffstats
path: root/build/ios/chrome_ios.croc
diff options
context:
space:
mode:
authorlliabraa@chromium.org <lliabraa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 17:00:57 +0000
committerlliabraa@chromium.org <lliabraa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-09 17:00:57 +0000
commitd11682d50a1dff1d0e4eac87b2c62e0ad5aa4449 (patch)
tree77544774fa544bd41b1d2eeb8d368aefc9064c02 /build/ios/chrome_ios.croc
parent99b2c1328a8f754cf8c10a98d3aff0bbd933fefb (diff)
downloadchromium_src-d11682d50a1dff1d0e4eac87b2c62e0ad5aa4449.zip
chromium_src-d11682d50a1dff1d0e4eac87b2c62e0ad5aa4449.tar.gz
chromium_src-d11682d50a1dff1d0e4eac87b2c62e0ad5aa4449.tar.bz2
Add croc config file for iOS code coverage.
This croc config file instruments all files with 'ios' in the path for test coverage. BUG=None Review URL: https://chromiumcodereview.appspot.com/11087028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/ios/chrome_ios.croc')
-rw-r--r--build/ios/chrome_ios.croc71
1 files changed, 71 insertions, 0 deletions
diff --git a/build/ios/chrome_ios.croc b/build/ios/chrome_ios.croc
new file mode 100644
index 0000000..938a2e9
--- /dev/null
+++ b/build/ios/chrome_ios.croc
@@ -0,0 +1,71 @@
+# -*- 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++',
+ },
+ ],
+}