From Jonathan.Gibbons at Sun.COM Fri Aug 3 07:34:28 2007 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Fri, 03 Aug 2007 07:34:28 -0700 Subject: jtreg: ignoring @ignored tests Message-ID: 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 element. -- Jon G From jesse.glick at sun.com Mon Aug 6 08:15:53 2007 From: jesse.glick at sun.com (Jesse Glick) Date: Mon, 06 Aug 2007 11:15:53 -0400 Subject: jtreg: ignoring @ignored tests In-Reply-To: References: Message-ID: Jonathan Gibbons wrote: > -keyword:!ignore > > If you're running jtreg from Ant, you can provide this parameter via > an element. Shouldn't j2se/make/netbeans/common/shared.xml#-jtreg-setup define this by default in jtreg.options? -J. -- jesse.glick at sun.com netbeans.org ant.apache.org hudson.dev.java.net http://google.com/search?q=e%5E%28pi*i%29%2B1 From Jonathan.Gibbons at Sun.COM Mon Aug 6 09:24:10 2007 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Mon, 06 Aug 2007 09:24:10 -0700 Subject: jtreg: ignoring @ignored tests In-Reply-To: References: Message-ID: <464BC39F-942B-4CE6-AD0B-AF9611554D76@sun.com> 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 element. > > Shouldn't j2se/make/netbeans/common/shared.xml#-jtreg-setup define > this by default in jtreg.options? > > -J. > > -- > jesse.glick at sun.com netbeans.org ant.apache.org hudson.dev.java.net > http://google.com/search?q=e%5E%28pi*i%29%2B1 >