Revision: 25139
Author:   [email protected]
Date:     Wed Nov  5 10:38:40 2014 UTC
Log:      Add fast-variants feature to test driver.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/704723002
https://code.google.com/p/v8/source/detail?r=25139

Modified:
 /branches/bleeding_edge/test/mjsunit/mjsunit.status
 /branches/bleeding_edge/tools/testrunner/local/statusfile.py
 /branches/bleeding_edge/tools/testrunner/local/testsuite.py

=======================================
--- /branches/bleeding_edge/test/mjsunit/mjsunit.status Wed Nov 5 09:10:28 2014 UTC +++ /branches/bleeding_edge/test/mjsunit/mjsunit.status Wed Nov 5 10:38:40 2014 UTC
@@ -30,11 +30,6 @@
   # All tests in the bug directory are expected to fail.
   'bugs/*': [FAIL],

- ##############################################################################
-  # Slow tests.
-  'asm/embenchen/box2d': [PASS, SLOW],
-  'asm/embenchen/lua_binarytrees': [PASS, SLOW],
-
##############################################################################
   # Flaky tests.
   # BUG(v8:2921).
@@ -205,6 +200,9 @@

   # This test variant makes only sense on arm.
'math-floor-of-div-nosudiv': [PASS, SLOW, ['arch not in [arm, arm64, android_arm, android_arm64]', SKIP]],
+
+  # Too slow for slow variants.
+  'asm/embenchen/*': [PASS, FAST_VARIANTS]
 }],  # ALWAYS

##############################################################################
=======================================
--- /branches/bleeding_edge/tools/testrunner/local/statusfile.py Wed Jul 9 11:08:26 2014 UTC +++ /branches/bleeding_edge/tools/testrunner/local/statusfile.py Wed Nov 5 10:38:40 2014 UTC
@@ -35,6 +35,7 @@
 CRASH = "CRASH"
 SLOW = "SLOW"
 FLAKY = "FLAKY"
+FAST_VARIANTS = "FAST_VARIANTS"
 NO_VARIANTS = "NO_VARIANTS"
 # These are just for the status files and are mapped below in DEFS:
 FAIL_OK = "FAIL_OK"
@@ -44,7 +45,7 @@

 KEYWORDS = {}
 for key in [SKIP, FAIL, PASS, OKAY, TIMEOUT, CRASH, SLOW, FLAKY, FAIL_OK,
-            NO_VARIANTS, PASS_OR_FAIL, ALWAYS]:
+            FAST_VARIANTS, NO_VARIANTS, PASS_OR_FAIL, ALWAYS]:
   KEYWORDS[key] = key

 DEFS = {FAIL_OK: [FAIL, OKAY],
@@ -70,6 +71,10 @@
   return NO_VARIANTS in outcomes


+def OnlyFastVariants(outcomes):
+  return FAST_VARIANTS in outcomes
+
+
 def IsFlaky(outcomes):
   return FLAKY in outcomes

=======================================
--- /branches/bleeding_edge/tools/testrunner/local/testsuite.py Fri Sep 26 13:46:22 2014 UTC +++ /branches/bleeding_edge/tools/testrunner/local/testsuite.py Wed Nov 5 10:38:40 2014 UTC
@@ -81,6 +81,8 @@
   def VariantFlags(self, testcase, default_flags):
if testcase.outcomes and statusfile.OnlyStandardVariant(testcase.outcomes):
       return [[]]
+ if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
+      return filter(lambda v: v in ["default", "turbofan"], default_flags)
     return default_flags

   def DownloadData(self):

--
--
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/d/optout.

Reply via email to