diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-03-22 04:46:59 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-03-22 04:46:59 +0000 |
commit | 06246f10cdf4b46d8938946e747bbef494441cfb (patch) | |
tree | 73a31b694862e3d4b753e5cea331b41b89af1a1c | |
parent | e474752f4cc76c49079328b6ce6c16abb02a4a57 (diff) | |
download | bcm5719-llvm-06246f10cdf4b46d8938946e747bbef494441cfb.tar.gz bcm5719-llvm-06246f10cdf4b46d8938946e747bbef494441cfb.zip |
Revert r204493, "Make clang/test/lit.cfg pre-scan the RUN line looking for tool names,"
It was incompatible to standlalone clang build.
llvm-svn: 204539
-rw-r--r-- | clang/test/lit.cfg | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 8d0ac80ebe6..f7acb2f1568 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -288,40 +288,6 @@ config.substitutions.append( (' %clang-cl ', """*** invalid substitution, use '%clang_cl'. ***""") ) -# For each occurrence of a clang tool name as its own word, replace it -# with the full path to the build directory holding that tool. This -# ensures that we are testing the tools just built and not some random -# tools that might happen to be in the user's PATH. -# For example, don't match 'clang-check-' or '.clang-format'. -# Regex assertions to reject neighbor hyphens/dots (seen in some tests). -NoPreHyphenDot = r"(?<!(-|\.))" -NoPostHyphenDot = r"(?!(-|\.))" - -for pattern in [r"\bFileCheck\b", - r"\bc-index-test\b", - NoPreHyphenDot + r"\bclang-check\b" + NoPostHyphenDot, - NoPreHyphenDot + r"\bclang-format\b" + NoPostHyphenDot, - # FIXME: Some clang test uses opt? - NoPreHyphenDot + r"\bopt\b" + NoPostHyphenDot, - # Handle these specially as they are strings searched - # for during testing. - r"\| \bcount\b", - r"\| \bnot\b"]: - # Extract the tool name from the pattern. This relies on the tool - # name being surrounded by \b word match operators. If the - # pattern starts with "| ", include it in the string to be - # substituted. - tool_match = re.match(r"^(\\)?((\| )?)\W+b([0-9A-Za-z-_]+)\\b\W*$", - pattern) - tool_pipe = tool_match.group(2) - tool_name = tool_match.group(4) - tool_path = lit.util.which(tool_name, llvm_tools_dir) - if not tool_path: - # Warn, but still provide a substitution. - lit_config.note('Did not find ' + tool_name + ' in ' + llvm_tools_dir) - tool_path = llvm_tools_dir + '/' + tool_name - config.substitutions.append((pattern, tool_pipe + tool_path)) - ### # Set available features we allow tests to conditionalize on. |