Mercurial > hg > truffle
comparison mx/commands.py @ 6294:b0fc02623974
exclude TestPrograms from JaCoCo processing
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 28 Aug 2012 13:55:11 +0200 |
parents | 633136426f26 |
children | 2a819543cc45 |
comparison
equal
deleted
inserted
replaced
6293:6550737d7807 | 6294:b0fc02623974 |
---|---|
580 if _jacoco == 'on' or _jacoco == 'append': | 580 if _jacoco == 'on' or _jacoco == 'append': |
581 jacocoagent = mx.library("JACOCOAGENT", True) | 581 jacocoagent = mx.library("JACOCOAGENT", True) |
582 # Exclude all compiler tests and snippets | 582 # Exclude all compiler tests and snippets |
583 excludes = ['com.oracle.graal.compiler.tests.*', 'com.oracle.graal.jtt.*'] | 583 excludes = ['com.oracle.graal.compiler.tests.*', 'com.oracle.graal.jtt.*'] |
584 for p in mx.projects(): | 584 for p in mx.projects(): |
585 excludes += _find_classes_with_annotations(p, None, ['@Snippet', '@ClassSubstitution'], includeInnerClasses=True) | 585 excludes += _find_classes_with_annotations(p, None, ['@Snippet', '@ClassSubstitution', '@Test'], includeInnerClasses=True) |
586 excludes += p.find_classes_with_matching_source_line(None, lambda line: 'JaCoCo Exclude' in line, includeInnerClasses=True) | 586 excludes += p.find_classes_with_matching_source_line(None, lambda line: 'JaCoCo Exclude' in line, includeInnerClasses=True) |
587 | 587 |
588 includes = ['com.oracle.graal.*', 'com.oracle.max.*'] | 588 includes = ['com.oracle.graal.*', 'com.oracle.max.*'] |
589 agentOptions = { | 589 agentOptions = { |
590 'append' : 'true' if _jacoco == 'append' else 'false', | 590 'append' : 'true' if _jacoco == 'append' else 'false', |