[lit] Drop --no-execute, which isn't generally useful.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 7 Aug 2013 03:14:00 +0000 (03:14 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 7 Aug 2013 03:14:00 +0000 (03:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187852 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/LitConfig.py
utils/lit/lit/TestFormats.py
utils/lit/lit/TestRunner.py
utils/lit/lit/discovery.py
utils/lit/lit/main.py

index cb216ea1f44fd5089feb349f9cf485025dbf88f7..c9c1454f0c67d2ed151edb49cc7c2a4f6305dd9b 100644 (file)
@@ -19,8 +19,7 @@ class LitConfig:
 
     def __init__(self, progname, path, quiet,
                  useValgrind, valgrindLeakCheck, valgrindArgs,
-                 noExecute, debug, isWindows,
-                 params, config_prefix = None):
+                 debug, isWindows, params, config_prefix = None):
         # The name of the test runner.
         self.progname = progname
         # The items to add to the PATH environment variable.
@@ -29,7 +28,6 @@ class LitConfig:
         self.useValgrind = bool(useValgrind)
         self.valgrindLeakCheck = bool(valgrindLeakCheck)
         self.valgrindUserArgs = list(valgrindArgs)
-        self.noExecute = noExecute
         self.debug = debug
         self.isWindows = bool(isWindows)
         self.params = dict(params)
index 27085b9a756fa28284125efc0f9273fc0bfe6808..7e4fafcf1aef37e3de49c656e366a15b64198127 100644 (file)
@@ -99,9 +99,6 @@ class GoogleTest(object):
         if litConfig.useValgrind:
             cmd = litConfig.valgrindArgs + cmd
 
-        if litConfig.noExecute:
-            return Test.PASS, ''
-
         out, err, exitCode = TestRunner.executeCommand(
             cmd, env=test.config.environment)
 
index daa9b7dfbb0ee0c282671bd911e8041a84587b33..d904616127654b3b67a2f1d586bf25a712428394 100644 (file)
@@ -465,9 +465,6 @@ def executeShTest(test, litConfig, useExternalSh,
 
     script, isXFail, tmpBase, execdir = res
 
-    if litConfig.noExecute:
-        return (Test.PASS, '')
-
     # Create the output directory if it does not already exist.
     Util.mkdir_p(os.path.dirname(tmpBase))
 
index 44f7867131fae169ef071679bc8f693a0b291922..531281e5de0891b580a91614d19b835568b87f1a 100644 (file)
@@ -232,7 +232,6 @@ def load_test_suite(inputs):
                                     useValgrind = False,
                                     valgrindLeakCheck = False,
                                     valgrindArgs = [],
-                                    noExecute = False,
                                     debug = False,
                                     isWindows = (platform.system()=='Windows'),
                                     params = {})
index 0faa55ed3973941000423936e27b29b329486646..5070166c3cd626a8aac7682264439eb422abf136 100755 (executable)
@@ -214,9 +214,6 @@ def main(builtinParameters = {}):
     group.add_option("", "--time-tests", dest="timeTests",
                      help="Track elapsed wall time for each test",
                      action="store_true", default=False)
-    group.add_option("", "--no-execute", dest="noExecute",
-                     help="Don't execute any tests (assume PASS)",
-                     action="store_true", default=False)
     parser.add_option_group(group)
 
     group = OptionGroup(parser, "Test Selection")
@@ -283,7 +280,6 @@ def main(builtinParameters = {}):
                                     useValgrind = opts.useValgrind,
                                     valgrindLeakCheck = opts.valgrindLeakCheck,
                                     valgrindArgs = opts.valgrindArgs,
-                                    noExecute = opts.noExecute,
                                     debug = opts.debug,
                                     isWindows = (platform.system()=='Windows'),
                                     params = userParams,