OLD | NEW |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 import android_commands | 59 import android_commands |
60 from base_test_sharder import BaseTestSharder | 60 from base_test_sharder import BaseTestSharder |
61 import cmd_helper | 61 import cmd_helper |
62 import debug_info | 62 import debug_info |
63 import emulator | 63 import emulator |
64 import run_tests_helper | 64 import run_tests_helper |
65 from single_test_runner import SingleTestRunner | 65 from single_test_runner import SingleTestRunner |
66 from test_package_executable import TestPackageExecutable | 66 from test_package_executable import TestPackageExecutable |
67 from test_result import BaseTestResult, TestResults | 67 from test_result import BaseTestResult, TestResults |
68 | 68 |
69 _TEST_SUITES = ['base_unittests', 'sql_unittests', 'ipc_tests', 'net_unittests', | 69 _TEST_SUITES = ['base_unittests', |
70 'sync_unit_tests', 'content_unittests'] | 70 'content_unittests', |
| 71 'ipc_tests', |
| 72 'net_unittests', |
| 73 'sql_unittests', |
| 74 'sync_unit_tests', |
| 75 'ui_unittests', |
| 76 ] |
71 | 77 |
72 | 78 |
73 def FullyQualifiedTestSuites(): | 79 def FullyQualifiedTestSuites(): |
74 """Return a fully qualified list that represents all known suites.""" | 80 """Return a fully qualified list that represents all known suites.""" |
75 # If not specified, assume the test suites are in out/Release | 81 # If not specified, assume the test suites are in out/Release |
76 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR, | 82 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR, |
77 'out', 'Release')) | 83 'out', 'Release')) |
78 return [os.path.join(test_suite_dir, t) for t in _TEST_SUITES] | 84 return [os.path.join(test_suite_dir, t) for t in _TEST_SUITES] |
79 | 85 |
80 | 86 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 if len(args) > 1: | 428 if len(args) > 1: |
423 print 'Unknown argument:', args[1:] | 429 print 'Unknown argument:', args[1:] |
424 option_parser.print_usage() | 430 option_parser.print_usage() |
425 sys.exit(1) | 431 sys.exit(1) |
426 run_tests_helper.SetLogLevel(options.verbose_count) | 432 run_tests_helper.SetLogLevel(options.verbose_count) |
427 return Dispatch(options) | 433 return Dispatch(options) |
428 | 434 |
429 | 435 |
430 if __name__ == '__main__': | 436 if __name__ == '__main__': |
431 sys.exit(main(sys.argv)) | 437 sys.exit(main(sys.argv)) |
OLD | NEW |