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

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

Issue 10704187: Android: fix running executable unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Runs all the native unit tests. 7 """Runs all the native unit tests.
8 8
9 1. Copy over test binary to /data/local on device. 9 1. Copy over test binary to /data/local on device.
10 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) 10 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 """Return a fully qualified list that represents all known suites. 84 """Return a fully qualified list that represents all known suites.
85 85
86 Args: 86 Args:
87 exe: if True, use the executable-based test runner. 87 exe: if True, use the executable-based test runner.
88 test_suites: the source test suites to process. 88 test_suites: the source test suites to process.
89 """ 89 """
90 # Assume the test suites are in out/Release. 90 # Assume the test suites are in out/Release.
91 test_suite_dir = os.path.abspath(os.path.join(constants.CHROME_DIR, 91 test_suite_dir = os.path.abspath(os.path.join(constants.CHROME_DIR,
92 'out', 'Release')) 92 'out', 'Release'))
93 if exe: 93 if exe:
94 suites = [os.path.join(test_suite_dir, t) for t in _TEST_SUITES] 94 suites = [os.path.join(test_suite_dir, t) for t in test_suites]
95 else: 95 else:
96 # out/Release/$SUITE_apk/$SUITE-debug.apk 96 # out/Release/$SUITE_apk/$SUITE-debug.apk
97 suites = [os.path.join(test_suite_dir, 97 suites = [os.path.join(test_suite_dir,
98 t + '_apk', 98 t + '_apk',
99 t + '-debug.apk') 99 t + '-debug.apk')
100 for t in test_suites] 100 for t in test_suites]
101 return suites 101 return suites
102 102
103 103
104 class TimeProfile(object): 104 class TimeProfile(object):
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 # the batch (this happens because the exit status is a sum of all failures 485 # the batch (this happens because the exit status is a sum of all failures
486 # from all suites, but the buildbot associates the exit status only with the 486 # from all suites, but the buildbot associates the exit status only with the
487 # most recent step). 487 # most recent step).
488 if options.exit_code: 488 if options.exit_code:
489 return failed_tests_count 489 return failed_tests_count
490 return 0 490 return 0
491 491
492 492
493 if __name__ == '__main__': 493 if __name__ == '__main__':
494 sys.exit(main(sys.argv)) 494 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698