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

Side by Side Diff: build/android/test_package.py

Issue 9834037: apk-based test runner work. Not enabled yet. This CL is a combination of upstreaming, ndk/ant-ifi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more line tweak Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 logging 6 import logging
7 import re 7 import re
8 import os 8 import os
9 import pexpect 9 import pexpect
10 10
(...skipping 17 matching lines...) Expand all
28 performance_test: Whether or not performance test(s). 28 performance_test: Whether or not performance test(s).
29 cleanup_test_files: Whether or not to cleanup test files on device. 29 cleanup_test_files: Whether or not to cleanup test files on device.
30 tool: Name of the Valgrind tool. 30 tool: Name of the Valgrind tool.
31 dump_debug_info: A debug_info object. 31 dump_debug_info: A debug_info object.
32 """ 32 """
33 33
34 def __init__(self, adb, device, test_suite, timeout, rebaseline, 34 def __init__(self, adb, device, test_suite, timeout, rebaseline,
35 performance_test, cleanup_test_files, tool, dump_debug_info): 35 performance_test, cleanup_test_files, tool, dump_debug_info):
36 self.adb = adb 36 self.adb = adb
37 self.device = device 37 self.device = device
38 self.test_suite_full = test_suite
38 self.test_suite = os.path.splitext(test_suite)[0] 39 self.test_suite = os.path.splitext(test_suite)[0]
39 self.test_suite_basename = os.path.basename(self.test_suite) 40 self.test_suite_basename = os.path.basename(self.test_suite)
40 self.test_suite_dirname = os.path.dirname(self.test_suite) 41 self.test_suite_dirname = os.path.dirname(self.test_suite)
41 self.rebaseline = rebaseline 42 self.rebaseline = rebaseline
42 self.performance_test = performance_test 43 self.performance_test = performance_test
43 self.cleanup_test_files = cleanup_test_files 44 self.cleanup_test_files = cleanup_test_files
44 self.tool = CreateTool(tool, self.adb) 45 self.tool = CreateTool(tool, self.adb)
45 if timeout == 0: 46 if timeout == 0:
46 if self.test_suite_basename == 'page_cycler_tests': 47 if self.test_suite_basename == 'page_cycler_tests':
47 timeout = 900 48 timeout = 900
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 if not self.rebaseline and ready_to_continue: 160 if not self.rebaseline and ready_to_continue:
160 ok_tests += self._EndGetIOStats(io_stats_before) 161 ok_tests += self._EndGetIOStats(io_stats_before)
161 ret_code = self._GetGTestReturnCode() 162 ret_code = self._GetGTestReturnCode()
162 if ret_code: 163 if ret_code:
163 failed_tests += [BaseTestResult('gtest exit code: %d' % ret_code, 164 failed_tests += [BaseTestResult('gtest exit code: %d' % ret_code,
164 'pexpect.before: %s' 165 'pexpect.before: %s'
165 '\npexpect.after: %s' 166 '\npexpect.after: %s'
166 % (p.before, 167 % (p.before,
167 p.after))] 168 p.after))]
168 return TestResults.FromOkAndFailed(ok_tests, failed_tests, timed_out) 169 return TestResults.FromOkAndFailed(ok_tests, failed_tests, timed_out)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698