Jonathan Gibbons | 3 Aug 16:34
Picon

jtreg: ignoring @ignored tests

As many of you know (and are painfully aware!), and for mostly  
historical reasons,
jtreg "processes" tests which have been temporarily disabled with an  
@ignore keyword,
giving an Error result, which messes up an otherwise clean test run.

Since in reality, "temporarily" has turned out to be somwhat longer  
than expected, I went
to fix it. And as I figured the fix, I found that enough of the fix  
was already in place in all
existing versions of jtreg that it can be used by everyone even now.

It turns out that all @ignore-d tests have the "ignore" keyword set  
on them. So you can use
the -keyword option to exclude tests with the ignore keyword by going
	-keyword:!ignore

If you're running jtreg from a shell, you might need to escape the  
'!'. If you're running jtreg
from Ant, you can provide this parameter via an <arg value="...">  
element.

-- Jon G

Jesse Glick | 6 Aug 17:15
Picon

Re: jtreg: ignoring @ignored tests

Jonathan Gibbons wrote:
> -keyword:!ignore
> 
> If you're running jtreg from Ant, you can provide this parameter via
> an <arg value="..."> element.

Shouldn't j2se/make/netbeans/common/shared.xml#-jtreg-setup define this 
by default in jtreg.options?

-J.

--

-- 
jesse.glick@...  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

Jonathan Gibbons | 6 Aug 18:24
Picon

Re: jtreg: ignoring @ignored tests

Jesse,

I'm not an expert on those build files;  I was just describing the  
basic mechanism to get the right thing to happen.
But what you say sounds like a good idea, thank you.

-- Jon

On Aug 6, 2007, at 8:15 AM, Jesse Glick wrote:

> Jonathan Gibbons wrote:
>> -keyword:!ignore
>> If you're running jtreg from Ant, you can provide this parameter via
>> an <arg value="..."> element.
>
> Shouldn't j2se/make/netbeans/common/shared.xml#-jtreg-setup define  
> this by default in jtreg.options?
>
> -J.
>
> -- 
> jesse.glick@...  netbeans.org  ant.apache.org  hudson.dev.java.net
>             http://google.com/search?q=e%5E%28pi*i%29%2B1
>


Gmane