test with a 3rd party jar file?

2013-06-24 Thread huizhe wang
Hi, Does anyone know if it's possible to automate a test with a 3rd party jar file on the bootclasspath or java.endorsed.dirs? I have a test that I run manually with Apache Xerces jar. Thanks, Joe Original Message Subject: [JBS] (JDK-8016773) Regression: diff. beh

Re: test with a 3rd party jar file?

2013-06-24 Thread Seán Coffey
e any alternative unless jtreg is able to handle this relatively simple (common?) setup request. regards, Sean. On 24/06/13 18:33, huizhe wang wrote: Hi, Does anyone know if it's possible to automate a test with a 3rd party jar file on the bootclasspath or java.endorsed.dirs? I have a t

Re: test with a 3rd party jar file?

2013-06-24 Thread Rob McKenna
owned upon. I don't see any alternative unless jtreg is able to handle this relatively simple (common?) setup request. regards, Sean. On 24/06/13 18:33, huizhe wang wrote: Hi, Does anyone know if it's possible to automate a test with a 3rd party jar file on the bootclasspath or

Re: test with a 3rd party jar file?

2013-06-24 Thread huizhe wang
dle this relatively simple (common?) setup request. regards, Sean. On 24/06/13 18:33, huizhe wang wrote: Hi, Does anyone know if it's possible to automate a test with a 3rd party jar file on the bootclasspath or java.endorsed.dirs? I have a test that I run manually with Apache Xerces jar.

Re: test with a 3rd party jar file?

2013-06-24 Thread Weijun Wang
On 6/25/13 6:42 AM, Rob McKenna wrote: Some interesting conversations were had lately about shell scripts during Joe Darcy's recent infrastructure tech talk. In particular around the idea of a "jdk.testing" package to provide libraries that would help with the types of operations seen in shell sc

Re: test with a 3rd party jar file?

2013-06-25 Thread huizhe wang
Max, Can you explain how to use your test library to run a simple test such as the one attached with a 3rd party jar on bootclasspath? e.g. Proc pc = Proc.create("Test") .args("-Xbootclasspath/p:"+pathtoXercesImpljar) .start(); is that how 3rd party jar file can be put on t

Re: test with a 3rd party jar file?

2013-06-25 Thread Wang Weijun
That should be enough. Then you only need to waitFor it. --Max 在 Jun 26, 2013,1:10 AM,huizhe wang 写道: > Max, > > Can you explain how to use your test library to run a simple test such as the > one attached with a 3rd party jar on bootclasspath? > > e.g. > Proc pc = Proc.create("Test") >

Re: test with a 3rd party jar file?

2013-06-25 Thread huizhe wang
Thanks! I'll give it a try. Do you plan to backport this to jdk7? -Joe On 6/25/2013 4:31 PM, Wang Weijun wrote: > That should be enough. Then you only need to waitFor it. > > --Max > > 在 Jun 26, 2013,1:10 AM,huizhe wang 写道: > >> Max, >> >> Can you explain how to use your test library to run a si

Re: test with a 3rd party jar file?

2013-06-25 Thread Weijun Wang
On 6/26/13 9:32 AM, huizhe wang wrote: > Thanks! I'll give it a try. Do you plan to backport this to jdk7? No, but you can smuggle it there inside your test. --Max > > -Joe > > On 6/25/2013 4:31 PM, Wang Weijun wrote: >> That should be enough. Then you only need to waitFor it. >> >> --Max >>

Re: test with a 3rd party jar file?

2013-06-25 Thread Weijun Wang
Oh, there is another test library with similar purpose at https://jbs.oracle.com/bugs/browse/JDK-8007142 and it is already on all versions of java. It can launch a Java process, wait for it to finish, and collect all the output (stdout and stderr). Mine takes care of stdin and focus on inter-p

Re: test with a 3rd party jar file?

2013-06-26 Thread Chris Hegarty
The streams package recently added tests for exercising package-private implementation. Top level dir contain the TEST.properties to add to the bootclasspath: http://hg.openjdk.java.net/jdk8/tl/jdk/file/510035b7/test/java/util/stream/boottest/ Example, individual test, whose test is in th

Re: test with a 3rd party jar file?

2013-06-27 Thread huizhe wang
Hi Chris, Thanks for the information! I'll give it a try. On 6/26/2013 6:18 AM, Chris Hegarty wrote: The streams package recently added tests for exercising package-private implementation. Top level dir contain the TEST.properties to add to the bootclasspath: Do you mean TEST.properties ne

Re: test with a 3rd party jar file?

2013-06-27 Thread Chris Hegarty
On 27/06/2013 08:50, huizhe wang wrote: Hi Chris, Thanks for the information! I'll give it a try. On 6/26/2013 6:18 AM, Chris Hegarty wrote: The streams package recently added tests for exercising package-private implementation. Top level dir contain the TEST.properties to add to the bootclas

Re: test with a 3rd party jar file?

2013-06-27 Thread huizhe wang
Thanks Chris for the instructions! Joe On 6/27/2013 3:34 AM, Chris Hegarty wrote: On 27/06/2013 08:50, huizhe wang wrote: Hi Chris, Thanks for the information! I'll give it a try. On 6/26/2013 6:18 AM, Chris Hegarty wrote: The streams package recently added tests for exercising package-priv