[lit] Delete the now-unused SyntaxCheckTest format.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 31 Jan 2013 18:04:38 +0000 (18:04 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 31 Jan 2013 18:04:38 +0000 (18:04 +0000)
 - Also, kill the pointless LitFormats module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174070 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/LitConfig.py
utils/lit/lit/LitFormats.py [deleted file]
utils/lit/lit/TestFormats.py

index f7eba4893562ba0b8e3857091fdb86079cd66e36..9bcf20b2f11ced952ae64e0269ddd4d6f01f7d2f 100644 (file)
@@ -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
diff --git a/utils/lit/lit/LitFormats.py b/utils/lit/lit/LitFormats.py
deleted file mode 100644 (file)
index 2e3f79d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-from TestFormats import FileBasedTest
-from TestFormats import GoogleTest, ShTest
-from TestFormats import SyntaxCheckTest, OneCommandPerFileTest
index b0fa0a26874fa28cecd766ca5f7e38a885332230..a272976ca00540d69934f02045cf1be640eba3e1 100644 (file)
@@ -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