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

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: Responses to code review 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
« no previous file with comments | « pydir/run-pnacl-sz.py ('k') | tests_lit/llvm2ice_tests/elf_container.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
115 'llvm-as', 114 'llvm-as',
116 'llvm-mc', 115 'llvm-mc',
117 'llvm-readobj', 116 'llvm-readobj',
118 'not', 117 'not',
119 'pnacl-bcdis', 118 'pnacl-bcdis',
120 'pnacl-bcfuzz', 119 'pnacl-bcfuzz',
121 'pnacl-freeze']] 120 'pnacl-freeze']]
122 121
123 for tool in pnaclbintools: 122 for tool in pnaclbintools:
124 # The re.sub() line is adapted from one of LLVM's lit.cfg files. 123 # 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], 134 config.available_features.add("python%d.%d" % (sys.version_info[0],
136 sys.version_info[1])) 135 sys.version_info[1]))
137 136
138 # Debugging output 137 # Debugging output
139 def dbg(s): 138 def dbg(s):
140 print '[DBG] %s' % s 139 print '[DBG] %s' % s
141 140
142 dbg('bin_root = %s' % bin_root) 141 dbg('bin_root = %s' % bin_root)
143 dbg('pnaclbinpath = %s' % pnaclbinpath) 142 dbg('pnaclbinpath = %s' % pnaclbinpath)
144 dbg("Build attributes = %s" % pnacl_sz_atts) 143 dbg("Build attributes = %s" % pnacl_sz_atts)
OLDNEW
« no previous file with comments | « pydir/run-pnacl-sz.py ('k') | tests_lit/llvm2ice_tests/elf_container.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698