| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 from pylib.utils import xvfb | 59 from pylib.utils import xvfb |
| 60 | 60 |
| 61 | 61 |
| 62 _TEST_SUITES = ['base_unittests', | 62 _TEST_SUITES = ['base_unittests', |
| 63 'cc_unittests', | 63 'cc_unittests', |
| 64 'content_unittests', | 64 'content_unittests', |
| 65 'gpu_unittests', | 65 'gpu_unittests', |
| 66 'ipc_tests', | 66 'ipc_tests', |
| 67 'media_unittests', | 67 'media_unittests', |
| 68 'net_unittests', | 68 'net_unittests', |
| 69 'sandbox_linux_unittests', | |
| 70 'sql_unittests', | 69 'sql_unittests', |
| 71 'sync_unit_tests', | 70 'sync_unit_tests', |
| 72 'ui_unittests', | 71 'ui_unittests', |
| 73 'unit_tests', | 72 'unit_tests', |
| 74 'webkit_compositor_bindings_unittests', | 73 'webkit_compositor_bindings_unittests', |
| 75 'android_webview_unittests', | 74 'android_webview_unittests', |
| 76 ] | 75 ] |
| 77 | 76 |
| 78 | 77 |
| 79 def FullyQualifiedTestSuites(exe, option_test_suite, build_type): | 78 def FullyQualifiedTestSuites(exe, option_test_suite, build_type): |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 # the batch (this happens because the exit status is a sum of all failures | 367 # the batch (this happens because the exit status is a sum of all failures |
| 369 # from all suites, but the buildbot associates the exit status only with the | 368 # from all suites, but the buildbot associates the exit status only with the |
| 370 # most recent step). | 369 # most recent step). |
| 371 if options.exit_code: | 370 if options.exit_code: |
| 372 return failed_tests_count | 371 return failed_tests_count |
| 373 return 0 | 372 return 0 |
| 374 | 373 |
| 375 | 374 |
| 376 if __name__ == '__main__': | 375 if __name__ == '__main__': |
| 377 sys.exit(main(sys.argv)) | 376 sys.exit(main(sys.argv)) |
| OLD | NEW |