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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 import emulator | 68 import emulator |
69 from pylib import ports | 69 from pylib import ports |
70 from pylib import run_tests_helper | 70 from pylib import run_tests_helper |
71 from pylib import test_options_parser | 71 from pylib import test_options_parser |
72 from pylib.single_test_runner import SingleTestRunner | 72 from pylib.single_test_runner import SingleTestRunner |
73 from pylib.test_result import BaseTestResult, TestResults | 73 from pylib.test_result import BaseTestResult, TestResults |
74 | 74 |
75 | 75 |
76 _TEST_SUITES = ['base_unittests', | 76 _TEST_SUITES = ['base_unittests', |
77 'cc_unittests', | 77 'cc_unittests', |
| 78 'cc_perftests', |
78 'content_unittests', | 79 'content_unittests', |
79 'gpu_unittests', | 80 'gpu_unittests', |
80 'ipc_tests', | 81 'ipc_tests', |
81 'media_unittests', | 82 'media_unittests', |
82 'net_unittests', | 83 'net_unittests', |
83 'sql_unittests', | 84 'sql_unittests', |
84 'sync_unit_tests', | 85 'sync_unit_tests', |
85 'ui_unittests', | 86 'ui_unittests', |
86 'unit_tests', | 87 'unit_tests', |
87 'webkit_compositor_bindings_unittests', | 88 'webkit_compositor_bindings_unittests', |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 # the batch (this happens because the exit status is a sum of all failures | 466 # the batch (this happens because the exit status is a sum of all failures |
466 # from all suites, but the buildbot associates the exit status only with the | 467 # from all suites, but the buildbot associates the exit status only with the |
467 # most recent step). | 468 # most recent step). |
468 if options.exit_code: | 469 if options.exit_code: |
469 return failed_tests_count | 470 return failed_tests_count |
470 return 0 | 471 return 0 |
471 | 472 |
472 | 473 |
473 if __name__ == '__main__': | 474 if __name__ == '__main__': |
474 sys.exit(main(sys.argv)) | 475 sys.exit(main(sys.argv)) |
OLD | NEW |