| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 from pylib import run_tests_helper | 66 from pylib import run_tests_helper |
| 67 from pylib import test_options_parser | 67 from pylib import test_options_parser |
| 68 from pylib.single_test_runner import SingleTestRunner | 68 from pylib.single_test_runner import SingleTestRunner |
| 69 from pylib.test_result import BaseTestResult, TestResults | 69 from pylib.test_result import BaseTestResult, TestResults |
| 70 | 70 |
| 71 | 71 |
| 72 _TEST_SUITES = ['base_unittests', | 72 _TEST_SUITES = ['base_unittests', |
| 73 'content_unittests', | 73 'content_unittests', |
| 74 'gpu_unittests', | 74 'gpu_unittests', |
| 75 'ipc_tests', | 75 'ipc_tests', |
| 76 'media_unittests', |
| 76 'net_unittests', | 77 'net_unittests', |
| 77 'sql_unittests', | 78 'sql_unittests', |
| 78 'sync_unit_tests', | 79 'sync_unit_tests', |
| 79 'ui_unittests', | 80 'ui_unittests', |
| 80 ] | 81 ] |
| 81 | 82 |
| 82 | 83 |
| 83 def FullyQualifiedTestSuites(exe, option_test_suite): | 84 def FullyQualifiedTestSuites(exe, option_test_suite): |
| 84 """Return a fully qualified list | 85 """Return a fully qualified list |
| 85 | 86 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 # the batch (this happens because the exit status is a sum of all failures | 436 # the batch (this happens because the exit status is a sum of all failures |
| 436 # from all suites, but the buildbot associates the exit status only with the | 437 # from all suites, but the buildbot associates the exit status only with the |
| 437 # most recent step). | 438 # most recent step). |
| 438 if options.exit_code: | 439 if options.exit_code: |
| 439 return failed_tests_count | 440 return failed_tests_count |
| 440 return 0 | 441 return 0 |
| 441 | 442 |
| 442 | 443 |
| 443 if __name__ == '__main__': | 444 if __name__ == '__main__': |
| 444 sys.exit(main(sys.argv)) | 445 sys.exit(main(sys.argv)) |
| OLD | NEW |