mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 06:30:39 +00:00
[lit] Delete the now-unused SyntaxCheckTest format.
- Also, kill the pointless LitFormats module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f79c5e2f84
commit
d5f7dbba2e
@ -12,7 +12,7 @@ class LitConfig:
|
||||
import Test
|
||||
|
||||
# Provide access to built-in formats.
|
||||
import LitFormats as formats
|
||||
import TestFormats as formats
|
||||
|
||||
# Provide access to built-in utility functions.
|
||||
import Util as util
|
||||
|
@ -1,3 +0,0 @@
|
||||
from TestFormats import FileBasedTest
|
||||
from TestFormats import GoogleTest, ShTest
|
||||
from TestFormats import SyntaxCheckTest, OneCommandPerFileTest
|
@ -221,12 +221,3 @@ class OneCommandPerFileTest:
|
||||
report += """Output:\n--\n%s--""" % diags
|
||||
|
||||
return Test.FAIL, report
|
||||
|
||||
class SyntaxCheckTest(OneCommandPerFileTest):
|
||||
def __init__(self, compiler, dir, extra_cxx_args=[], *args, **kwargs):
|
||||
cmd = [compiler, '-x', 'c++', '-fsyntax-only'] + extra_cxx_args
|
||||
OneCommandPerFileTest.__init__(self, cmd, dir,
|
||||
useTempInput=1, *args, **kwargs)
|
||||
|
||||
def createTempInput(self, tmp, test):
|
||||
print >>tmp, '#include "%s"' % test.source_path
|
||||
|
Loading…
Reference in New Issue
Block a user