diff options
author | Kevin Lubick <kjlubick@google.com> | 2017-10-10 10:51:40 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-10 15:15:22 +0000 |
commit | e0240455a84d530e5f5a5c1525e31341938c9207 (patch) | |
tree | 1960d54304dcbe906eecb99c904c69af4be9f2e6 /infra/bots/recipe_modules | |
parent | 6b03480baa2a32884434998388029d97e3d72db6 (diff) |
Add Linux GPU Coverage bot
Adds it for Vulkan and non-Vulkan
Bug: skia:7080
NOTRY=true
Change-Id: I5c4b30b91b96ad6ce9694c42550c4e909de4ba41
Reviewed-on: https://skia-review.googlesource.com/57560
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'infra/bots/recipe_modules')
-rw-r--r-- | infra/bots/recipe_modules/flavor/gn_flavor.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/infra/bots/recipe_modules/flavor/gn_flavor.py b/infra/bots/recipe_modules/flavor/gn_flavor.py index b1855de98e..9924122a05 100644 --- a/infra/bots/recipe_modules/flavor/gn_flavor.py +++ b/infra/bots/recipe_modules/flavor/gn_flavor.py @@ -59,7 +59,7 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils): cxx = emscripten_sdk + '/emscripten/incoming/em++' extra_cflags.append('-Wno-unknown-warning-option') - if extra_config == 'Coverage': + if 'Coverage' in extra_config: # See https://clang.llvm.org/docs/SourceBasedCodeCoverage.html for # more info on using llvm to gather coverage information. extra_cflags.append('-fprofile-instr-generate') @@ -114,7 +114,7 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils): args['skia_enable_gpu'] = 'false' if extra_config == 'Shared': args['is_component_build'] = 'true' - if extra_config == 'Vulkan': + if 'Vulkan' in extra_config and not 'Android' in extra_config: args['skia_enable_vulkan_debug_layers'] = 'false' if self.m.vars.is_linux: args['skia_vulkan_sdk'] = '"%s"' % linux_vulkan_sdk @@ -134,7 +134,7 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils): 'skia_use_icu': 'false', 'skia_enable_gpu': 'false', }) - if extra_config == 'Coverage': + if 'Coverage' in extra_config: args['skia_use_system_freetype2'] = 'false' sanitize = '' @@ -238,7 +238,7 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils): # If we're in a signal handler, we're already crashing... env['TSAN_OPTIONS'] = 'report_signal_unsafe=0' - if 'Coverage' == extra_config: + if 'Coverage' in extra_config: # This is the output file for the coverage data. Just running the binary # will produce the output. The output_file is in the swarming_out_dir and # thus will be an isolated output of the Test step. |