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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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', | 69 _TEST_SUITES = ['base_unittests', |
70 'content_unittests', | 70 'content_unittests', |
| 71 'gpu_unittests', |
71 'ipc_tests', | 72 'ipc_tests', |
72 'net_unittests', | 73 'net_unittests', |
73 'sql_unittests', | 74 'sql_unittests', |
74 'sync_unit_tests', | 75 'sync_unit_tests', |
75 'ui_unittests', | 76 'ui_unittests', |
76 ] | 77 ] |
77 | 78 |
78 | 79 |
79 def FullyQualifiedTestSuites(): | 80 def FullyQualifiedTestSuites(): |
80 """Return a fully qualified list that represents all known suites.""" | 81 """Return a fully qualified list that represents all known suites.""" |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 if len(args) > 1: | 431 if len(args) > 1: |
431 print 'Unknown argument:', args[1:] | 432 print 'Unknown argument:', args[1:] |
432 option_parser.print_usage() | 433 option_parser.print_usage() |
433 sys.exit(1) | 434 sys.exit(1) |
434 run_tests_helper.SetLogLevel(options.verbose_count) | 435 run_tests_helper.SetLogLevel(options.verbose_count) |
435 return Dispatch(options) | 436 return Dispatch(options) |
436 | 437 |
437 | 438 |
438 if __name__ == '__main__': | 439 if __name__ == '__main__': |
439 sys.exit(main(sys.argv)) | 440 sys.exit(main(sys.argv)) |
OLD | NEW |