diff options
author | Eli Bendersky <eliben@google.com> | 2013-06-14 19:14:52 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-06-14 19:14:52 +0000 |
commit | dafd1a63119dc55af71c4582148ce72d573cdea6 (patch) | |
tree | e9bfea8bd2254464554a3453cfed0ed1e2405f9f /test/lit.cfg | |
parent | 38103d1012cb8a51da8866134886a0a8f35f4e30 (diff) | |
download | external_llvm-dafd1a63119dc55af71c4582148ce72d573cdea6.zip external_llvm-dafd1a63119dc55af71c4582148ce72d573cdea6.tar.gz external_llvm-dafd1a63119dc55af71c4582148ce72d573cdea6.tar.bz2 |
Do not to perform RUN line substitution of llc if that's prefixed by a hypnen
(-llc), similarly to the way it was done for clang and llvmc.
This doesn't affect the upstream llvm tests but helps when developing custom
LLVM-based tools and testing them within the LLVM regression framework.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 8272e97..b22a038 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -201,9 +201,14 @@ if os.pathsep == ';': pathext = os.environ.get('PATHEXT', '').split(';') else: pathext = [''] +# Regex to reject matching a hyphen +NOHYPHEN = r"(?<!-)" + for pattern in [r"\bbugpoint\b(?!-)", r"(?<!/|-)\bclang\b(?!-)", r"\bgold\b", - r"\bllc\b", r"\blli\b", + # Match llc but not -llc + NOHYPHEN + r"\bllc\b", + r"\blli\b", r"\bllvm-ar\b", r"\bllvm-as\b", r"\bllvm-bcanalyzer\b", r"\bllvm-config\b", r"\bllvm-cov\b", r"\bllvm-diff\b", @@ -214,8 +219,9 @@ for pattern in [r"\bbugpoint\b(?!-)", r"(?<!/|-)\bclang\b(?!-)", r"\bllvm-prof\b", r"\bllvm-ranlib\b", r"\bllvm-rtdyld\b", r"\bllvm-shlib\b", r"\bllvm-size\b", - # Don't match '-llvmc'. - r"(?<!-)\bllvmc\b", r"\blto\b", + # Match llvmc but not -llvmc + NOHYPHEN + r"\bllvmc\b", + r"\blto\b", # Don't match '.opt', '-opt', # '^opt' or '/opt'. r"\bmacho-dump\b", r"(?<!\.|-|\^|/)\bopt\b", |