comparison mx/commands.py @ 5269:6b2d030d01ff

Merge
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 20 Apr 2012 15:03:02 +0200
parents b8661be84cfd a549662f6c6f
children 31fc6b6c0425
comparison
equal deleted inserted replaced
5268:b59e32ea3761 5269:6b2d030d01ff
545 if exists(timestampFile): 545 if exists(timestampFile):
546 os.utime(timestampFile, None) 546 os.utime(timestampFile, None)
547 else: 547 else:
548 file(timestampFile, 'a') 548 file(timestampFile, 'a')
549 549
550 def vmg(args):
551 """run the debug build of VM selected by the '--vm' option"""
552 return vm(args, vmbuild='debug')
553
554 def vmfg(args):
555 """run the fastdebug build of VM selected by the '--vm' option"""
556 return vm(args, vmbuild='fastdebug')
557
550 def vm(args, vm=None, nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None): 558 def vm(args, vm=None, nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None):
551 """run the VM selected by the '--vm' option""" 559 """run the VM selected by the '--vm' option"""
552 560
553 if vm is None: 561 if vm is None:
554 vm = _vm 562 vm = _vm
986 'gv' : [gv, ''], 994 'gv' : [gv, ''],
987 'bench' : [bench, '[-resultfile file] [all(default)|dacapo|specjvm2008|bootstrap]'], 995 'bench' : [bench, '[-resultfile file] [all(default)|dacapo|specjvm2008|bootstrap]'],
988 'unittest' : [unittest, '[filters...]'], 996 'unittest' : [unittest, '[filters...]'],
989 'jtt' : [jtt, '[filters...]'], 997 'jtt' : [jtt, '[filters...]'],
990 'jacocoreport' : [jacocoreport, '[output directory]'], 998 'jacocoreport' : [jacocoreport, '[output directory]'],
991 'vm': [vm, '[-options] class [args...]'] 999 'vm': [vm, '[-options] class [args...]'],
1000 'vmg': [vmg, '[-options] class [args...]'],
1001 'vmfg': [vmfg, '[-options] class [args...]']
992 } 1002 }
993 1003
994 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) 1004 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])
995 1005
996 if (_vmSourcesAvailable): 1006 if (_vmSourcesAvailable):