Revision: 17440
Author:   [email protected]
Date:     Thu Oct 31 10:14:02 2013 UTC
Log:      Add no-variants option to test runner.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/48883003
http://code.google.com/p/v8/source/detail?r=17440

Modified:
 /branches/bleeding_edge/tools/run-tests.py

=======================================
--- /branches/bleeding_edge/tools/run-tests.py  Thu Oct 17 13:09:28 2013 UTC
+++ /branches/bleeding_edge/tools/run-tests.py  Thu Oct 31 10:14:02 2013 UTC
@@ -125,6 +125,9 @@
   result.add_option("--no-stress", "--nostress",
help="Don't run crankshaft --always-opt --stress-op test",
                     default=False, dest="no_stress", action="store_true")
+  result.add_option("--no-variants", "--novariants",
+                    help="Don't run any testing variants",
+                    default=False, dest="no_variants", action="store_true")
   result.add_option("--outdir", help="Base directory with compile output",
                     default="out")
   result.add_option("-p", "--progress",
@@ -197,8 +200,18 @@
   options.extra_flags = shlex.split(options.extra_flags)
   if options.j == 0:
     options.j = multiprocessing.cpu_count()
+
+  def excl(*args):
+    """Returns true if zero or one of multiple arguments are true."""
+    return reduce(lambda x, y: x + y, args) <= 1
+
+  if not excl(options.no_stress, options.stress_only, options.no_variants):
+    print "Use only one of --no-stress, --stress-only or --no-variants."
+    return False
   if options.no_stress:
     VARIANT_FLAGS = [[], ["--nocrankshaft"]]
+  if options.no_variants:
+    VARIANT_FLAGS = [[]]
   if not options.shell_dir:
     if options.shell:
       print "Warning: --shell is deprecated, use --shell-dir instead."

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to