changeset 6340:74560fdffd51

Add a draft longtests command to mc's commands
author Gilles Duboscq <duboscq@ssw.jku.at>
date Fri, 07 Sep 2012 17:11:40 +0200
parents 270fc8772a10
children e63431ba9a33
files mx/commands.py
diffstat 1 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mx/commands.py	Fri Sep 07 17:11:09 2012 +0200
+++ b/mx/commands.py	Fri Sep 07 17:11:40 2012 +0200
@@ -814,6 +814,26 @@
         mx.log('  ' + str(t.duration) + '\t' + t.title)
     mx.log('  =======')
     mx.log('  ' + str(total.duration))
+    
+def deoptalot(args):
+    """Bootstrap a fastdebug Graal VM with DeoptimizeALot and VerifyOops on
+
+    If the first argument is a number, the process will be repeated
+    this number of times. All other arguments are passed to the VM."""
+    count = 1
+    if len(args) > 0 and args[0].isdigit():
+        count = int(args[0])
+        del args[0]
+    
+    for n in range(count):
+        if not vm(['-XX:+DeoptimizeALot', '-XX:+VerifyOops'] + args + ['-version'], vmbuild='fastdebug') == 0:
+            mx.abort("Failed")
+            
+def longtests(args):
+    
+    deoptalot(['15', '-Xmx48m'])
+    
+    dacapo(['100', 'eclipse', '-esa'])
 
 def gv(args):
     """run the Graal Visualizer"""
@@ -1001,7 +1021,9 @@
         'site' : [site, '[-options]'],
         'vm': [vm, '[-options] class [args...]'],
         'vmg': [vmg, '[-options] class [args...]'],
-        'vmfg': [vmfg, '[-options] class [args...]']
+        'vmfg': [vmfg, '[-options] class [args...]'],
+        'deoptalot' : [deoptalot, '[n]'],
+        'longtests' : [longtests, '']
     }
 
     mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])