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

Side by Side Diff: crosstest/lit.cfg

Issue 1085733002: Subzero: Auto-detect cmake versus autoconf LLVM build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the sb build libs Created 5 years, 8 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 | « Makefile.standalone ('k') | pydir/run-pnacl-sz.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 import os 1 import os
2 import re 2 import re
3 import lit.formats 3 import lit.formats
4 4
5 config.name = 'subzero_crosstests' 5 config.name = 'subzero_crosstests'
6 config.test_format = lit.formats.ShTest() 6 config.test_format = lit.formats.ShTest()
7 config.suffixes = ['.xtest'] 7 config.suffixes = ['.xtest']
8 config.test_source_root = os.path.dirname(__file__) 8 config.test_source_root = os.path.dirname(__file__)
9 config.test_exec_root = config.test_source_root 9 config.test_exec_root = config.test_source_root
10 10
11 llvmbintools = [r"\bFileCheck\b"] 11 pnaclbintools = [r"\bFileCheck\b"]
12 llvmbinpath = os.path.abspath(os.environ.get('LLVM_BIN_PATH')) 12 pnaclbinpath = os.path.abspath(os.environ.get('PNACL_BIN_PATH'))
13 13
14 for tool in llvmbintools: 14 for tool in pnaclbintools:
15 # The re.sub() line is adapted from one of LLVM's lit.cfg files. 15 # The re.sub() line is adapted from one of LLVM's lit.cfg files.
16 # Extract the tool name from the pattern. This relies on the tool 16 # Extract the tool name from the pattern. This relies on the tool
17 # name being surrounded by \b word match operators. If the 17 # name being surrounded by \b word match operators. If the
18 # pattern starts with "| ", include it in the string to be 18 # pattern starts with "| ", include it in the string to be
19 # substituted. 19 # substituted.
20 substitution = re.sub(r"^(\\)?((\| )?)\W+b([0-9A-Za-z-_]+)\\b\W*$", 20 substitution = re.sub(r"^(\\)?((\| )?)\W+b([0-9A-Za-z-_]+)\\b\W*$",
21 r"\2" + llvmbinpath + "/" + r"\4", 21 r"\2" + pnaclbinpath + "/" + r"\4",
22 tool) 22 tool)
23 config.substitutions.append((tool, substitution)) 23 config.substitutions.append((tool, substitution))
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | pydir/run-pnacl-sz.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698