OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 DEPS = [ | 5 DEPS = [ |
6 'bot_update', | 6 'bot_update', |
7 'json', | 7 'json', |
8 'path', | 8 'path', |
9 'perf_dashboard', | 9 'perf_dashboard', |
10 'properties', | 10 'properties', |
(...skipping 11 matching lines...) Expand all Loading... |
22 api.v8.revision_number = '12345' | 22 api.v8.revision_number = '12345' |
23 api.v8.revision = 'deadbeef' | 23 api.v8.revision = 'deadbeef' |
24 perf_config = { | 24 perf_config = { |
25 'example1': { | 25 'example1': { |
26 'name': 'Example1', | 26 'name': 'Example1', |
27 'json': 'example1.json', | 27 'json': 'example1.json', |
28 }, | 28 }, |
29 'example2': { | 29 'example2': { |
30 'name': 'Example2', | 30 'name': 'Example2', |
31 'json': 'example2.json', | 31 'json': 'example2.json', |
| 32 'download_test': 'foo', |
32 } | 33 } |
33 } | 34 } |
34 api.v8.runperf(api.v8.perf_tests, perf_config, category='ia32', | 35 api.v8.runperf(api.v8.perf_tests, perf_config, category='ia32', |
35 extra_flags=['--flag1', '--flag2']) | 36 extra_flags=['--flag1', '--flag2']) |
36 output1 = api.path['slave_build'].join('test_output1.json') | 37 output1 = api.path['slave_build'].join('test_output1.json') |
37 output2 = api.path['slave_build'].join('test_output2.json') | 38 output2 = api.path['slave_build'].join('test_output2.json') |
38 results = api.v8.merge_perf_results(output1, output2) | 39 results = api.v8.merge_perf_results(output1, output2) |
39 api.step('do something with the results', ['echo', results['res']]) | 40 api.step('do something with the results', ['echo', results['res']]) |
40 | 41 |
41 | 42 |
42 def GenTests(api): | 43 def GenTests(api): |
43 yield ( | 44 yield ( |
44 api.test('perf_failures') + | 45 api.test('perf_failures') + |
45 api.v8(perf_failures=True) + | 46 api.v8(perf_failures=True) + |
46 api.step_data('Example1', retcode=1) + | 47 api.step_data('Example1', retcode=1) + |
47 api.properties.generic(mastername='Fake_Master', | 48 api.properties.generic(mastername='Fake_Master', |
48 buildername='Fake Builder', | 49 buildername='Fake Builder', |
49 revision='20123') | 50 revision='20123') |
50 ) | 51 ) |
51 yield ( | 52 yield ( |
52 api.test('forced_build') + | 53 api.test('forced_build') + |
53 api.properties.generic(mastername='Fake_Master', | 54 api.properties.generic(mastername='Fake_Master', |
54 buildername='Fake Builder') + | 55 buildername='Fake Builder') + |
55 api.step_data( | 56 api.step_data( |
56 'merge perf results', | 57 'merge perf results', |
57 stdout=api.json.output({'res': 'the result'})) | 58 stdout=api.json.output({'res': 'the result'})) |
58 ) | 59 ) |
OLD | NEW |