Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Runs all the native unit tests. | 6 """Runs all the native unit tests. |
| 7 | 7 |
| 8 1. Copy over test binary to /data/local on device. | 8 1. Copy over test binary to /data/local on device. |
| 9 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) | 9 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) |
| 10 to be deployed to the device (in /data/local/tmp). | 10 to be deployed to the device (in /data/local/tmp). |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 import android_commands | 59 import android_commands |
| 60 from base_test_sharder import BaseTestSharder | 60 from base_test_sharder import BaseTestSharder |
| 61 import cmd_helper | 61 import cmd_helper |
| 62 import debug_info | 62 import debug_info |
| 63 import emulator | 63 import emulator |
| 64 import run_tests_helper | 64 import run_tests_helper |
| 65 from single_test_runner import SingleTestRunner | 65 from single_test_runner import SingleTestRunner |
| 66 from test_package_executable import TestPackageExecutable | 66 from test_package_executable import TestPackageExecutable |
| 67 from test_result import BaseTestResult, TestResults | 67 from test_result import BaseTestResult, TestResults |
| 68 | 68 |
| 69 _TEST_SUITES = ['base_unittests', | 69 _TEST_SUITES = ['base_unittests', |
|
Yaron
2012/05/26 00:40:10
So could you start removing base and net from here
nilesh
2012/05/26 00:49:09
Remove it from here will also affect bots which on
| |
| 70 'content_unittests', | 70 'content_unittests', |
| 71 'gpu_unittests', | 71 'gpu_unittests', |
| 72 'ipc_tests', | 72 'ipc_tests', |
| 73 'net_unittests', | 73 'net_unittests', |
| 74 'sql_unittests', | 74 'sql_unittests', |
| 75 'sync_unit_tests', | 75 'sync_unit_tests', |
| 76 'ui_unittests', | 76 'ui_unittests', |
| 77 ] | 77 ] |
| 78 | 78 |
| 79 # Test suites which are run as APK. This will be replaced by the default | 79 # Test suites which are run as APK. This will be replaced by the default |
| 80 # list when we start building all suites as APK. | 80 # list when we start building all suites as APK. |
| 81 _APK_TEST_SUITES = ['base_unittests', | 81 _APK_TEST_SUITES = ['base_unittests', |
| 82 'net_unittests', | |
| 82 ] | 83 ] |
| 83 | 84 |
| 84 def FullyQualifiedTestSuites(apk): | 85 def FullyQualifiedTestSuites(apk): |
| 85 """Return a fully qualified list that represents all known suites. | 86 """Return a fully qualified list that represents all known suites. |
| 86 | 87 |
| 87 Args: | 88 Args: |
| 88 apk: if True, use the apk-based test runner""" | 89 apk: if True, use the apk-based test runner""" |
| 89 # If not specified, assume the test suites are in out/Release | 90 # If not specified, assume the test suites are in out/Release |
| 90 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR, | 91 test_suite_dir = os.path.abspath(os.path.join(run_tests_helper.CHROME_DIR, |
| 91 'out', 'Release')) | 92 'out', 'Release')) |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 463 # from all suites, but the buildbot associates the exit status only with the | 464 # from all suites, but the buildbot associates the exit status only with the |
| 464 # most recent step). | 465 # most recent step). |
| 465 if options.annotate: | 466 if options.annotate: |
| 466 return 0 | 467 return 0 |
| 467 else: | 468 else: |
| 468 return failed_tests_count | 469 return failed_tests_count |
| 469 | 470 |
| 470 | 471 |
| 471 if __name__ == '__main__': | 472 if __name__ == '__main__': |
| 472 sys.exit(main(sys.argv)) | 473 sys.exit(main(sys.argv)) |
| OLD | NEW |