Mercurial > hg > truffle
comparison mx/commands.py @ 5257:a549662f6c6f
added 'vmg' and 'vmfg' commands to mx as convenient aliases for running the debug and fastdebug builds of the selected VM
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 20 Apr 2012 14:10:57 +0200 |
parents | 71ac4221b1b0 |
children | 6b2d030d01ff |
comparison
equal
deleted
inserted
replaced
5255:38feba3e8526 | 5257:a549662f6c6f |
---|---|
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): |