[llvm-commits] [zorg] r151078 - /zorg/trunk/lnt/lnt/tests/compile.py
Daniel Dunbar
daniel at zuster.org
Tue Feb 21 11:14:17 PST 2012
Author: ddunbar
Date: Tue Feb 21 13:14:17 2012
New Revision: 151078
URL: http://llvm.org/viewvc/llvm-project?rev=151078&view=rev
Log:
[lnt] lnt.tests.compile: Add --min-sample-time option, to try and get the same
relative variance for short running tests.
Modified:
zorg/trunk/lnt/lnt/tests/compile.py
Modified: zorg/trunk/lnt/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/compile.py?rev=151078&r1=151077&r2=151078&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/compile.py (original)
+++ zorg/trunk/lnt/lnt/tests/compile.py Tue Feb 21 13:14:17 2012
@@ -35,6 +35,8 @@
cmd.extend(('--stdout', stdout))
if stderr is not None:
cmd.extend(('--stderr', stderr))
+ cmd.extend(('--min-sample-time', repr(opts.min_sample_time)))
+ cmd.extend(('--max-num-samples', '100'))
cmd.append(str(int(N)))
cmd.extend(args)
@@ -515,6 +517,9 @@
group.add_option("", "--multisample", dest="run_count", metavar="N",
help="Accumulate test data from multiple runs",
action="store", type=int, default=3)
+ group.add_option("", "--min-sample-time", dest="min_sample_time",
+ help="Ensure all tests run for at least N seconds",
+ metavar="N", action="store", type=float, default=.5)
group.add_option("", "--show-tests", dest="show_tests",
help="Only list the availables tests that will be run",
action="store_true", default=False)
More information about the llvm-commits
mailing list