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

Side by Side Diff: tests_lit/lit.cfg

Issue 687403002: Subzero: Fix broken lit tests. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | 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 22 matching lines...) Expand all
33 # a short hand for using pydir/ifatts.py). 33 # a short hand for using pydir/ifatts.py).
34 34
35 import os 35 import os
36 import re 36 import re
37 import sys 37 import sys
38 38
39 import lit.formats 39 import lit.formats
40 40
41 sys.path.insert(0, 'pydir') 41 sys.path.insert(0, 'pydir')
42 from utils import FindBaseNaCl, shellcmd 42 from utils import FindBaseNaCl, shellcmd
43 from ifatts import GetFileAttributes
44 43
45 # name: The name of this test suite. 44 # name: The name of this test suite.
46 config.name = 'subzero' 45 config.name = 'subzero'
47 46
48 # testFormat: The test format to use to interpret tests. 47 # testFormat: The test format to use to interpret tests.
49 config.test_format = lit.formats.ShTest() 48 config.test_format = lit.formats.ShTest()
50 49
51 # suffixes: A list of file extensions to treat as test files. 50 # suffixes: A list of file extensions to treat as test files.
52 config.suffixes = ['.ll'] 51 config.suffixes = ['.ll']
53 52
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 config.available_features.add("python%d.%d" % (sys.version_info[0], 127 config.available_features.add("python%d.%d" % (sys.version_info[0],
129 sys.version_info[1])) 128 sys.version_info[1]))
130 129
131 # Debugging output 130 # Debugging output
132 def dbg(s): 131 def dbg(s):
133 print '[DBG] %s' % s 132 print '[DBG] %s' % s
134 133
135 dbg('bin_root = %s' % bin_root) 134 dbg('bin_root = %s' % bin_root)
136 dbg('llvmbinpath = %s' % llvmbinpath) 135 dbg('llvmbinpath = %s' % llvmbinpath)
137 dbg("Build attributes = %s" % llvm2iceatts) 136 dbg("Build attributes = %s" % llvm2iceatts)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698