OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 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 import collections | 6 import collections |
7 import glob | 7 import glob |
8 import json | 8 import json |
9 import multiprocessing | 9 import multiprocessing |
10 import optparse | 10 import optparse |
(...skipping 23 matching lines...) Expand all Loading... |
34 # apk: apk to be installed. | 34 # apk: apk to be installed. |
35 # apk_package: package for the apk to be installed. | 35 # apk_package: package for the apk to be installed. |
36 # test_apk: apk to run tests on. | 36 # test_apk: apk to run tests on. |
37 # test_data: data folder in format destination:source. | 37 # test_data: data folder in format destination:source. |
38 I_TEST = collections.namedtuple('InstrumentationTest', [ | 38 I_TEST = collections.namedtuple('InstrumentationTest', [ |
39 'name', 'apk', 'apk_package', 'test_apk', 'test_data']) | 39 'name', 'apk', 'apk_package', 'test_apk', 'test_data']) |
40 | 40 |
41 INSTRUMENTATION_TESTS = dict((suite.name, suite) for suite in [ | 41 INSTRUMENTATION_TESTS = dict((suite.name, suite) for suite in [ |
42 I_TEST('ContentShell', | 42 I_TEST('ContentShell', |
43 'ContentShell.apk', | 43 'ContentShell.apk', |
44 'org.chromium.content_shell', | 44 'org.chromium.content_shell_apk', |
45 'ContentShellTest', | 45 'ContentShellTest', |
46 'content:content/test/data/android/device_files'), | 46 'content:content/test/data/android/device_files'), |
47 I_TEST('ChromiumTestShell', | 47 I_TEST('ChromiumTestShell', |
48 'ChromiumTestShell.apk', | 48 'ChromiumTestShell.apk', |
49 'org.chromium.chrome.testshell', | 49 'org.chromium.chrome.testshell', |
50 'ChromiumTestShellTest', | 50 'ChromiumTestShellTest', |
51 'chrome:chrome/test/data/android/device_files'), | 51 'chrome:chrome/test/data/android/device_files'), |
52 I_TEST('AndroidWebView', | 52 I_TEST('AndroidWebView', |
53 'AndroidWebView.apk', | 53 'AndroidWebView.apk', |
54 'org.chromium.android_webview', | 54 'org.chromium.android_webview', |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 'slave', 'android')) | 319 'slave', 'android')) |
320 if os.path.exists(build_internal_android): | 320 if os.path.exists(build_internal_android): |
321 android_paths.insert(0, build_internal_android) | 321 android_paths.insert(0, build_internal_android) |
322 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) | 322 os.environ['PATH'] = os.pathsep.join(android_paths + [os.environ['PATH']]) |
323 | 323 |
324 MainTestWrapper(options) | 324 MainTestWrapper(options) |
325 | 325 |
326 | 326 |
327 if __name__ == '__main__': | 327 if __name__ == '__main__': |
328 sys.exit(main(sys.argv)) | 328 sys.exit(main(sys.argv)) |
OLD | NEW |