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 os | 6 import os |
7 import sys | 7 import sys |
8 | 8 |
9 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry')) | 9 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry')) |
10 | 10 |
11 from telemetry import test_runner | 11 from telemetry import test_runner |
12 from telemetry.core import environment | |
13 | 12 |
14 | 13 |
15 if __name__ == '__main__': | 14 if __name__ == '__main__': |
16 base_dir = os.path.dirname(os.path.realpath(__file__)) | 15 top_level_dir = os.path.dirname(os.path.realpath(__file__)) |
17 test_aliases = { | 16 test_aliases = { |
18 'blink_perf': 'blink_perf.all', | 17 'blink_perf': 'blink_perf.all', |
19 'image_decoding.tough_decoding_cases': | 18 'image_decoding.tough_decoding_cases': |
20 'image_decoding.image_decoding_measurement', | 19 'image_decoding.image_decoding_measurement', |
21 'media.tough_media_cases': 'media.tough_video_cases', | 20 'media.tough_media_cases': 'media.tough_video_cases', |
22 'page_cycler.pica': 'pica.pica', | 21 'page_cycler.pica': 'pica.pica', |
23 } | 22 } |
24 test_runner.config = environment.Environment([base_dir], test_aliases) | 23 |
25 sys.exit(test_runner.main()) | 24 environment = test_runner.Environment( |
| 25 top_level_dir=top_level_dir, |
| 26 test_dirs=[os.path.join(top_level_dir, 'benchmarks')], |
| 27 page_test_dirs=[os.path.join(top_level_dir, 'measurements')], |
| 28 page_set_dirs=[os.path.join(top_level_dir, 'page_sets')], |
| 29 test_aliases=test_aliases |
| 30 ) |
| 31 sys.exit(test_runner.main(environment)) |
OLD | NEW |