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 28 matching lines...) Expand all Loading... |
39 'kraken_orig', | 39 'kraken_orig', |
40 'kraken_orig-ignition', | 40 'kraken_orig-ignition', |
41 'massive', | 41 'massive', |
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', | |
50 'sunspider', | 49 'sunspider', |
51 'sunspider-ignition', | 50 'sunspider-ignition', |
52 'unity', | 51 'unity', |
53 'wasm', | 52 'wasm', |
54 ] | 53 ] |
55 | 54 |
56 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | 55 V8_BASE = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) |
57 | 56 |
58 def main(): | 57 def main(): |
59 parser = argparse.ArgumentParser(description='') | 58 parser = argparse.ArgumentParser(description='') |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 if options.revision: cmd += ['-r %s' % options.revision] | 98 if options.revision: cmd += ['-r %s' % options.revision] |
100 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] | 99 benchmarks = ['"%s"' % benchmark for benchmark in options.benchmarks] |
101 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] | 100 cmd += ['-p \'testfilter=[%s]\'' % ','.join(benchmarks)] |
102 if options.extra_flags: | 101 if options.extra_flags: |
103 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] | 102 cmd += ['-p \'extra_flags="%s"\'' % options.extra_flags] |
104 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) | 103 subprocess.check_call(' '.join(cmd), shell=True, cwd=V8_BASE) |
105 | 104 |
106 | 105 |
107 if __name__ == '__main__': # pragma: no cover | 106 if __name__ == '__main__': # pragma: no cover |
108 sys.exit(main()) | 107 sys.exit(main()) |
OLD | NEW |