Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 import cmd_helper | 9 import cmd_helper |
| 10 import logging | 10 import logging |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 device: Device to run the tests. | 21 device: Device to run the tests. |
| 22 test_suite: A specific test suite to run, empty to run all. | 22 test_suite: A specific test suite to run, empty to run all. |
| 23 timeout: Timeout for each test. | 23 timeout: Timeout for each test. |
| 24 rebaseline: Whether or not to run tests in isolation and update the filter. | 24 rebaseline: Whether or not to run tests in isolation and update the filter. |
| 25 performance_test: Whether or not performance test(s). | 25 performance_test: Whether or not performance test(s). |
| 26 cleanup_test_files: Whether or not to cleanup test files on device. | 26 cleanup_test_files: Whether or not to cleanup test files on device. |
| 27 tool: Name of the Valgrind tool. | 27 tool: Name of the Valgrind tool. |
| 28 dump_debug_info: A debug_info object. | 28 dump_debug_info: A debug_info object. |
| 29 """ | 29 """ |
| 30 | 30 |
| 31 APK_DATA_DIR = '/data/user/0/com.android.chrome.native_tests/files/' | 31 APK_DATA_DIR = '/data/user/0/org.chromium.native_test/files/' |
|
John Grabowski
2012/04/24 22:15:00
Ha!
| |
| 32 | 32 |
| 33 def __init__(self, adb, device, test_suite, timeout, rebaseline, | 33 def __init__(self, adb, device, test_suite, timeout, rebaseline, |
| 34 performance_test, cleanup_test_files, tool, | 34 performance_test, cleanup_test_files, tool, |
| 35 dump_debug_info): | 35 dump_debug_info): |
| 36 TestPackage.__init__(self, adb, device, test_suite, timeout, | 36 TestPackage.__init__(self, adb, device, test_suite, timeout, |
| 37 rebaseline, performance_test, cleanup_test_files, | 37 rebaseline, performance_test, cleanup_test_files, |
| 38 tool, dump_debug_info) | 38 tool, dump_debug_info) |
| 39 | 39 |
| 40 def _CreateTestRunnerScript(self, options): | 40 def _CreateTestRunnerScript(self, options): |
| 41 tool_wrapper = self.tool.GetTestWrapper() | 41 tool_wrapper = self.tool.GetTestWrapper() |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 def StripAndCopyExecutable(self): | 81 def StripAndCopyExecutable(self): |
| 82 # Always uninstall the previous one (by activity name); we don't | 82 # Always uninstall the previous one (by activity name); we don't |
| 83 # know what was embedded in it. | 83 # know what was embedded in it. |
| 84 logging.info('Uninstalling any activity with the test name') | 84 logging.info('Uninstalling any activity with the test name') |
| 85 self.adb.Adb().SendCommand('uninstall org.chromium.native_test', | 85 self.adb.Adb().SendCommand('uninstall org.chromium.native_test', |
| 86 timeout_time=60*5) | 86 timeout_time=60*5) |
| 87 logging.info('Installing new apk') | 87 logging.info('Installing new apk') |
| 88 self.adb.Adb().SendCommand('install -r ' + self.test_suite_full, | 88 self.adb.Adb().SendCommand('install -r ' + self.test_suite_full, |
| 89 timeout_time=60*5) | 89 timeout_time=60*5) |
| 90 logging.info('Install has completed.') | 90 logging.info('Install has completed.') |
| OLD | NEW |