Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: pydir/crosstest_generator.py

Issue 1499973002: Revert "Subzero. ARM32. Initial sandboxing code." (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pydir/crosstest.py ('k') | pydir/run-pnacl-sz.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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=asm'] } 70 'arm32': ['--filetype=iasm'] }
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
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()
OLDNEW
« no previous file with comments | « pydir/crosstest.py ('k') | pydir/run-pnacl-sz.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698