[llvm] r188008 - [lit] Remove --repeat option, which wasn't that useful.
Daniel Dunbar
daniel at zuster.org
Thu Aug 8 13:59:21 PDT 2013
Author: ddunbar
Date: Thu Aug 8 15:59:20 2013
New Revision: 188008
URL: http://llvm.org/viewvc/llvm-project?rev=188008&view=rev
Log:
[lit] Remove --repeat option, which wasn't that useful.
Modified:
llvm/trunk/docs/CommandGuide/lit.rst
llvm/trunk/utils/lit/lit/Test.py
llvm/trunk/utils/lit/lit/TestRunner.py
llvm/trunk/utils/lit/lit/main.py
Modified: llvm/trunk/docs/CommandGuide/lit.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandGuide/lit.rst?rev=188008&r1=188007&r2=188008&view=diff
==============================================================================
--- llvm/trunk/docs/CommandGuide/lit.rst (original)
+++ llvm/trunk/docs/CommandGuide/lit.rst Thu Aug 8 15:59:20 2013
@@ -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
-----------
Modified: llvm/trunk/utils/lit/lit/Test.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/Test.py?rev=188008&r1=188007&r2=188008&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/Test.py (original)
+++ llvm/trunk/utils/lit/lit/Test.py Thu Aug 8 15:59:20 2013
@@ -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!"
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=188008&r1=188007&r2=188008&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Thu Aug 8 15:59:20 2013
@@ -344,8 +344,6 @@ def parseIntegratedTestScript(test, norm
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:
Modified: llvm/trunk/utils/lit/lit/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/main.py?rev=188008&r1=188007&r2=188008&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/main.py (original)
+++ llvm/trunk/utils/lit/lit/main.py Thu Aug 8 15:59:20 2013
@@ -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:
More information about the llvm-commits
mailing list