| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |