Review request for JDK-8051540: Convert JAXP functin tests: org.xml.sax to jtreg (testNG) tests

Tristan Yan tristan.yan at oracle.com
Wed Aug 27 23:03:21 UTC 2014


Hi Joe and others

I updated the tests with putting them in jaxp repo. I also run these tests with security manager and they all passed
http://cr.openjdk.java.net/~tyan/JDK-8051540/webrev01/ <http://cr.openjdk.java.net/~tyan/JDK-8051540/webrev01/>

Also I’d like to propose our way for handling jaxp tests run with security manager.  The way we’d use is creating two targets for running jaxp tests. One is for normal run; which will run all the tests without security manager. One is secure run; the target only run the tests that have to be run with security manager. This could be easy to be handled with adding two targets in makefile. And for most of people they only care about the function. They only need run normal run target. We would run two targets for any of our formal tests like nightly, ci build and jprt tests.
For the tests which can not be run in secure mode(like tests for xsltc direct extension), we'd add testng group called “secure-hostile”. We won’t run these tests in secure mode by bypassing them in secure run target. By this way we could easily transform our tests as usual without additional effort.

Thank you
Tristan 

> On Aug 19, 2014, at 10:32 AM, huizhe wang <huizhe.wang at oracle.com> wrote:
> 
> By the way, the plan has been that all of the JAXP SQE and Unit tests be migrated into [openjdk]/jaxp repo under jaxp/test. Tests currently in the jdk repo shall be moved to jaxp/test as well. I see that your webrev was generated in jdk9/dev/jdk. I hope it doesn't mean you're checking tests into the jdk repo.
> 
> Thanks,
> Joe
> 
> On 8/18/2014 4:42 PM, Tristan Yan wrote:
>> Thanks Joe
>> We intend to replace the base class with test library because that doesn’t look like a real base class but an utilities class.
>> I haven’t tried to run these tests with security manager, I will run them with security manager then get back you soon.
>> Thank you.
>> Tristan
>> 
>>> On Aug 18, 2014, at 4:32 PM, huizhe wang <huizhe.wang at oracle.com <mailto:huizhe.wang at oracle.com>> wrote:
>>> 
>>> 
>> 
> 




More information about the core-libs-dev mailing list