Skip to content

Commit

Permalink
[lit] Remove --repeat option, which wasn't that useful.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188008 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Aug 8, 2013
1 parent 0e5f7c5 commit 59c6b10
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
5 changes: 0 additions & 5 deletions docs/CommandGuide/lit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------

Expand Down
8 changes: 0 additions & 8 deletions utils/lit/lit/Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ def __init__(self, suite, path_in_suite, config):
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!"
Expand Down
2 changes: 0 additions & 2 deletions utils/lit/lit/TestRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 0 additions & 8 deletions utils/lit/lit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 59c6b10

Please sign in to comment.