Mercurial > hg > graal-compiler
changeset 5881:472a648769e4
better JaCoCo : only include com.oracle.graal.* and com.oracle.max.*, exclude com.oracle.graal.jtt.*
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 07 Aug 2012 21:44:53 -0700 |
parents | afd2508528f5 |
children | fdec6dbeb3a1 |
files | mx/commands.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/commands.py Tue Aug 07 11:13:17 2012 -0700 +++ b/mx/commands.py Tue Aug 07 21:44:53 2012 -0700 @@ -577,15 +577,16 @@ if _jacoco == 'on' or _jacoco == 'append': jacocoagent = mx.library("JACOCOAGENT", True) # Exclude all compiler tests and snippets - excludes = ['com.oracle.graal.compiler.tests.*'] + excludes = ['com.oracle.graal.compiler.tests.*', 'com.oracle.graal.jtt.*'] for p in mx.projects(): excludes += _find_classes_with_annotations(p, None, ['@Snippet', '@ClassSubstitution'], includeInnerClasses=True) excludes += p.find_classes_with_matching_source_line(None, lambda line: 'JaCoCo Exclude' in line, includeInnerClasses=True) + includes = ['com.oracle.graal.*', 'com.oracle.max.*'] agentOptions = { 'append' : 'true' if _jacoco == 'append' else 'false', 'bootclasspath' : 'true', - 'includes' : 'com.oracle.*', + 'includes' : ':'.join(includes), 'excludes' : ':'.join(excludes), 'destfile' : 'jacoco.exec' }