kjellander@webrtc.org | c3e097c | 2014-12-03 09:57:08 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 | # |
| 4 | # Use of this source code is governed by a BSD-style license |
| 5 | # that can be found in the LICENSE file in the root of the source |
| 6 | # tree. An additional intellectual property rights grant can be found |
| 7 | # in the file PATENTS. All contributing project authors may |
| 8 | # be found in the AUTHORS file in the root of the source tree. |
| 9 | |
| 10 | """ |
| 11 | Runs tests on Android devices. |
| 12 | |
| 13 | This script exists to avoid WebRTC being broken by changes in the Chrome Android |
| 14 | test execution toolchain. |
| 15 | """ |
| 16 | |
| 17 | import os |
| 18 | import sys |
| 19 | |
| 20 | SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 21 | ROOT_DIR = os.path.join(SCRIPT_DIR, os.pardir, os.pardir, os.pardir) |
| 22 | CHROMIUM_BUILD_ANDROID_DIR = os.path.join(ROOT_DIR, 'build', 'android') |
| 23 | sys.path.insert(0, CHROMIUM_BUILD_ANDROID_DIR) |
| 24 | |
| 25 | |
| 26 | import test_runner |
| 27 | from pylib.gtest import gtest_config |
| 28 | |
| 29 | |
| 30 | def main(): |
| 31 | # Override the stable test suites with the WebRTC tests. |
| 32 | gtest_config.STABLE_TEST_SUITES = [ |
| 33 | 'audio_decoder_unittests', |
| 34 | 'common_audio_unittests', |
| 35 | 'common_video_unittests', |
| 36 | 'modules_tests', |
| 37 | 'modules_unittests', |
| 38 | 'system_wrappers_unittests', |
| 39 | 'test_support_unittests', |
| 40 | 'tools_unittests', |
| 41 | 'video_capture_tests', |
| 42 | 'video_engine_tests', |
| 43 | 'video_engine_core_unittests', |
| 44 | 'voice_engine_unittests', |
| 45 | 'webrtc_perf_tests', |
| 46 | ] |
| 47 | return test_runner.main() |
| 48 | |
| 49 | if __name__ == '__main__': |
| 50 | sys.exit(main()) |