[lit] Remove --repeat option, which wasn't that useful.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 8 Aug 2013 20:59:20 +0000 (20:59 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 8 Aug 2013 20:59:20 +0000 (20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188008 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CommandGuide/lit.rst
utils/lit/lit/Test.py
utils/lit/lit/TestRunner.py
utils/lit/lit/main.py

index a4681fb34ca2cfb2a5c97e31d2a9da291d40c118..5e986c85fed5c04c267048cfe495d748ec7c52f1 100644 (file)
@@ -151,11 +151,6 @@ ADDITIONAL OPTIONS
 
  List the discovered test suites as part of the standard output.
 
-.. option:: --repeat=N
-
- Run each test ``N`` times.  Currently this is primarily useful for timing
- tests, other results are not collated in any reasonable fashion.
-
 EXIT STATUS
 -----------
 
index 9471e3a98bf5224de99809df71c8ef7b1f4b0ea2..cf12425902f6897d54f8f030ddc812848f25d372 100644 (file)
@@ -58,14 +58,6 @@ class Test:
         self.output = None
         # The wall time to execute this test, if timing and once complete.
         self.elapsed = None
-        # The repeat index of this test, or None.
-        self.index = None
-
-    def copyWithIndex(self, index):
-        import copy
-        res = copy.copy(self)
-        res.index = index
-        return res
 
     def setResult(self, result, output, elapsed):
         assert self.result is None, "Test result already set!"
index 9fe9eb9d947cfc38699e812f580739149febf48f..27e29b78ba9405cfa6c75262c21fb2454bc6df2e 100644 (file)
@@ -344,8 +344,6 @@ def parseIntegratedTestScript(test, normalize_slashes=False,
     execdir,execbase = os.path.split(execpath)
     tmpDir = os.path.join(execdir, 'Output')
     tmpBase = os.path.join(tmpDir, execbase)
-    if test.index is not None:
-        tmpBase += '_%d' % test.index
 
     # Normalize slashes, if requested.
     if normalize_slashes:
index 9fff75754d5fb370107da7672bf6391258bc054a..5eaf7257758aca1f25a4fc7b38d774a613210982 100755 (executable)
@@ -242,9 +242,6 @@ def main(builtinParameters = {}):
     group.add_option("", "--show-tests", dest="showTests",
                       help="Show all discovered tests",
                       action="store_true", default=False)
-    group.add_option("", "--repeat", dest="repeatTests", metavar="N",
-                      help="Repeat tests N times (for timing)",
-                      action="store", default=None, type=int)
     parser.add_option_group(group)
 
     (opts, args) = parser.parse_args()
@@ -347,11 +344,6 @@ def main(builtinParameters = {}):
     header = '-- Testing: %d%s tests, %d threads --'%(len(tests),extra,
                                                       opts.numThreads)
 
-    if opts.repeatTests:
-        tests = [t.copyWithIndex(i)
-                 for t in tests
-                 for i in range(opts.repeatTests)]
-
     progressBar = None
     if not opts.quiet:
         if opts.succinct and opts.useProgressBar: