| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 'cc_unittests', | 75 'cc_unittests', |
| 76 'content_unittests', | 76 'content_unittests', |
| 77 'gpu_unittests', | 77 'gpu_unittests', |
| 78 'ipc_tests', | 78 'ipc_tests', |
| 79 'media_unittests', | 79 'media_unittests', |
| 80 'net_unittests', | 80 'net_unittests', |
| 81 'sql_unittests', | 81 'sql_unittests', |
| 82 'sync_unit_tests', | 82 'sync_unit_tests', |
| 83 'ui_unittests', | 83 'ui_unittests', |
| 84 'unit_tests', | 84 'unit_tests', |
| 85 'webkit_compositor_bindings_unittests', |
| 85 ] | 86 ] |
| 86 | 87 |
| 87 | 88 |
| 88 def TestSuiteDir(build_type): | 89 def TestSuiteDir(build_type): |
| 89 """Return the base directory of test suites.""" | 90 """Return the base directory of test suites.""" |
| 90 return os.path.abspath(os.path.join(constants.CHROME_DIR, 'out', build_type)) | 91 return os.path.abspath(os.path.join(constants.CHROME_DIR, 'out', build_type)) |
| 91 | 92 |
| 92 def FullyQualifiedTestSuites(exe, option_test_suite, build_type): | 93 def FullyQualifiedTestSuites(exe, option_test_suite, build_type): |
| 93 """Return a fully qualified list | 94 """Return a fully qualified list |
| 94 | 95 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 # the batch (this happens because the exit status is a sum of all failures | 443 # the batch (this happens because the exit status is a sum of all failures |
| 443 # from all suites, but the buildbot associates the exit status only with the | 444 # from all suites, but the buildbot associates the exit status only with the |
| 444 # most recent step). | 445 # most recent step). |
| 445 if options.exit_code: | 446 if options.exit_code: |
| 446 return failed_tests_count | 447 return failed_tests_count |
| 447 return 0 | 448 return 0 |
| 448 | 449 |
| 449 | 450 |
| 450 if __name__ == '__main__': | 451 if __name__ == '__main__': |
| 451 sys.exit(main(sys.argv)) | 452 sys.exit(main(sys.argv)) |
| OLD | NEW |