Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python2 | 1 #!/usr/bin/env python2 |
| 2 | 2 |
| 3 import argparse | 3 import argparse |
| 4 import ConfigParser | 4 import ConfigParser |
| 5 import os | 5 import os |
| 6 import shutil | 6 import shutil |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 from utils import shellcmd | 9 from utils import shellcmd |
| 10 from utils import FindBaseNaCl | 10 from utils import FindBaseNaCl |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 opt_levels = [ 'Om1', 'O2' ] | 60 opt_levels = [ 'Om1', 'O2' ] |
| 61 arch_attrs = { 'x8632': [ 'sse2', 'sse4.1' ], | 61 arch_attrs = { 'x8632': [ 'sse2', 'sse4.1' ], |
| 62 'x8664': [ 'sse2', 'sse4.1' ], | 62 'x8664': [ 'sse2', 'sse4.1' ], |
| 63 'arm32': [ 'neon', 'hwdiv-arm' ] } | 63 'arm32': [ 'neon', 'hwdiv-arm' ] } |
| 64 flat_attrs = [] | 64 flat_attrs = [] |
| 65 for v in arch_attrs.values(): | 65 for v in arch_attrs.values(): |
| 66 flat_attrs += v | 66 flat_attrs += v |
| 67 arch_flags = { 'x8632': [], | 67 arch_flags = { 'x8632': [], |
| 68 'x8664': [], | 68 'x8664': [], |
| 69 # ARM doesn't have an ELF writer yet. | 69 # ARM doesn't have an ELF writer yet. |
| 70 'arm32': ['--filetype=iasm'] } | 70 'arm32': ['--filetype=asm'] } |
|
John
2015/12/04 17:14:05
This is broken for --sandbox
| |
| 71 # all_keys is only used in the help text. | 71 # all_keys is only used in the help text. |
| 72 all_keys = '; '.join([' '.join(targets), ' '.join(sandboxing), | 72 all_keys = '; '.join([' '.join(targets), ' '.join(sandboxing), |
| 73 ' '.join(opt_levels), ' '.join(flat_attrs)]) | 73 ' '.join(opt_levels), ' '.join(flat_attrs)]) |
| 74 | 74 |
| 75 argparser = argparse.ArgumentParser( | 75 argparser = argparse.ArgumentParser( |
| 76 description=' ' + main.__doc__ + | 76 description=' ' + main.__doc__ + |
| 77 'The set of attributes is the set of tests plus the following:\n' + | 77 'The set of attributes is the set of tests plus the following:\n' + |
| 78 all_keys, formatter_class=argparse.RawTextHelpFormatter) | 78 all_keys, formatter_class=argparse.RawTextHelpFormatter) |
| 79 argparser.add_argument('--config', default='crosstest.cfg', dest='config', | 79 argparser.add_argument('--config', default='crosstest.cfg', dest='config', |
| 80 metavar='FILE', help='Test configuration file') | 80 metavar='FILE', help='Test configuration file') |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 echo=args.verbose) | 187 echo=args.verbose) |
| 188 if (args.defer): | 188 if (args.defer): |
| 189 deferred_cmds.append(run_cmd) | 189 deferred_cmds.append(run_cmd) |
| 190 else: | 190 else: |
| 191 shellcmd(run_cmd, echo=True) | 191 shellcmd(run_cmd, echo=True) |
| 192 for run_cmd in deferred_cmds: | 192 for run_cmd in deferred_cmds: |
| 193 shellcmd(run_cmd, echo=True) | 193 shellcmd(run_cmd, echo=True) |
| 194 | 194 |
| 195 if __name__ == '__main__': | 195 if __name__ == '__main__': |
| 196 main() | 196 main() |
| OLD | NEW |