diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:07:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:07:13 +0000 |
commit | 6ff773bd2157a55b62dec774451411ec6c32bf5e (patch) | |
tree | 7c73ee9bffe672a5413f1a13a9ff731879efcdda /llvm/utils/lit/TestRunner.py | |
parent | 09eeeaf08b293c3fc62c2cd434a455c207bd40e4 (diff) | |
download | bcm5719-llvm-6ff773bd2157a55b62dec774451411ec6c32bf5e.tar.gz bcm5719-llvm-6ff773bd2157a55b62dec774451411ec6c32bf5e.zip |
lit: Drop require_and_and support.
llvm-svn: 86447
Diffstat (limited to 'llvm/utils/lit/TestRunner.py')
-rw-r--r-- | llvm/utils/lit/TestRunner.py | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/llvm/utils/lit/TestRunner.py b/llvm/utils/lit/TestRunner.py index 7abc60a1f00..003bcc8e306 100644 --- a/llvm/utils/lit/TestRunner.py +++ b/llvm/utils/lit/TestRunner.py @@ -353,7 +353,7 @@ def isExpectedFail(xfails, xtargets, target_triple): return True -def parseIntegratedTestScript(test, requireAndAnd): +def parseIntegratedTestScript(test): """parseIntegratedTestScript - Scan an LLVM/Clang style integrated test script and extract the lines to 'RUN' as well as 'XFAIL' and 'XTARGET' information. The RUN lines also will have variable substitution performed. @@ -425,19 +425,6 @@ def parseIntegratedTestScript(test, requireAndAnd): if script[-1][-1] == '\\': return (Test.UNRESOLVED, "Test has unterminated run lines (with '\\')") - # Validate interior lines for '&&', a lovely historical artifact. - if requireAndAnd: - for i in range(len(script) - 1): - ln = script[i] - - if not ln.endswith('&&'): - return (Test.FAIL, - ("MISSING \'&&\': %s\n" + - "FOLLOWED BY : %s\n") % (ln, script[i + 1])) - - # Strip off '&&' - script[i] = ln[:-2] - isXFail = isExpectedFail(xfails, xtargets, test.suite.config.target_triple) return script,isXFail,tmpBase,execdir @@ -462,7 +449,7 @@ def executeTclTest(test, litConfig): if test.config.unsupported: return (Test.UNSUPPORTED, 'Test is unsupported') - res = parseIntegratedTestScript(test, False) + res = parseIntegratedTestScript(test) if len(res) == 2: return res @@ -491,11 +478,11 @@ def executeTclTest(test, litConfig): return formatTestOutput(status, out, err, exitCode, script) -def executeShTest(test, litConfig, useExternalSh, requireAndAnd): +def executeShTest(test, litConfig, useExternalSh): if test.config.unsupported: return (Test.UNSUPPORTED, 'Test is unsupported') - res = parseIntegratedTestScript(test, requireAndAnd) + res = parseIntegratedTestScript(test) if len(res) == 2: return res |