From dbaa3f9c8df5e1ef157f38f47eccc01c273f6a62 Mon Sep 17 00:00:00 2001 From: "kjellander@chromium.org" Date: Mon, 21 Oct 2013 08:18:29 +0000 Subject: [PATCH] Build support for WebRTC Chromium tests on Android. In addition to the native APK tests for WebRTC, we want to build and test the content_browsertests test for each revision of WebRTC in our Chromium WebRTC FYI waterfall. This CL adds the needed configurations for that, that are used by the buildbots in: https://codereview.chromium.org/26702005/ NOTRY=True TEST=presubmit BUG=305749 Review URL: https://codereview.chromium.org/26738003 git-svn-id: http://src.chromium.org/svn/trunk/src/build@229758 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/buildbot/bb_device_steps.py | 13 +++++++++---- android/buildbot/bb_run_bot.py | 12 +++++++++--- android/pylib/gtest/gtest_config.py | 6 +++++- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/android/buildbot/bb_device_steps.py b/android/buildbot/bb_device_steps.py index 232d11983..f80a2a46b 100755 --- a/android/buildbot/bb_device_steps.py +++ b/android/buildbot/bb_device_steps.py @@ -73,7 +73,7 @@ INSTRUMENTATION_TESTS = dict((suite.name, suite) for suite in [ ]) VALID_TESTS = set(['chromedriver', 'gpu', 'ui', 'unit', 'webkit', - 'webkit_layout', 'webrtc']) + 'webkit_layout', 'webrtc_chromium', 'webrtc_native']) RunCmd = bb_utils.RunCmd @@ -425,8 +425,12 @@ def RunWebkitTests(options): RunWebkitLint(options.target) -def RunWebRTCTests(options): - RunTestSuites(options, gtest_config.WEBRTC_TEST_SUITES) +def RunWebRTCChromiumTests(options): + RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) + + +def RunWebRTCNativeTests(options): + RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) def RunGPUTests(options): @@ -454,7 +458,8 @@ def GetTestStepCmds(): ('ui', RunInstrumentationTests), ('webkit', RunWebkitTests), ('webkit_layout', RunWebkitLayoutTests), - ('webrtc', RunWebRTCTests), + ('webrtc_chromium', RunWebRTCChromiumTests), + ('webrtc_native', RunWebRTCNativeTests), ] diff --git a/android/buildbot/bb_run_bot.py b/android/buildbot/bb_run_bot.py index dbe453a8f..10a6df11a 100755 --- a/android/buildbot/bb_run_bot.py +++ b/android/buildbot/bb_run_bot.py @@ -169,12 +169,18 @@ def GetBotStepMap(): B('webkit-latest-contentshell', H(compile_step), T(['webkit_layout'], ['--auto-reconnect'])), B('builder-unit-tests', H(compile_step), T(['unit'])), - B('webrtc-builder', + B('webrtc-chromium-builder', + H(std_build_steps, + extra_args=['--build-targets=content_browsertests_apk'])), + B('webrtc-native-builder', H(std_build_steps, extra_args=['--build-targets=android_builder_webrtc'], extra_gyp='include_tests=1 enable_tracing=1')), - B('webrtc-tests', H(['download_webrtc_resources'] + std_test_steps), - T(['webrtc'], [flakiness_server])), + B('webrtc-chromium-tests', H(std_test_steps), + T(['webrtc_chromium'], [flakiness_server])), + B('webrtc-native-tests', + H(['download_webrtc_resources'] + std_test_steps), + T(['webrtc_native'], [flakiness_server])), # Generic builder config (for substring match). B('builder', H(std_build_steps)), diff --git a/android/pylib/gtest/gtest_config.py b/android/pylib/gtest/gtest_config.py index b677761e9..c373ed9dd 100644 --- a/android/pylib/gtest/gtest_config.py +++ b/android/pylib/gtest/gtest_config.py @@ -33,7 +33,11 @@ STABLE_TEST_SUITES = [ 'sandbox_linux_unittests', ] -WEBRTC_TEST_SUITES = [ +WEBRTC_CHROMIUM_TEST_SUITES = [ + 'content_browsertests', +] + +WEBRTC_NATIVE_TEST_SUITES = [ 'audio_decoder_unittests', 'common_audio_unittests', 'common_video_unittests',