OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project 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 argparse | 6 import argparse |
7 import os | 7 import os |
8 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 'memory', | 42 'memory', |
43 'octane', | 43 'octane', |
44 'octane-noopt', | 44 'octane-noopt', |
45 'octane-ignition', | 45 'octane-ignition', |
46 'octane-pr', | 46 'octane-pr', |
47 'octane-tf', | 47 'octane-tf', |
48 'octane-tf-pr', | 48 'octane-tf-pr', |
49 'simdjs', | 49 'simdjs', |
50 'sunspider', | 50 'sunspider', |
51 'sunspider-ignition', | 51 'sunspider-ignition', |
| 52 'unity', |
52 'wasm', | 53 'wasm', |
53 ] | 54 ] |
54 | 55 |
55 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | 56 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) |
56 | 57 |
57 def main(): | 58 def main(): |
58 parser = argparse.ArgumentParser(description='') | 59 parser = argparse.ArgumentParser(description='') |
59 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.') | 60 parser.add_argument('benchmarks', nargs='+', help='The benchmarks to run.') |
60 parser.add_argument('--extra-flags', default='', | 61 parser.add_argument('--extra-flags', default='', |
61 help='Extra flags to be passed to the executable.') | 62 help='Extra flags to be passed to the executable.') |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 if options.revision: cmd += ['-r %s' % options.revision] | 99 if options.revision: cmd += ['-r %s' % options.revision] |
99 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] | 100 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] |
100 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] | 101 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] |
101 if options.extra_flags: | 102 if options.extra_flags: |
102 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] | 103 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] |
103 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) | 104 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) |
104 | 105 |
105 | 106 |
106 if __name__ == '__main__': # pragma: no cover | 107 if __name__ == '__main__': # pragma: no cover |
107 sys.exit(main()) | 108 sys.exit(main()) |
OLD | NEW |