OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 from pylib import debug_info | 65 from pylib import debug_info |
66 import emulator | 66 import emulator |
67 from pylib import ports | 67 from pylib import ports |
68 from pylib import run_tests_helper | 68 from pylib import run_tests_helper |
69 from pylib import test_options_parser | 69 from pylib import test_options_parser |
70 from pylib.single_test_runner import SingleTestRunner | 70 from pylib.single_test_runner import SingleTestRunner |
71 from pylib.test_result import BaseTestResult, TestResults | 71 from pylib.test_result import BaseTestResult, TestResults |
72 | 72 |
73 | 73 |
74 _TEST_SUITES = ['base_unittests', | 74 _TEST_SUITES = ['base_unittests', |
| 75 'cc_unittests', |
75 'content_unittests', | 76 'content_unittests', |
76 'gpu_unittests', | 77 'gpu_unittests', |
77 'ipc_tests', | 78 'ipc_tests', |
78 'media_unittests', | 79 'media_unittests', |
79 'net_unittests', | 80 'net_unittests', |
80 'sql_unittests', | 81 'sql_unittests', |
81 'sync_unit_tests', | 82 'sync_unit_tests', |
82 'ui_unittests', | 83 'ui_unittests', |
83 'unit_tests', | 84 'unit_tests', |
84 ] | 85 ] |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 # the batch (this happens because the exit status is a sum of all failures | 442 # the batch (this happens because the exit status is a sum of all failures |
442 # from all suites, but the buildbot associates the exit status only with the | 443 # from all suites, but the buildbot associates the exit status only with the |
443 # most recent step). | 444 # most recent step). |
444 if options.exit_code: | 445 if options.exit_code: |
445 return failed_tests_count | 446 return failed_tests_count |
446 return 0 | 447 return 0 |
447 | 448 |
448 | 449 |
449 if __name__ == '__main__': | 450 if __name__ == '__main__': |
450 sys.exit(main(sys.argv)) | 451 sys.exit(main(sys.argv)) |
OLD | NEW |