From Jiangning.Liu at amperecomputing.com Fri Jun 22 10:19:46 2018 From: Jiangning.Liu at amperecomputing.com (Jiangning Liu) Date: Fri, 22 Jun 2018 10:19:46 +0000 Subject: Run jtreg against jdk trunk (version 11) Message-ID: I'm trying to build and run jtreg against jdk trunk (version 11), and I got the following failure massage at the stage of building jtreg.jar, CLASSPATH="/root/nightly/jtreg/jtreg/build/classes:/root/nightly/jtreg/jtreg/build/jtharness/build/binaries/lib/javatest.jar" \ /root/nightly/jdk/build/images/jdk/bin/javac -source 1.2 -target 1.1 -Xlint:all,-options -Werror \ -d /root/nightly/jtreg/jtreg/build/classes \ -encoding ISO8859-1 \ ../src/share/classes/com/sun/javatest/regtest/agent/AppletWrapper.java ../src/share/classes/com/sun/javatest/regtest/agent/GetSystemProperty.java ../src/share/classes/com/sun/javatest/regtest/agent/MainWrapper.java ../src/share/classes/com/sun/javatest/regtest/agent/AStatus.java ../src/share/classes/com/sun/javatest/regtest/agent/StringArray.java error: Source option 1.2 is no longer supported. Use 6 or later. error: Target option 1.1 is no longer supported. Use 1.6 or later. It is saying the javac on jdk trunk doesn't doesn't support old versions any longer, so how I can build out jtreg.jar for jdk trunk? In make/jtreg.gmk, I found the followings, and it seems "$(BUILDDIR)/classes.com.sun.javatest.regtest.agent.ok" can't be removed to fix the issue. Any thoughts? $(BUILDDIR)/classes.com.sun.javatest.regtest.ok: \ $(JAVAFILES.com.sun.javatest.regtest-tools) \ $(BUILDDIR)/classes.com.sun.javatest.regtest.agent.ok Thanks, -Jiangning From jonathan.gibbons at oracle.com Fri Jun 22 15:16:58 2018 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Fri, 22 Jun 2018 08:16:58 -0700 Subject: Run jtreg against jdk trunk (version 11) In-Reply-To: References: Message-ID: <2e7e8cc3-cf12-d560-7301-55e50af1bdbe@oracle.com> Use JDK 7 or JDK 8 to build jtreg. -- Jon On 6/22/18 3:19 AM, Jiangning Liu wrote: > I'm trying to build and run jtreg against jdk trunk (version 11), and I got the following failure massage at the stage of building jtreg.jar, > > > CLASSPATH="/root/nightly/jtreg/jtreg/build/classes:/root/nightly/jtreg/jtreg/build/jtharness/build/binaries/lib/javatest.jar" \ > /root/nightly/jdk/build/images/jdk/bin/javac -source 1.2 -target 1.1 -Xlint:all,-options -Werror \ > -d /root/nightly/jtreg/jtreg/build/classes \ > -encoding ISO8859-1 \ > ../src/share/classes/com/sun/javatest/regtest/agent/AppletWrapper.java ../src/share/classes/com/sun/javatest/regtest/agent/GetSystemProperty.java ../src/share/classes/com/sun/javatest/regtest/agent/MainWrapper.java ../src/share/classes/com/sun/javatest/regtest/agent/AStatus.java ../src/share/classes/com/sun/javatest/regtest/agent/StringArray.java > error: Source option 1.2 is no longer supported. Use 6 or later. > error: Target option 1.1 is no longer supported. Use 1.6 or later. > > It is saying the javac on jdk trunk doesn't doesn't support old versions any longer, so how I can build out jtreg.jar for jdk trunk? > > > In make/jtreg.gmk, I found the followings, and it seems "$(BUILDDIR)/classes.com.sun.javatest.regtest.agent.ok" can't be removed to fix the issue. Any thoughts? > > > $(BUILDDIR)/classes.com.sun.javatest.regtest.ok: \ > $(JAVAFILES.com.sun.javatest.regtest-tools) \ > $(BUILDDIR)/classes.com.sun.javatest.regtest.agent.ok > > > Thanks, > > -Jiangning > From jonathan.gibbons at oracle.com Fri Jun 22 22:56:41 2018 From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com) Date: Fri, 22 Jun 2018 22:56:41 +0000 Subject: hg: code-tools/jtreg: Update to JCov 3.0-b05 and Asm 6.2 Message-ID: <201806222256.w5MMuf5B006551@aojmv0008.oracle.com> Changeset: 0efda1a5b13a Author: jjg Date: 2018-06-22 15:56 -0700 URL: http://hg.openjdk.java.net/code-tools/jtreg/rev/0efda1a5b13a Update to JCov 3.0-b05 and Asm 6.2 ! make/Defs.gmk ! make/build-all.sh From jonathan.gibbons at oracle.com Sat Jun 23 00:02:53 2018 From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com) Date: Sat, 23 Jun 2018 00:02:53 +0000 Subject: hg: code-tools/jtreg: use timeoutFactor on the agent communication thread Message-ID: <201806230002.w5N02ru9027718@aojmv0008.oracle.com> Changeset: 00d796007637 Author: jjg Date: 2018-06-22 17:02 -0700 URL: http://hg.openjdk.java.net/code-tools/jtreg/rev/00d796007637 use timeoutFactor on the agent communication thread ! src/share/classes/com/sun/javatest/regtest/agent/AgentServer.java ! src/share/classes/com/sun/javatest/regtest/exec/Agent.java From Jiangning.Liu at amperecomputing.com Mon Jun 25 05:09:08 2018 From: Jiangning.Liu at amperecomputing.com (Jiangning Liu) Date: Mon, 25 Jun 2018 05:09:08 +0000 Subject: About run jtreg test Message-ID: Jon, Now, I'm trying to run jtreg test following http://openjdk.java.net/jtreg/runtests.html, in which it says "The targets all have names of the form jdk_* and langtools_*. You can see a summary of the available targets in the top level test/Makefile.", but I can't find file test/Makefile at http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test . I can find another Makefile at http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test/timeouts/test , so is this the correct one I can use to run test jtreg? Or I need to run anything else instead? Thanks, -Jiangning From Jiangning.Liu at amperecomputing.com Mon Jun 25 08:44:22 2018 From: Jiangning.Liu at amperecomputing.com (Jiangning Liu) Date: Mon, 25 Jun 2018 08:44:22 +0000 Subject: About run jtreg test In-Reply-To: References: Message-ID: BTW, I have some more questions, 1) I just found this http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/plugins/idea/README.md , so usually the jtreg test should be triggered using IntelliJ IDE, or I can just use command line? 2) If I want to do the full test, should I cover all of the test under http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test manually? 3) There are some .gmk files under test folder, so who are using thest .gmk files? I meant I can't find a "driver" to invoke these make files, or I should just directly use jtreg.jar to run the test? Thanks, -Jiangning From: Jiangning Liu Sent: Monday, June 25, 2018 1:09 PM To: jtreg-dev at openjdk.java.net Cc: Jonathan Gibbons Subject: About run jtreg test Jon, Now, I'm trying to run jtreg test following http://openjdk.java.net/jtreg/runtests.html, in which it says "The targets all have names of the form jdk_* and langtools_*. You can see a summary of the available targets in the top level test/Makefile.", but I can't find file test/Makefile at http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test . I can find another Makefile at http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test/timeouts/test , so is this the correct one I can use to run test jtreg? Or I need to run anything else instead? Thanks, -Jiangning From stuart.monteith at linaro.org Mon Jun 25 12:59:29 2018 From: stuart.monteith at linaro.org (Stuart Monteith) Date: Mon, 25 Jun 2018 13:59:29 +0100 Subject: About run jtreg test In-Reply-To: References: Message-ID: Hi, I suggest reading doc/testing.md or html under your source tree. It explains how to configure your build and to run the tests from the command line. It is the most reliable method. BR, Stuart On 25 June 2018 at 09:44, Jiangning Liu wrote: > BTW, I have some more questions, > > > > 1) I just found this http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/plugins/idea/README.md , so usually the jtreg test should be triggered using IntelliJ IDE, or I can just use command line? > > 2) If I want to do the full test, should I cover all of the test under http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test manually? > > 3) There are some .gmk files under test folder, so who are using thest .gmk files? I meant I can't find a "driver" to invoke these make files, or I should just directly use jtreg.jar to run the test? > > > > Thanks, > > -Jiangning > > From: Jiangning Liu > Sent: Monday, June 25, 2018 1:09 PM > To: jtreg-dev at openjdk.java.net > Cc: Jonathan Gibbons > Subject: About run jtreg test > > Jon, > > Now, I'm trying to run jtreg test following http://openjdk.java.net/jtreg/runtests.html, in which it says "The targets all have names of the form jdk_* and langtools_*. You can see a summary of the available targets in the top level test/Makefile.", but I can't find file test/Makefile at http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test . I can find another Makefile at http://hg.openjdk.java.net/code-tools/jtreg/file/00d796007637/test/timeouts/test , so is this the correct one I can use to run test jtreg? Or I need to run anything else instead? > > Thanks, > -Jiangning From jonathan.gibbons at oracle.com Thu Jun 28 22:02:20 2018 From: jonathan.gibbons at oracle.com (jonathan.gibbons at oracle.com) Date: Thu, 28 Jun 2018 22:02:20 +0000 Subject: hg: code-tools/jtreg: 7902198: Improve handling of streams in agent mode Message-ID: <201806282202.w5SM2Kjc022767@aojmv0008.oracle.com> Changeset: 3cffca0e0907 Author: jjg Date: 2018-06-28 15:01 -0700 URL: http://hg.openjdk.java.net/code-tools/jtreg/rev/3cffca0e0907 7902198: Improve handling of streams in agent mode ! make/Defs.gmk ! src/share/classes/com/sun/javatest/regtest/agent/ActionHelper.java ! src/share/classes/com/sun/javatest/regtest/agent/AgentServer.java ! src/share/classes/com/sun/javatest/regtest/agent/CompileActionHelper.java ! src/share/classes/com/sun/javatest/regtest/agent/MainActionHelper.java ! src/share/classes/com/sun/javatest/regtest/exec/CompileAction.java + test/agentout/AgentOut.gmk + test/agentout/AnnoProc.java + test/agentout/CompileTest.java + test/agentout/MainTest.java + test/agentout/TEST.ROOT