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

Side by Side Diff: tests_lit/lit.cfg

Issue 1776843002: Allow subzero tests to pass without le32-nacl-objdump. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 # -*- Python -*- 1 # -*- Python -*-
2 # Taken from utils/lit/tests in the LLVM tree and hacked together to support 2 # Taken from utils/lit/tests in the LLVM tree and hacked together to support
3 # our tests. 3 # our tests.
4 # 4 #
5 # Note: This configuration has simple commands to run Subzero's translator. 5 # Note: This configuration has simple commands to run Subzero's translator.
6 # They have the form %X2i (i.e. %p2i, %l2i, and %lc2i) where X is defined 6 # They have the form %X2i (i.e. %p2i, %l2i, and %lc2i) where X is defined
7 # as follows: 7 # as follows:
8 # 8 #
9 # p : Run Subzero's translator, building ICE from PNaCl bitcode directly. 9 # p : Run Subzero's translator, building ICE from PNaCl bitcode directly.
10 # l : Run Subzero's translator, converting the .ll file to a PNaCl bitcode 10 # l : Run Subzero's translator, converting the .ll file to a PNaCl bitcode
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 config.substitutions.append(('%p2i', ' '.join(pnacl_sz_cmd))) 104 config.substitutions.append(('%p2i', ' '.join(pnacl_sz_cmd)))
105 config.substitutions.append(('%l2i', ' '.join(ifl2i_atts_cmd + pnacl_sz_cmd 105 config.substitutions.append(('%l2i', ' '.join(ifl2i_atts_cmd + pnacl_sz_cmd
106 + ['--llvm']))) 106 + ['--llvm'])))
107 config.substitutions.append(('%lc2i', ' '.join(iflc2i_atts_cmd + pnacl_sz_cmd 107 config.substitutions.append(('%lc2i', ' '.join(iflc2i_atts_cmd + pnacl_sz_cmd
108 + ['--llvm-source']))) 108 + ['--llvm-source'])))
109 109
110 config.substitutions.append(('%pnacl_sz', pnacl_sz_tool)) 110 config.substitutions.append(('%pnacl_sz', pnacl_sz_tool))
111 111
112 pnaclbintools = [r'\b' + x + r'\b' for x in 112 pnaclbintools = [r'\b' + x + r'\b' for x in
113 ['FileCheck', 113 ['FileCheck',
114 'le32-nacl-objdump', 114 'arm-nacl-objdump',
Jim Stichnoth 2016/03/09 14:38:04 This line can be removed entirely, after the elf_c
Sean Klein 2016/03/09 18:27:44 Done.
115 'llvm-as', 115 'llvm-as',
116 'llvm-mc', 116 'llvm-mc',
117 'llvm-readobj', 117 'llvm-readobj',
118 'not', 118 'not',
119 'pnacl-bcdis', 119 'pnacl-bcdis',
120 'pnacl-bcfuzz', 120 'pnacl-bcfuzz',
121 'pnacl-freeze']] 121 'pnacl-freeze']]
122 122
123 for tool in pnaclbintools: 123 for tool in pnaclbintools:
124 # The re.sub() line is adapted from one of LLVM's lit.cfg files. 124 # The re.sub() line is adapted from one of LLVM's lit.cfg files.
(...skipping 10 matching lines...) Expand all
135 config.available_features.add("python%d.%d" % (sys.version_info[0], 135 config.available_features.add("python%d.%d" % (sys.version_info[0],
136 sys.version_info[1])) 136 sys.version_info[1]))
137 137
138 # Debugging output 138 # Debugging output
139 def dbg(s): 139 def dbg(s):
140 print '[DBG] %s' % s 140 print '[DBG] %s' % s
141 141
142 dbg('bin_root = %s' % bin_root) 142 dbg('bin_root = %s' % bin_root)
143 dbg('pnaclbinpath = %s' % pnaclbinpath) 143 dbg('pnaclbinpath = %s' % pnaclbinpath)
144 dbg("Build attributes = %s" % pnacl_sz_atts) 144 dbg("Build attributes = %s" % pnacl_sz_atts)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698