Mercurial > hg > truffle
comparison mx/commands.py @ 5033:d7ecce178ad2
Add jacoco report and a -XX:+DeoptimizeALot -XX:+VerifyOops bootstrap run to the gate
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 06 Mar 2012 19:13:51 +0100 |
parents | e2de9649f0a9 |
children | 5733884ef819 |
comparison
equal
deleted
inserted
replaced
5032:e2de9649f0a9 | 5033:d7ecce178ad2 |
---|---|
644 return self | 644 return self |
645 | 645 |
646 parser = ArgumentParser(prog='mx gate'); | 646 parser = ArgumentParser(prog='mx gate'); |
647 parser.add_argument('-n', '--omit-native-build', action='store_false', dest='buildNative', help='omit cleaning and building native code') | 647 parser.add_argument('-n', '--omit-native-build', action='store_false', dest='buildNative', help='omit cleaning and building native code') |
648 parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') | 648 parser.add_argument('-g', '--only-build-graalvm', action='store_false', dest='buildNonGraal', help='only build the Graal VM') |
649 parser.add_argument('--jacocout', help='specify the output directory for jacoco report') | |
649 | 650 |
650 args = parser.parse_args(args) | 651 args = parser.parse_args(args) |
651 | 652 |
652 tasks = [] | 653 tasks = [] |
653 total = Task('Gate') | 654 total = Task('Gate') |
672 | 673 |
673 t = Task('BootstrapWithSystemAssertions:' + vmbuild) | 674 t = Task('BootstrapWithSystemAssertions:' + vmbuild) |
674 vm(['-esa', '-version']) | 675 vm(['-esa', '-version']) |
675 tasks.append(t.stop()) | 676 tasks.append(t.stop()) |
676 | 677 |
678 if vmbuild == 'product' and args.jacocout is not None: | |
679 global _jacoco | |
680 _jacoco = 'on' | |
681 | |
677 t = Task('UnitTests:' + vmbuild) | 682 t = Task('UnitTests:' + vmbuild) |
678 unittest([]) | 683 unittest([]) |
679 tasks.append(t.stop()) | 684 tasks.append(t.stop()) |
680 | 685 |
686 if vmbuild == 'product' and args.jacocout is not None: | |
687 global _jacoco | |
688 _jacoco = 'append' | |
689 | |
681 t = Task('JavaTesterTests:' + vmbuild) | 690 t = Task('JavaTesterTests:' + vmbuild) |
682 jtt([]) | 691 jtt([]) |
683 tasks.append(t.stop()) | 692 tasks.append(t.stop()) |
693 | |
694 if vmbuild == 'product' and args.jacocout is not None: | |
695 global _jacoco | |
696 _jacoco = 'off' | |
684 | 697 |
685 for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate, gateBuildLevel=vmbuild): | 698 for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate, gateBuildLevel=vmbuild): |
686 t = Task(str(test) + ':' + vmbuild) | 699 t = Task(str(test) + ':' + vmbuild) |
687 if not test.test('graal'): | 700 if not test.test('graal'): |
688 t.abort(test.group + ' ' + test.name + ' Failed') | 701 t.abort(test.group + ' ' + test.name + ' Failed') |
689 tasks.append(t.stop()) | 702 tasks.append(t.stop()) |
703 | |
704 if args.jacocout is not None: | |
705 jacocoreport([args.jacocout]) | |
706 | |
707 t = Task('BootstrapWithDeoptALot') | |
708 vm(['-XX:+DeoptimizeALot', '-XX:+VerifyOops', '-version'], vmbuild='fastdebug') | |
709 tasks.append(t.stop()) | |
690 | 710 |
691 t = Task('Checkstyle') | 711 t = Task('Checkstyle') |
692 if mx.checkstyle([]) != 0: | 712 if mx.checkstyle([]) != 0: |
693 t.abort('Checkstyle warnings were found') | 713 t.abort('Checkstyle warnings were found') |
694 tasks.append(t.stop()) | 714 tasks.append(t.stop()) |