[llvm-commits] [llvm] r86447 - in /llvm/trunk/utils/lit: TestFormats.py TestRunner.py
Daniel Dunbar
daniel at zuster.org
Sun Nov 8 01:07:15 PST 2009
Author: ddunbar
Date: Sun Nov 8 03:07:13 2009
New Revision: 86447
URL: http://llvm.org/viewvc/llvm-project?rev=86447&view=rev
Log:
lit: Drop require_and_and support.
Modified:
llvm/trunk/utils/lit/TestFormats.py
llvm/trunk/utils/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/TestFormats.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/TestFormats.py?rev=86447&r1=86446&r2=86447&view=diff
==============================================================================
--- llvm/trunk/utils/lit/TestFormats.py (original)
+++ llvm/trunk/utils/lit/TestFormats.py Sun Nov 8 03:07:13 2009
@@ -81,14 +81,12 @@
localConfig)
class ShTest(FileBasedTest):
- def __init__(self, execute_external = False, require_and_and = False):
+ def __init__(self, execute_external = False):
self.execute_external = execute_external
- self.require_and_and = require_and_and
def execute(self, test, litConfig):
return TestRunner.executeShTest(test, litConfig,
- self.execute_external,
- self.require_and_and)
+ self.execute_external)
class TclTest(FileBasedTest):
def execute(self, test, litConfig):
Modified: llvm/trunk/utils/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/TestRunner.py?rev=86447&r1=86446&r2=86447&view=diff
==============================================================================
--- llvm/trunk/utils/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/TestRunner.py Sun Nov 8 03:07:13 2009
@@ -353,7 +353,7 @@
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 @@
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 @@
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 @@
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
More information about the llvm-commits
mailing list