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', 'sql_unittests', 'ipc_tests', 'net_unittests', |
| 70 'sync_unit_tests'] |
70 | 71 |
71 | 72 |
72 def FullyQualifiedTestSuites(): | 73 def FullyQualifiedTestSuites(): |
73 """Return a fully qualified list that represents all known suites.""" | 74 """Return a fully qualified list that represents all known suites.""" |
74 # If not specified, assume the test suites are in out/Release | 75 # If not specified, assume the test suites are in out/Release |
75 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR, | 76 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR, |
76 'out', 'Release')) | 77 'out', 'Release')) |
77 return [os.path.join(test_suite_dir, t) for t in _TEST_SUITES] | 78 return [os.path.join(test_suite_dir, t) for t in _TEST_SUITES] |
78 | 79 |
79 | 80 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 if len(args) > 1: | 422 if len(args) > 1: |
422 print 'Unknown argument:', args[1:] | 423 print 'Unknown argument:', args[1:] |
423 option_parser.print_usage() | 424 option_parser.print_usage() |
424 sys.exit(1) | 425 sys.exit(1) |
425 run_tests_helper.SetLogLevel(options.verbose_count) | 426 run_tests_helper.SetLogLevel(options.verbose_count) |
426 return Dispatch(options) | 427 return Dispatch(options) |
427 | 428 |
428 | 429 |
429 if __name__ == '__main__': | 430 if __name__ == '__main__': |
430 sys.exit(main(sys.argv)) | 431 sys.exit(main(sys.argv)) |
OLD | NEW |