Mercurial > hg > truffle
comparison mx/commands.py @ 4240:394424b7df1a
Disabled certain DaCapo tests for fastdebug testing in the gate.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 06 Jan 2012 18:35:39 +0100 |
parents | e0d09e05aa9b |
children | a69889e5a8a5 |
comparison
equal
deleted
inserted
replaced
4239:676feaf8adee | 4240:394424b7df1a |
---|---|
217 with open(jvmCfg, 'a') as f: | 217 with open(jvmCfg, 'a') as f: |
218 f.write('-graal KNOWN\n') | 218 f.write('-graal KNOWN\n') |
219 | 219 |
220 if build == 'product': | 220 if build == 'product': |
221 return jdk | 221 return jdk |
222 elif build in ['debug', 'fastdebug', 'optimized']: | 222 elif build in ['debug', 'fastdebug']: |
223 res = join(jdk, build) | 223 res = join(jdk, build) |
224 if not exists(res): | 224 if not exists(res): |
225 if not create: | 225 if not create: |
226 mx.abort('The ' + build + ' VM has not been created - run \'mx clean; mx make ' + build + '\'') | 226 mx.abort('The ' + build + ' VM has not been created - run \'mx clean; mx make ' + build + '\'') |
227 mx.log('Creating ' + res) | 227 mx.log('Creating ' + res) |
578 | 578 |
579 t = Task('UnitTests:' + vmbuild) | 579 t = Task('UnitTests:' + vmbuild) |
580 unittest([]) | 580 unittest([]) |
581 t.stop() | 581 t.stop() |
582 | 582 |
583 for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate): | 583 for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate, gateBuildLevel=vmbuild): |
584 t = Task(str(test) + ':' + vmbuild) | 584 t = Task(str(test) + ':' + vmbuild) |
585 if not test.test('-graal'): | 585 if not test.test('-graal'): |
586 t.abort(test.group + ' ' + test.name + ' Failed') | 586 t.abort(test.group + ' ' + test.name + ' Failed') |
587 t.stop() | 587 t.stop() |
588 except Exception as e: | 588 except Exception as e: |
626 | 626 |
627 if (_vmSourcesAvailable): | 627 if (_vmSourcesAvailable): |
628 mx.add_argument('--product', action='store_const', dest='vmbuild', const='product', help='select the product VM') | 628 mx.add_argument('--product', action='store_const', dest='vmbuild', const='product', help='select the product VM') |
629 mx.add_argument('--debug', action='store_const', dest='vmbuild', const='debug', help='select the debug VM') | 629 mx.add_argument('--debug', action='store_const', dest='vmbuild', const='debug', help='select the debug VM') |
630 mx.add_argument('--fastdebug', action='store_const', dest='vmbuild', const='fastdebug', help='select the fast debug VM') | 630 mx.add_argument('--fastdebug', action='store_const', dest='vmbuild', const='fastdebug', help='select the fast debug VM') |
631 mx.add_argument('--optimized', action='store_const', dest='vmbuild', const='optimized', help='select the optimized VM') | |
632 | 631 |
633 commands.update({ | 632 commands.update({ |
634 'export': [export, '[-options] [zipfile]'], | 633 'export': [export, '[-options] [zipfile]'], |
635 'build': [build, '[-options] [product|debug|fastdebug|optimized]...'] | 634 'build': [build, '[-options] [product|debug|fastdebug]...'] |
636 }) | 635 }) |
637 | 636 |
638 mx.commands.update(commands) | 637 mx.commands.update(commands) |
639 | 638 |
640 def mx_post_parse_cmd_line(opts): | 639 def mx_post_parse_cmd_line(opts): |