Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1919)

Unified Diff: scripts/slave/recipes/chromium_libfuzzer_clang_tot.py

Issue 2293913004: Add ClangToTLinuxAsanLibfuzzer (Closed)
Patch Set: Fix typo Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/chromium_libfuzzer_clang_tot.py
diff --git a/scripts/slave/recipes/chromium_libfuzzer_clang_tot.py b/scripts/slave/recipes/chromium_libfuzzer_clang_tot.py
new file mode 100644
index 0000000000000000000000000000000000000000..b31f96842dc042959bc6120151b53713c3ad7e63
--- /dev/null
+++ b/scripts/slave/recipes/chromium_libfuzzer_clang_tot.py
@@ -0,0 +1,63 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import re
+from recipe_engine.types import freeze
+
+DEPS = [
+ 'archive',
+ 'depot_tools/bot_update',
+ 'chromium',
+ 'file',
+ 'recipe_engine/json',
+ 'recipe_engine/path',
+ 'recipe_engine/platform',
+ 'recipe_engine/properties',
+ 'recipe_engine/python',
+ 'recipe_engine/raw_io',
+ 'recipe_engine/step',
+]
+
+
+BUILDERS = freeze({
+ 'chromium.fyi': {
+ 'builders': {
+ 'ClangToTLinuxAsanLibfuzzer': {
+ 'chromium_config': 'chromium_clang',
+ 'chromium_apply_config': [ 'proprietary_codecs' ],
+ 'chromium_config_kwargs': {
+ 'BUILD_CONFIG': 'Release',
+ 'TARGET_PLATFORM': 'linux',
+ 'TARGET_BITS': 64,
+ },
+ },
+ },
+ },
+})
+
+
+def RunSteps(api):
+ mastername = api.m.properties['mastername']
+ buildername, bot_config = api.chromium.configure_bot(BUILDERS, ['mb'])
+
+ api.bot_update.ensure_checkout(
+ force=True, patch_root=bot_config.get('root_override'))
+
+ api.chromium.runhooks()
+ api.chromium.run_mb(mastername, buildername, use_goma=False)
+
+ api.chromium.compile(targets=['empty_fuzzer'])
+
+ config_kwargs = bot_config.get('chromium_config_kwargs', dict())
+ build_config = config_kwargs.get('BUILD_CONFIG', 'Release')
+ build_dir=api.path['slave_build'].join('src', 'out', build_config)
+
+ api.step('running empty_fuzzer', [api.path.join(build_dir, 'empty_fuzzer'),
+ '-runs=1'])
+
+
+def GenTests(api):
+ for test in api.chromium.gen_tests_for_builders(BUILDERS):
+ yield test
+

Powered by Google App Engine
This is Rietveld 408576698