diff options
author | ilevy@chromium.org <ilevy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-04 05:54:12 +0000 |
---|---|---|
committer | ilevy@chromium.org <ilevy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-04 05:54:12 +0000 |
commit | a21a0c522396ec7598917cc1195af54c302783af (patch) | |
tree | aa416730257cc44856cb0d8f02d7e94276057f04 /build | |
parent | 61a5a81d54b382fc8a244d98c2b5857cc1eeec4d (diff) | |
download | chromium_src-a21a0c522396ec7598917cc1195af54c302783af.zip chromium_src-a21a0c522396ec7598917cc1195af54c302783af.tar.gz chromium_src-a21a0c522396ec7598917cc1195af54c302783af.tar.bz2 |
Add src configuration for Android user build bot
This bot will run tests on an unrooted phone.
Clean up bb_run_bot.py
- use default args for BotConfig objects
- exclusively use slave props for extra_gyp_defines
BUG=236409
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/15250004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rwxr-xr-x | build/android/buildbot/bb_run_bot.py | 43 | ||||
-rwxr-xr-x | build/android/buildbot/buildbot_functions.sh | 5 |
2 files changed, 24 insertions, 24 deletions
diff --git a/build/android/buildbot/bb_run_bot.py b/build/android/buildbot/bb_run_bot.py index 77dc7ea..c510b09 100755 --- a/build/android/buildbot/bb_run_bot.py +++ b/build/android/buildbot/bb_run_bot.py @@ -83,8 +83,11 @@ def GetBotStepMap(): std_test_steps = ['bb_extract_build'] std_tests = ['ui', 'unit'] flakiness_server = '--upload-to-flakiness-server' + extra_gyp = 'extra_gyp_defines' + + def B(bot_id, bash_funs, test_obj=None, slave_props=None): + return BotConfig(bot_id, bash_funs, test_obj, slave_props) - B = BotConfig def T(tests, extra_args=None): return TestConfig(tests, extra_args) @@ -92,39 +95,37 @@ def GetBotStepMap(): # Main builders B('main-builder-dbg', ['bb_check_webview_licenses', 'bb_compile', 'bb_run_findbugs', - 'bb_zip_build'], None, None), - B('main-builder-rel', - ['bb_compile', 'bb_zip_build'], None, None), - B('main-clang-builder', compile_step, None, None), - B('main-clobber', compile_step, None, None), - B('main-tests', std_test_steps, T(std_tests, [flakiness_server]), - None), + 'bb_zip_build']), + B('main-builder-rel', ['bb_compile', 'bb_zip_build']), + B('main-clang-builder', compile_step, slave_props={extra_gyp: 'clang=1'}), + B('main-clobber', compile_step), + B('main-tests', std_test_steps, T(std_tests, [flakiness_server])), # Other waterfalls B('asan-builder-tests', compile_step + ['bb_asan_tests_setup'], - T(std_tests, ['--asan']), {'extra_gyp_defines': 'asan=1'}), + T(std_tests, ['--asan']), {extra_gyp: 'asan=1'}), B('chromedriver-fyi-tests-dbg', std_test_steps, - T(['chromedriver'], ['--install=ChromiumTestShell']), None), + T(['chromedriver'], ['--install=ChromiumTestShell'])), B('fyi-builder-dbg', ['bb_check_webview_licenses', 'bb_compile', 'bb_compile_experimental', - 'bb_run_findbugs', 'bb_zip_build'], None, None), + 'bb_run_findbugs', 'bb_zip_build']), B('fyi-builder-rel', - ['bb_compile', 'bb_compile_experimental', 'bb_zip_build'], None, None), + ['bb_compile', 'bb_compile_experimental', 'bb_zip_build']), B('fyi-tests-dbg-ics-gn', ['bb_compile', 'bb_compile_experimental'], - T(std_tests, ['--experimental', flakiness_server]), None), + T(std_tests, ['--experimental', flakiness_server])), B('fyi-tests', std_test_steps, - T(std_tests, ['--experimental', flakiness_server]), None), + T(std_tests, ['--experimental', flakiness_server])), B('fyi-component-builder-tests-dbg', compile_step, - T(std_tests, ['--experimental', flakiness_server]), None), - B('perf-tests-rel', std_test_steps, - T([], ['--install=ContentShell']), - None), + T(std_tests, ['--experimental', flakiness_server]), + {extra_gyp: 'component=shared_library'}), + B('perf-tests-rel', std_test_steps, T([], ['--install=ContentShell'])), B('webkit-latest-webkit-tests', std_test_steps, - T(['webkit_layout', 'webkit']), None), - B('webkit-latest-contentshell', compile_step, T(['webkit_layout']), None), + T(['webkit_layout', 'webkit'])), + B('webkit-latest-contentshell', compile_step, T(['webkit_layout'])), + B('builder-unit-tests', compile_step, T(['unit'])), # Generic builder config (for substring match). - B('builder', std_build_steps, None, None), + B('builder', std_build_steps), ] bot_map = dict((config.bot_id, config) for config in bot_configs) diff --git a/build/android/buildbot/buildbot_functions.sh b/build/android/buildbot/buildbot_functions.sh index e9dd725..b674af3 100755 --- a/build/android/buildbot/buildbot_functions.sh +++ b/build/android/buildbot/buildbot_functions.sh @@ -49,10 +49,9 @@ function bb_baseline_setup { export GYP_GENERATORS=ninja export GOMA_DIR=/b/build/goma - . build/android/envsetup.sh + . build/android/envsetup.sh "" - local extra_gyp_defines="$(bb_get_json_prop "$FACTORY_PROPERTIES" \ - extra_gyp_defines) $(bb_get_json_prop "$SLAVE_PROPERTIES" \ + local extra_gyp_defines="$(bb_get_json_prop "$SLAVE_PROPERTIES" \ extra_gyp_defines)" export GYP_DEFINES+=" fastbuild=1 $extra_gyp_defines" if echo $extra_gyp_defines | grep -qE 'clang|asan'; then |