From alex.schenkman at oracle.com Mon Oct 15 22:42:46 2012 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Tue, 16 Oct 2012 07:42:46 +0200 Subject: Splitting long argument line into multiple lines In-Reply-To: <507C17CB.5020907@oracle.com> References: <507C17CB.5020907@oracle.com> Message-ID: <507CF3D6.8010900@oracle.com> Hi list, I have a looong argument list to the @run command. Is it possible to split this long argument line into multiple lines? * @run main/othervm -Dfoo=bar -Dfoo2=bar2 .... into someting like: * @run main/oterhvm * -Dfoo=bar * -Dfoo2=bar2 Thanks in advance! From jonathan.gibbons at oracle.com Tue Oct 16 07:40:51 2012 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 16 Oct 2012 07:40:51 -0700 Subject: Splitting long argument line into multiple lines In-Reply-To: <507CF3D6.8010900@oracle.com> References: <507C17CB.5020907@oracle.com> <507CF3D6.8010900@oracle.com> Message-ID: <507D71F3.9030409@oracle.com> On 10/15/2012 10:42 PM, Alex Schenkman wrote: > Hi list, > > I have a looong argument list to the @run command. > Is it possible to split this long argument line into multiple lines? > > * @run main/othervm -Dfoo=bar -Dfoo2=bar2 .... > > into someting like: > > * @run main/oterhvm > * -Dfoo=bar > * -Dfoo2=bar2 > > Thanks in advance! > Should work. Easy enough to try it on a test case. Let me know if it doesn't work. -- Jon From alex.schenkman at oracle.com Wed Oct 17 05:50:56 2012 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Wed, 17 Oct 2012 14:50:56 +0200 Subject: help using @library Message-ID: <507EA9B0.2060501@oracle.com> Hi list, I'm trying to use the @library tag. Here follows my JTREG definition: /** * @test Bar.java * @library ./junit-4.jar * @build Bar * @run main/othervm * com.oracle.foo.Bar */ Here is the failing output (shortened): #Test Results (version 2) #-----testdescription----- $file=/workspace/test/com/oracle/foo/Bar.java $root=/workspace/test library=./junit-4.jar run=USER_SPECIFIED build Bar\nUSER_SPECIFIED main/othervm com.oracle.foo.Bar\n source=Bar.java #-----environment----- #section:compile ----------messages:(3/163)---------- command: compile /workspace/test/com/oracle/foo/Bar.java reason: .class file out of date or does not exist elapsed time (seconds): 0.4 ----------System.out:(0/0)---------- ----------System.err:(9/429)---------- /workspace/test/com/oracle/foo/Bar.java:34: error: package org.junit does not exist import static org.junit.Assert.*; The file /workspace/test/junit-4.jar exists. Thanks in advance! PS: If you are inside Oracle, look at this test: jdk/test/closed/java/awt/Graphics2D/DrawRenderedImageXlate.java -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20121017/6dd85609/attachment.html From jonathan.gibbons at oracle.com Wed Oct 17 07:30:39 2012 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Wed, 17 Oct 2012 07:30:39 -0700 Subject: help using @library In-Reply-To: <507EA9B0.2060501@oracle.com> References: <507EA9B0.2060501@oracle.com> Message-ID: <507EC10F.3060207@oracle.com> Adding .jar files into any JDK repo is likely to be met with resistance. Currently, JDK provides some limited support for JUnit, but due to licensing issues, we're changing to support TestNG support instead. You might want to consider using TestNG in your tests. -- Jon On 10/17/2012 05:50 AM, Alex Schenkman wrote: > Hi list, > > I'm trying to use the @library tag. > Here follows my JTREG definition: > > /** > * @test Bar.java > * @library ./junit-4.jar > * @build Bar > * @run main/othervm > * com.oracle.foo.Bar > */ > > > Here is the failing output (shortened): > #Test Results (version 2) > #-----testdescription----- > $file=/workspace/test/com/oracle/foo/Bar.java > $root=/workspace/test > library=./junit-4.jar > run=USER_SPECIFIED build Bar\nUSER_SPECIFIED main/othervm com.oracle.foo.Bar\n > source=Bar.java > #-----environment----- > > #section:compile > ----------messages:(3/163)---------- > command: compile /workspace/test/com/oracle/foo/Bar.java > reason: .class file out of date or does not exist > elapsed time (seconds): 0.4 > ----------System.out:(0/0)---------- > ----------System.err:(9/429)---------- > /workspace/test/com/oracle/foo/Bar.java:34: error: package org.junit does not exist > import static org.junit.Assert.*; > > The file /workspace/test/junit-4.jar exists. > > Thanks in advance! > > > PS: If you are inside Oracle, look at this test: > jdk/test/closed/java/awt/Graphics2D/DrawRenderedImageXlate.java > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20121017/139dba67/attachment.html From alex.schenkman at oracle.com Thu Oct 18 07:05:57 2012 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Thu, 18 Oct 2012 16:05:57 +0200 Subject: How to use assertions from testng.jar? Message-ID: <50800CC5.3020608@oracle.com> This build includes testng.jar. http://jre.us.oracle.com/java/re/jtreg/4.1/nightly/bundles/ I want to use the assertions from TestNG. What tag should I use to indicate this dependency? Thanks! From alex.schenkman at oracle.com Thu Oct 18 07:07:08 2012 From: alex.schenkman at oracle.com (Alex Schenkman) Date: Thu, 18 Oct 2012 16:07:08 +0200 Subject: Classpath for @run main/othervm Message-ID: <50800D0C.3060702@oracle.com> Hi list, Where/how can I see the classpath that JTREG uses when launching a test in othervm? Thanks again! From Alan.Bateman at oracle.com Thu Oct 18 08:36:07 2012 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Thu, 18 Oct 2012 16:36:07 +0100 Subject: Classpath for @run main/othervm In-Reply-To: <50800D0C.3060702@oracle.com> References: <50800D0C.3060702@oracle.com> Message-ID: <508021E7.30201@oracle.com> On 18/10/2012 15:07, Alex Schenkman wrote: > Hi list, > > Where/how can I see the classpath that JTREG uses when launching a > test in othervm? > > Thanks again! Are you looking for the java.class.path property? -Alan