OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 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 """Script to generate chromium.perf.json and chromium.perf.fyi.json in | 6 """Script to generate chromium.perf.json and chromium.perf.fyi.json in |
7 the src/testing/buildbot directory. Maintaining these files by hand is | 7 the src/testing/buildbot directory. Maintaining these files by hand is |
8 too unwieldy. | 8 too unwieldy. |
9 """ | 9 """ |
10 | 10 |
11 import json | 11 import json |
12 import os | 12 import os |
13 import sys | 13 import sys |
14 | 14 |
15 from chrome_telemetry_build import chromium_config | 15 from chrome_telemetry_build import chromium_config |
16 | 16 |
17 sys.path.append(chromium_config.GetTelemetryDir()) | 17 sys.path.append(chromium_config.GetTelemetryDir()) |
18 from telemetry import benchmark as benchmark_module | 18 from telemetry import benchmark as benchmark_module |
19 from telemetry.core import discover | 19 from telemetry.core import discover |
20 from telemetry.util import bot_utils | 20 from telemetry.util import bot_utils |
21 | 21 |
22 | 22 |
23 SCRIPT_TESTS = [ | 23 SCRIPT_TESTS = [ |
24 { | 24 { |
25 'args': [ | 25 'args': [ |
26 'gpu_perftests' | 26 'gpu_perftests', |
| 27 '--adb-path', |
| 28 'src/third_party/catapult/devil/bin/deps/linux2/x86_64/bin/adb', |
27 ], | 29 ], |
28 'name': 'gpu_perftests', | 30 'name': 'gpu_perftests', |
29 'script': 'gtest_perf_test.py', | 31 'script': 'gtest_perf_test.py', |
30 'testers': { | 32 'testers': { |
31 'chromium.perf': [ | 33 'chromium.perf': [ |
32 { | 34 { |
33 'name': 'Android Galaxy S5 Perf', | 35 'name': 'Android Galaxy S5 Perf', |
34 'shards': [3] | 36 'shards': [3] |
35 }, | 37 }, |
36 { | 38 { |
(...skipping 12 matching lines...) Expand all Loading... |
49 'chromium.perf.fyi': [ | 51 'chromium.perf.fyi': [ |
50 { | 52 { |
51 'name': 'Android Galaxy S5 Perf', | 53 'name': 'Android Galaxy S5 Perf', |
52 'shards': [1] | 54 'shards': [1] |
53 }, | 55 }, |
54 ] | 56 ] |
55 } | 57 } |
56 }, | 58 }, |
57 { | 59 { |
58 'args': [ | 60 'args': [ |
59 'cc_perftests' | 61 'cc_perftests', |
| 62 '--adb-path', |
| 63 'src/third_party/catapult/devil/bin/deps/linux2/x86_64/bin/adb', |
60 ], | 64 ], |
61 'name': 'cc_perftests', | 65 'name': 'cc_perftests', |
62 'script': 'gtest_perf_test.py', | 66 'script': 'gtest_perf_test.py', |
63 'testers': { | 67 'testers': { |
64 'chromium.perf': [ | 68 'chromium.perf': [ |
65 { | 69 { |
66 'name': 'Android Galaxy S5 Perf', | 70 'name': 'Android Galaxy S5 Perf', |
67 'shards': [3] | 71 'shards': [3] |
68 }, | 72 }, |
69 { | 73 { |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 waterfall['name'] = 'chromium.perf' | 514 waterfall['name'] = 'chromium.perf' |
511 fyi_waterfall = get_fyi_waterfall_config() | 515 fyi_waterfall = get_fyi_waterfall_config() |
512 fyi_waterfall['name'] = 'chromium.perf.fyi' | 516 fyi_waterfall['name'] = 'chromium.perf.fyi' |
513 | 517 |
514 generate_all_tests(fyi_waterfall, True) | 518 generate_all_tests(fyi_waterfall, True) |
515 generate_all_tests(waterfall, False) | 519 generate_all_tests(waterfall, False) |
516 return 0 | 520 return 0 |
517 | 521 |
518 if __name__ == "__main__": | 522 if __name__ == "__main__": |
519 sys.exit(main()) | 523 sys.exit(main()) |
OLD | NEW |