OLD | NEW |
1 #!/usr/bin/env python2 | 1 #!/usr/bin/env python2 |
2 | 2 |
3 import argparse | 3 import argparse |
4 import os | 4 import os |
5 import sys | 5 import sys |
6 | 6 |
7 import szbuild | 7 import szbuild |
8 | 8 |
9 from utils import FindBaseNaCl, shellcmd | 9 from utils import FindBaseNaCl, shellcmd |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 '{name}.opt.stripped.pexe' | 56 '{name}.opt.stripped.pexe' |
57 ).format(root=nacl_root, comp=comp, name=name), | 57 ).format(root=nacl_root, comp=comp, name=name), |
58 ('{root}/tests/spec2k/{comp}/' + | 58 ('{root}/tests/spec2k/{comp}/' + |
59 '{name}.{suffix}' | 59 '{name}.{suffix}' |
60 ).format(root=nacl_root, comp=comp, name=name, | 60 ).format(root=nacl_root, comp=comp, name=name, |
61 suffix=suffix)) | 61 suffix=suffix)) |
62 if args.run: | 62 if args.run: |
63 os.chdir('{root}/tests/spec2k'.format(root=FindBaseNaCl())) | 63 os.chdir('{root}/tests/spec2k'.format(root=FindBaseNaCl())) |
64 setup = 'SetupGcc' + { | 64 setup = 'SetupGcc' + { |
65 'arm32': 'Arm', | 65 'arm32': 'Arm', |
66 'x8632': 'X8632'}[args.target] + 'Opt' | 66 'x8632': 'X8632', |
| 67 'x8664': 'X8664'}[args.target] + 'Opt' |
67 shellcmd(['./run_all.sh', | 68 shellcmd(['./run_all.sh', |
68 'RunTimedBenchmarks', | 69 'RunTimedBenchmarks', |
69 setup, | 70 setup, |
70 'train'] + args.comps) | 71 'train'] + args.comps) |
71 | 72 |
72 if __name__ == '__main__': | 73 if __name__ == '__main__': |
73 main() | 74 main() |
OLD | NEW |