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

Side by Side Diff: pydir/crosstest_generator.py

Issue 1273153002: Subzero. Native 64-bit int arithmetic on x86-64. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes tests & make format Created 5 years, 4 months 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/targets.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 Builds and executes cross tests from the space of all possible attribute 49 Builds and executes cross tests from the space of all possible attribute
50 combinations. The space can be restricted by providing subsets of attributes 50 combinations. The space can be restricted by providing subsets of attributes
51 to specifically include or exclude. 51 to specifically include or exclude.
52 """ 52 """
53 # pypath is where to find other Subzero python scripts. 53 # pypath is where to find other Subzero python scripts.
54 pypath = os.path.abspath(os.path.dirname(sys.argv[0])) 54 pypath = os.path.abspath(os.path.dirname(sys.argv[0]))
55 root = FindBaseNaCl() 55 root = FindBaseNaCl()
56 56
57 # The rest of the attribute sets. 57 # The rest of the attribute sets.
58 targets = [ 'x8632', 'arm32' ] 58 targets = [ 'x8632', 'x8664', 'arm32' ]
59 sandboxing = [ 'native', 'sandbox' ] 59 sandboxing = [ 'native', 'sandbox' ]
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 'arm32': [ 'neon', 'hwdiv-arm' ] } 63 'arm32': [ 'neon', 'hwdiv-arm' ] }
63 flat_attrs = [] 64 flat_attrs = []
64 for v in arch_attrs.values(): 65 for v in arch_attrs.values():
65 flat_attrs += v 66 flat_attrs += v
66 arch_flags = { 'x8632': [], 67 arch_flags = { 'x8632': [],
68 'x8664': [],
67 # ARM doesn't have an integrated assembler yet. 69 # ARM doesn't have an integrated assembler yet.
68 'arm32': ['--filetype=asm'] } 70 'arm32': ['--filetype=asm'] }
69 # all_keys is only used in the help text. 71 # all_keys is only used in the help text.
70 all_keys = '; '.join([' '.join(targets), ' '.join(sandboxing), 72 all_keys = '; '.join([' '.join(targets), ' '.join(sandboxing),
71 ' '.join(opt_levels), ' '.join(flat_attrs)]) 73 ' '.join(opt_levels), ' '.join(flat_attrs)])
72 74
73 argparser = argparse.ArgumentParser( 75 argparser = argparse.ArgumentParser(
74 description=' ' + main.__doc__ + 76 description=' ' + main.__doc__ +
75 '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' +
76 all_keys, formatter_class=argparse.RawTextHelpFormatter) 78 all_keys, formatter_class=argparse.RawTextHelpFormatter)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 echo=args.verbose) 187 echo=args.verbose)
186 if (args.defer): 188 if (args.defer):
187 deferred_cmds.append(run_cmd) 189 deferred_cmds.append(run_cmd)
188 else: 190 else:
189 shellcmd(run_cmd, echo=True) 191 shellcmd(run_cmd, echo=True)
190 for run_cmd in deferred_cmds: 192 for run_cmd in deferred_cmds:
191 shellcmd(run_cmd, echo=True) 193 shellcmd(run_cmd, echo=True)
192 194
193 if __name__ == '__main__': 195 if __name__ == '__main__':
194 main() 196 main()
OLDNEW
« no previous file with comments | « pydir/crosstest.py ('k') | pydir/targets.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698