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

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

Issue 10332230: Run base_unittests_apk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nit Created 8 years, 7 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 | « build/android/gtest_filter/base_unittests_disabled ('k') | build/common.gypi » ('j') | 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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Runs all the native unit tests. 6 """Runs all the native unit tests.
7 7
8 1. Copy over test binary to /data/local on device. 8 1. Copy over test binary to /data/local on device.
9 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) 9 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak)
10 to be deployed to the device (in /data/local/tmp). 10 to be deployed to the device (in /data/local/tmp).
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 _TEST_SUITES = ['base_unittests', 69 _TEST_SUITES = ['base_unittests',
70 'content_unittests', 70 'content_unittests',
71 'gpu_unittests', 71 'gpu_unittests',
72 'ipc_tests', 72 'ipc_tests',
73 'net_unittests', 73 'net_unittests',
74 'sql_unittests', 74 'sql_unittests',
75 'sync_unit_tests', 75 'sync_unit_tests',
76 'ui_unittests', 76 'ui_unittests',
77 ] 77 ]
78 78
79 # Test suites which are build as an APK. This will be replaced by the default 79 # Test suites which are run as APK. This will be replaced by the default
80 # list when we start building all suites as APK. 80 # list when we start building all suites as APK.
81 _APK_TEST_SUITES = ['replaceme', # Test the template apk too. 81 _APK_TEST_SUITES = ['base_unittests',
82 'base_unittests',
83 'ipc_tests',
84 'ui_unittests',
85 ] 82 ]
86 83
87 def FullyQualifiedTestSuites(apk): 84 def FullyQualifiedTestSuites(apk):
88 """Return a fully qualified list that represents all known suites. 85 """Return a fully qualified list that represents all known suites.
89 86
90 Args: 87 Args:
91 apk: if True, use the apk-based test runner""" 88 apk: if True, use the apk-based test runner"""
92 # If not specified, assume the test suites are in out/Release 89 # If not specified, assume the test suites are in out/Release
93 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR, 90 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR,
94 'out', 'Release')) 91 'out', 'Release'))
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 # from all suites, but the buildbot associates the exit status only with the 463 # from all suites, but the buildbot associates the exit status only with the
467 # most recent step). 464 # most recent step).
468 if options.annotate: 465 if options.annotate:
469 return 0 466 return 0
470 else: 467 else:
471 return failed_tests_count 468 return failed_tests_count
472 469
473 470
474 if __name__ == '__main__': 471 if __name__ == '__main__':
475 sys.exit(main(sys.argv)) 472 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/gtest_filter/base_unittests_disabled ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698