From jonathan.gibbons at oracle.com Mon Feb 3 16:55:43 2014 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Mon, 03 Feb 2014 16:55:43 -0800 Subject: stack strace when test timeout In-Reply-To: <52E778DD.1050007@oracle.com> References: <52E24719.3040306@oracle.com> <52E778DD.1050007@oracle.com> Message-ID: <52F03A8F.3080003@oracle.com> Tristan, You can file bug reports in bugs.openjdk.java.net, project CODETOOLS, component tools, subcomponent jtreg. There is already an issue very close to what you describe https://bugs.openjdk.java.net/browse/CODETOOLS-7900267 What are the tests where you are seeing the issue? In particular, how are you running the tests? othervm or agentvm? -- Jon On 01/28/2014 01:31 AM, Tristan Yan wrote: > Hi Jon > Could you update this? > Thank you very much. > Tristan > > On 01/24/2014 06:57 PM, Tristan Yan wrote: >> Hi Jon >> Recently I'm working on regression bugs. I found some regression bugs >> failed with timeout very randomly. It's very hard to reproduce the >> failure even we try more than thousand times retry. This make me >> wonder is there any way we can setup for jtreg we can get java stack >> strace when timeout occurs. This definitely will help to analysis the >> failure. Is there a config that already exists in jtreg? Can we >> expect it if it is not. >> Thank you >> Tristan > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140203/ffbda13a/attachment.html From tristan.yan at oracle.com Mon Feb 3 17:50:35 2014 From: tristan.yan at oracle.com (Tristan Yan) Date: Mon, 3 Feb 2014 17:50:35 -0800 (PST) Subject: =?gb2312?B?tPC4tDogc3RhY2sgc3RyYWNlIHdoZW4gdGVzdCB0aW1lb3V0?= In-Reply-To: <52F03A8F.3080003@oracle.com> References: <52E24719.3040306@oracle.com> <52E778DD.1050007@oracle.com> <52F03A8F.3080003@oracle.com> Message-ID: <9f1ed757-9ecd-408e-9fae-7e6188cb7a41@default> Thank you Jon This issue is exactly what I want. Do you plan to add this soon? Regards Tristan ? ??????: Jonathan Gibbons ????????: Tuesday, February 04, 2014 8:56 AM ??????: Tristan Yan; jtreg-use at openjdk.java.net; Ken Chen; Sandeep Konchady; Alexandre (Shura) Iline ????: Re: stack strace when test timeout ? Tristan, You can file bug reports in bugs.openjdk.java.net, project CODETOOLS, component tools, subcomponent jtreg. There is already an issue very close to what you describe https://bugs.openjdk.java.net/browse/CODETOOLS-7900267 What are the tests where you are seeing the issue?? In particular, how are you running the tests? othervm or agentvm? -- Jon On 01/28/2014 01:31 AM, Tristan Yan wrote: Hi Jon Could you update this? Thank you very much. Tristan On 01/24/2014 06:57 PM, Tristan Yan wrote: Hi Jon Recently I'm working on regression bugs. I found some regression bugs failed with timeout very randomly. It's very hard to reproduce the failure even we try more than thousand times retry. This make me wonder is there any way we can setup for jtreg we can get java stack strace when timeout occurs. This definitely will help to analysis the failure. Is there a config that already exists in jtreg? Can we expect it if it is not. Thank you Tristan ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140203/63639a44/attachment.html From medi.montaseri at hds.com Mon Feb 24 19:21:53 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Tue, 25 Feb 2014 03:21:53 +0000 Subject: openJDK8 jtreg test failure Message-ID: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com> Hi, I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH - I confirm that my 1.7 javac is the first to be found - I confirm to have jtreg ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform - no JT_HOME, no JAVA_HOME is set. They are null - After running "bash configure --with-jtreg --prefix=/some/dir" I see the following in my build/linux-x86_64-normal-server-release/config.log config.log:configure:16652: checking for jtreg config.log:configure:16670: found /usr/bin/jtreg Anyways...the make continues and finishes with some happy messages... ----- Build times ------- Start 2014-02-24 19:12:15 End 2014-02-24 19:12:20 00:00:00 corba 00:00:00 demos 00:00:01 hotspot 00:00:02 images 00:00:00 install 00:00:00 jaxp 00:00:00 jaxws 00:00:02 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'install' then I try to run the suggested regression test and it fails.... cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[2]: Target `jtreg_tests' not remade because of errors. make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. Thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140225/74c3b1db/attachment.html From jonathan.gibbons at oracle.com Mon Feb 24 19:48:18 2014 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Mon, 24 Feb 2014 19:48:18 -0800 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com> Message-ID: <530C1282.8020507@oracle.com> Medi, I can't speak to why "configure --with-jtreg" and the make command are not playing nice with each other, but it does look like you are not using a normal install of jtreg. As a workaround until others can help you with the configure and make commands, you might want to download a build of jtreg such as from AdoptOpenJDK, and set JT_HOME to point to it before running make to run the tests. You can find the download link for the AdoptOpenJDK build on the main jtreg page, here: http://openjdk.java.net/jtreg/ or if you want to save a couple of clicks, look for the "Last Successful Artifacts" on this page: https://adopt-openjdk.ci.cloudbees.com/view/OpenJDK/job/jtreg/ -- Jon On 02/24/2014 07:21 PM, Medi Montaseri wrote: > Hi, > > I have successfully build openJDK8 on Debian 7.3 but failing on > "regression test" as follows > > - I am getting the src via 'hg from clone > http://hg.openjdk.java.net/jdk8/jdk8" > - Before I run "bash configure" I export > PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH > - I confirm that my 1.7 javac is the first to be found > - I confirm to have jtreg > ii jtreg 4.1-2 all Regression Test > Harness for the OpenJDK platform > - no JT_HOME, no JAVA_HOME is set. They are null > - After running "bash configure --with-jtreg --prefix=/some/dir" > I see the following in my > build/linux-x86_64-normal-server-release/config.log > config.log:configure:16652: checking for jtreg > config.log:configure:16670: found /usr/bin/jtreg > > Anyways...the make continues and finishes with some happy messages... > > ----- Build times ------- > Start 2014-02-24 19:12:15 > End 2014-02-24 19:12:20 > 00:00:00 corba > 00:00:00 demos > 00:00:01 hotspot > 00:00:02 images > 00:00:00 install > 00:00:00 jaxp > 00:00:00 jaxws > 00:00:02 jdk > 00:00:00 langtools > 00:00:00 nashorn > 00:00:05 TOTAL > ------------------------- > Finished building OpenJDK for target 'install' > > > then I try to run the suggested regression test and it fails.... > > cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all > make -k -C ../jdk/test TEST=jdk_all jdk_all > make[1]: Entering directory > `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > for each in jdk_all; do \ > make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each > jtreg_tests; \ > done > make[2]: Entering directory > `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[2]: *** No rule to make target > `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by > `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. > make[2]: Target `jtreg_tests' not remade because of errors. > make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[1]: *** [jdk_all] Error 2 > make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make: *** [jdk_all] Error 2 > > I googled around, there are some other hits on this, but I could not > find any resolution. Any clue is appreciated. > > Thanks > Medi > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140224/b832dfb2/attachment.html From mike.duigou at oracle.com Mon Feb 24 22:10:29 2014 From: mike.duigou at oracle.com (Mike Duigou) Date: Mon, 24 Feb 2014 22:10:29 -0800 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com> Message-ID: <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com> Hi Medi; You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. HTH, Mike On Feb 24 2014, at 19:21 , Medi Montaseri wrote: > Hi, > > I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows > > - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" > - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH > - I confirm that my 1.7 javac is the first to be found > - I confirm to have jtreg > ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform > - no JT_HOME, no JAVA_HOME is set. They are null > - After running "bash configure --with-jtreg --prefix=/some/dir" > I see the following in my build/linux-x86_64-normal-server-release/config.log > config.log:configure:16652: checking for jtreg > config.log:configure:16670: found /usr/bin/jtreg > > Anyways...the make continues and finishes with some happy messages... > > ----- Build times ------- > Start 2014-02-24 19:12:15 > End 2014-02-24 19:12:20 > 00:00:00 corba > 00:00:00 demos > 00:00:01 hotspot > 00:00:02 images > 00:00:00 install > 00:00:00 jaxp > 00:00:00 jaxws > 00:00:02 jdk > 00:00:00 langtools > 00:00:00 nashorn > 00:00:05 TOTAL > ------------------------- > Finished building OpenJDK for target 'install' > > > then I try to run the suggested regression test and it fails.... > > cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all > make -k -C ../jdk/test TEST=jdk_all jdk_all > make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > for each in jdk_all; do \ > make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ > done > make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. > make[2]: Target `jtreg_tests' not remade because of errors. > make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[1]: *** [jdk_all] Error 2 > make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make: *** [jdk_all] Error 2 > > I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. > > Thanks > Medi > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140224/8ad9b3a9/attachment.html From medi.montaseri at hds.com Tue Feb 25 11:20:17 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Tue, 25 Feb 2014 19:20:17 +0000 Subject: openJDK8 jtreg test failure In-Reply-To: <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com> Message-ID: <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com> thanks Mike, I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls jtdiff* jtreg* mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version javac 1.6.0_26 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version jtreg, version 4.0 dev b00 Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Monday, February 24, 2014 10:10 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure Hi Medi; You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. HTH, Mike On Feb 24 2014, at 19:21 , Medi Montaseri > wrote: Hi, I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH - I confirm that my 1.7 javac is the first to be found - I confirm to have jtreg ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform - no JT_HOME, no JAVA_HOME is set. They are null - After running "bash configure --with-jtreg --prefix=/some/dir" I see the following in my build/linux-x86_64-normal-server-release/config.log config.log:configure:16652: checking for jtreg config.log:configure:16670: found /usr/bin/jtreg Anyways...the make continues and finishes with some happy messages... ----- Build times ------- Start 2014-02-24 19:12:15 End 2014-02-24 19:12:20 00:00:00 corba 00:00:00 demos 00:00:01 hotspot 00:00:02 images 00:00:00 install 00:00:00 jaxp 00:00:00 jaxws 00:00:02 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'install' then I try to run the suggested regression test and it fails.... cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[2]: Target `jtreg_tests' not remade because of errors. make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. Thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140225/9c9e2671/attachment-0001.html From medi.montaseri at hds.com Tue Feb 25 14:03:58 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Tue, 25 Feb 2014 22:03:58 +0000 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com> Message-ID: <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> update... I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Some progress was made, but required some hand holding, namely bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see config.log:configure:16509: checking for jtreg config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' config.log:JT_HOME='/opt/jtreg/jtreg-4.2' and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd ....bunch of lines omitted.... CODE: ${testExitCode}"; exit ${testExitCode} Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. So to recap: - upgraded jtreg(1) - exported JT_HOME and JT_JAVA, - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading - what does it mean by JDK not found. Thanks Medi ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 11:20 AM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure thanks Mike, I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls jtdiff* jtreg* mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version javac 1.6.0_26 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version jtreg, version 4.0 dev b00 Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Monday, February 24, 2014 10:10 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure Hi Medi; You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. HTH, Mike On Feb 24 2014, at 19:21 , Medi Montaseri > wrote: Hi, I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH - I confirm that my 1.7 javac is the first to be found - I confirm to have jtreg ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform - no JT_HOME, no JAVA_HOME is set. They are null - After running "bash configure --with-jtreg --prefix=/some/dir" I see the following in my build/linux-x86_64-normal-server-release/config.log config.log:configure:16652: checking for jtreg config.log:configure:16670: found /usr/bin/jtreg Anyways...the make continues and finishes with some happy messages... ----- Build times ------- Start 2014-02-24 19:12:15 End 2014-02-24 19:12:20 00:00:00 corba 00:00:00 demos 00:00:01 hotspot 00:00:02 images 00:00:00 install 00:00:00 jaxp 00:00:00 jaxws 00:00:02 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'install' then I try to run the suggested regression test and it fails.... cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[2]: Target `jtreg_tests' not remade because of errors. make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. Thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140225/048d0bf0/attachment.html From jonathan.gibbons at oracle.com Tue Feb 25 14:09:42 2014 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 25 Feb 2014 14:09:42 -0800 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> Message-ID: <530D14A6.9030301@oracle.com> The win32 is a red herring that you can safely ignore. It has been there for historical reasons, but these days, the script is the same on all platforms. In the latest version of jtreg, we have started the transition to removing the platform component from the pathname altogether, by adding a top level bin directory, but it may be a while before all the downstream systems catch up and we can remove the old platform-"specific" directories. I'll notify the AdoptOpenJDK folk about the weird version string. -- Jon On 02/25/2014 02:03 PM, Medi Montaseri wrote: > update... > > I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 > > mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version > jtreg, version 4.0 dev b00 > Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar > Running on platform version 1.7.0_25 from > /usr/lib/jvm/java-7-openjdk-amd64/jre. > Built with 1.7.0_25 on 02/23/2014 09:12 PM. > Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights > reserved. > Use is subject to license terms. > TestNG: version 6.8-201210030754 > > Some progress was made, but required some hand holding, namely > > bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the > config where I see > > config.log:configure:16509: checking for jtreg > config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg > config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 > --prefix=/home/mmontaseri/work/bug-91383/depot4' > config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' > config.log:JT_HOME='/opt/jtreg/jtreg-4.2' > > and "make all" complete|s successfully, but "|*||*|||cd test && make > PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with > > mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make > PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all > make -k -C ../jdk/test TEST=jdk_all jdk_all > make[1]: Entering directory > `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > for each in jdk_all; do \ > make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each > jtreg_tests; \ > done > make[2]: Entering directory > `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > ( \ > ( JT_HOME=/opt/jtreg/jtreg-4.2; \ > export > JT_HOME; \ > /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ > -agentvm -a -ea -esa -v:fail,error,time > -retain:fail,error -ignore:quiet -timeoutFactor:4 > -J-Xmx512m \ > -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ > -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ > -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image > \ > -exclude:ProblemList.txt \ > -vmoption:-Xmx512m \ > :jdk_all \ > ) ; \ > ( jtregExitCode=$? && > _summary="/home/mmontaseri/work/bug-91383/jdk8/jd > ....bunch of lines omitted.... > CODE: ${testExitCode}"; exit ${testExitCode} > Error: JDK not found: > /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image > Missing file: > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt > EXIT CODE: 5 > EXIT CODE: 5 > make[2]: *** [jtreg_tests] Error 5 > make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[1]: *** [jdk_all] Error 2 > make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make: *** [jdk_all] Error 2 > > Note that make and jtreg(1) are not playing nice and sharing. I had to > set JT_HOME and JT_JAVA to get to this point. > > So to recap: > - upgraded jtreg(1) > - exported JT_HOME and JT_JAVA, > - why is there a reference to win32, we aint got no win32 around here, > I am running on a linux 64 bit. totally misleading > - what does it mean by JDK not found. > > Thanks > Medi > > > > | > ------------------------------------------------------------------------ > *From:* Medi Montaseri > *Sent:* Tuesday, February 25, 2014 11:20 AM > *To:* Mike Duigou > *Cc:* jtreg-use at openjdk.java.net > *Subject:* RE: openJDK8 jtreg test failure > > thanks Mike, > > I am not finding any 4.1b8 version at > https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ > > I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 > dev b00 > > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls > jtdiff* jtreg* > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo > $JT_HOME # nothing set here > > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo > $JAVA_HOME # nothing set > > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version > javac 1.6.0_26 > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version > jtreg, version 4.0 dev b00 > Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar > Running on platform version 1.6.0_26 from > /usr/lib/jvm/java-6-sun-1.6.0.26/jre. > Built with 1.7.0_25 on 02/23/2014 09:12 PM. > Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights > reserved. > Use is subject to license terms. > TestNG: version 6.8-201210030754 > > ------------------------------------------------------------------------ > *From:* Mike Duigou [mike.duigou at oracle.com] > *Sent:* Monday, February 24, 2014 10:10 PM > *To:* Medi Montaseri > *Cc:* jtreg-use at openjdk.java.net > *Subject:* Re: openJDK8 jtreg test failure > > Hi Medi; > > You will need to upgrade to a newer version of JTReg. The current > version is 4.1b8. I put in a request to the debian maintainers several > months ago. The 4.1b2 version is several years old. You can get > current builds of JTReg produced by the AdoptOpenJDK group here: > > https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ > > When you have installed jtreg into a local directory you provide that > location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. > > HTH, > > Mike > > On Feb 24 2014, at 19:21 , Medi Montaseri > wrote: > >> Hi, >> >> I have successfully build openJDK8 on Debian 7.3 but failing on >> "regression test" as follows >> >> - I am getting the src via 'hg from clone >> http://hg.openjdk.java.net/jdk8/jdk8 >> " >> - Before I run "bash configure" I export >> PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH >> - I confirm that my 1.7 javac is the first to be found >> - I confirm to have jtreg >> ii jtreg 4.1-2 all Regression Test Harness >> for the OpenJDK platform >> - no JT_HOME, no JAVA_HOME is set. They are null >> - After running "bash configure --with-jtreg --prefix=/some/dir" >> I see the following in my >> build/linux-x86_64-normal-server-release/config.log >> config.log:configure:16652: checking for jtreg >> config.log:configure:16670: found /usr/bin/jtreg >> >> Anyways...the make continues and finishes with some happy messages... >> >> ----- Build times ------- >> Start 2014-02-24 19:12:15 >> End 2014-02-24 19:12:20 >> 00:00:00 corba >> 00:00:00 demos >> 00:00:01 hotspot >> 00:00:02 images >> 00:00:00 install >> 00:00:00 jaxp >> 00:00:00 jaxws >> 00:00:02 jdk >> 00:00:00 langtools >> 00:00:00 nashorn >> 00:00:05 TOTAL >> ------------------------- >> Finished building OpenJDK for target 'install' >> >> >> then I try to run the suggested regression test and it fails.... >> >> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >> make -k -C ../jdk/test TEST=jdk_all jdk_all >> make[1]: Entering directory >> `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> echo "Running tests: jdk_all" >> Running tests: jdk_all >> for each in jdk_all; do \ >> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each >> jtreg_tests; \ >> done >> make[2]: Entering directory >> `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[2]: *** No rule to make target >> `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by >> `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. >> make[2]: Target `jtreg_tests' not remade because of errors. >> make[2]: Leaving directory >> `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[1]: *** [jdk_all] Error 2 >> make[1]: Leaving directory >> `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make: *** [jdk_all] Error 2 >> >> I googled around, there are some other hits on this, but I could not >> find any resolution. Any clue is appreciated. >> >> Thanks >> Medi >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140225/0619bcbe/attachment-0001.html From medi.montaseri at hds.com Tue Feb 25 17:26:03 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Wed, 26 Feb 2014 01:26:03 +0000 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> Message-ID: <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com> Update.... As you may recall, I was getting a make test error of Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 I changed the "make test" invocation from the fancy way of make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all to X=`pwd`/../build/*/images/j2sdk-image echo $X /home/mmontaseri/work/bug-91383/jdk8/test/../build/linux-x86_64-normal-server-release/images/j2sdk-image X=/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image ls $X ASSEMBLY_EXCEPTION bin/ demo/ include/ jre/ lib/ LICENSE man/ release sample/ src.zip THIRD_PARTY_README make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all ...skipping bunch of stuff... /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 which is different that with the fancy path 'jdk8/test/../build' replaced with 'jdk8/build' The output is difficult to read....just for you amusement I copy it here... mmontaseri at griffin:~/work/bug-91383/jdk8/test> make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 mmontaseri at griffin:~/work/bug-91383/jdk8/test> ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 2:03 PM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure update... I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Some progress was made, but required some hand holding, namely bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see config.log:configure:16509: checking for jtreg config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' config.log:JT_HOME='/opt/jtreg/jtreg-4.2' and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd ....bunch of lines omitted.... CODE: ${testExitCode}"; exit ${testExitCode} Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. So to recap: - upgraded jtreg(1) - exported JT_HOME and JT_JAVA, - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading - what does it mean by JDK not found. Thanks Medi ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 11:20 AM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure thanks Mike, I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls jtdiff* jtreg* mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version javac 1.6.0_26 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version jtreg, version 4.0 dev b00 Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Monday, February 24, 2014 10:10 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure Hi Medi; You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. HTH, Mike On Feb 24 2014, at 19:21 , Medi Montaseri > wrote: Hi, I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH - I confirm that my 1.7 javac is the first to be found - I confirm to have jtreg ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform - no JT_HOME, no JAVA_HOME is set. They are null - After running "bash configure --with-jtreg --prefix=/some/dir" I see the following in my build/linux-x86_64-normal-server-release/config.log config.log:configure:16652: checking for jtreg config.log:configure:16670: found /usr/bin/jtreg Anyways...the make continues and finishes with some happy messages... ----- Build times ------- Start 2014-02-24 19:12:15 End 2014-02-24 19:12:20 00:00:00 corba 00:00:00 demos 00:00:01 hotspot 00:00:02 images 00:00:00 install 00:00:00 jaxp 00:00:00 jaxws 00:00:02 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'install' then I try to run the suggested regression test and it fails.... cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[2]: Target `jtreg_tests' not remade because of errors. make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. Thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140226/481d9b0a/attachment-0001.html From medi.montaseri at hds.com Wed Feb 26 18:33:11 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Thu, 27 Feb 2014 02:33:11 +0000 Subject: How to trim some more fat OpenJDK 8 Message-ID: <923F21021934C74299CD42CCCD265DA1013CAA86@USINDEM101.corp.hds.com> Hi, I am building OpenJDK 8 for a tight environment and would like to have a very small JDK (or I should say JRE) footprint....sort of like headless but even more. I would like to do this from the configure(1) as much as possible. And then resort to rm(1). Here is build result on amd64 Debian 7.3 without any trimming mmontaseri at griffin:~/work/bug-91383/openjdk8> du -sh * 168K bin # these are all symlinks to jvm/bin 269M jvm too much...I need to get down to under 30 Meg. So I build again with configure --disable-headful --disable-debug-symbols --disable-zip-debug-info and I get the following result mmontaseri at griffin:~/work/bug-91383/depot2> du -sh * 168K bin 168M jvm # went down from 296M to 168M That is good, but not good enough....I then looked around and found about 66 Meg of *.diz files. We don't need these. Q1- is there any configure option to not produce *.diz files (gdb debug info for .so files). If not, then I have to rm(1) them. Q2- I see two lib directories under jvm/openjdk-1.8.0-internal mmontaseri at griffin:~/work/bug-91383/depot2/jvm/openjdk-1.8.0-internal> du -sh jre/* 4.0K jre/ASSEMBLY_EXCEPTION 272K jre/bin 97M jre/lib 20K jre/LICENSE 180K jre/THIRD_PARTY_README mmontaseri at griffin:~/work/bug-91383/depot2/jvm/openjdk-1.8.0-internal> du -sh lib 38M lib Can you help me understand the difference between lib/* and jre/lib I see debian has created a set of packages on OpenJDK 7, like so ii openjdk-7-jdk:amd64 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Development Kit (JDK) ii openjdk-7-jre:amd64 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Java runtime, using Hotspot JIT ii openjdk-7-jre-headless:amd64 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Java runtime, using Hotspot JIT (headless) ii openjdk-7-jre-lib 7u25-2.3.10-1~deb7u1 all OpenJDK Java runtime (architecture independent libraries) thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140227/79bcd881/attachment.html From david.holmes at oracle.com Wed Feb 26 18:40:18 2014 From: david.holmes at oracle.com (David Holmes) Date: Thu, 27 Feb 2014 12:40:18 +1000 Subject: How to trim some more fat OpenJDK 8 In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CAA86@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CAA86@USINDEM101.corp.hds.com> Message-ID: <530EA592.5060505@oracle.com> Hi Medi, You've sent this to the wrong mailing list. I would suggest build-dev at openjdk.java.net. David On 27/02/2014 12:33 PM, Medi Montaseri wrote: > Hi, > > I am building OpenJDK 8 for a tight environment and would like to have a > very small JDK (or I should say JRE) footprint....sort of like headless > but even more. > > I would like to do this from the configure(1) as much as possible. And > then resort to rm(1). > > Here is build result on amd64 Debian 7.3 without any trimming > > mmontaseri at griffin:~/work/bug-91383/openjdk8> du -sh * > 168K bin # these are all symlinks to jvm/bin > 269M jvm > > too much...I need to get down to under 30 Meg. So I build again with > configure --disable-headful --disable-debug-symbols > --disable-zip-debug-info > and I get the following result > > mmontaseri at griffin:~/work/bug-91383/depot2> du -sh * > 168K bin > 168M jvm # went down from 296M to 168M > > That is good, but not good enough....I then looked around and found > about 66 Meg of *.diz files. We don't need these. > > Q1- is there any configure option to not produce *.diz files (gdb debug > info for .so files). If not, then I have to rm(1) them. > > Q2- I see two lib directories under jvm/openjdk-1.8.0-internal > mmontaseri at griffin:~/work/bug-91383/depot2/jvm/openjdk-1.8.0-internal> > du -sh jre/* > 4.0K jre/ASSEMBLY_EXCEPTION > 272K jre/bin > 97M jre/lib > 20K jre/LICENSE > 180K jre/THIRD_PARTY_README > mmontaseri at griffin:~/work/bug-91383/depot2/jvm/openjdk-1.8.0-internal> > du -sh lib > 38M lib > Can you help me understand the difference between lib/* and jre/lib > > I see debian has created a set of packages on OpenJDK 7, like so > ii openjdk-7-jdk:amd64 > 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Development > Kit (JDK) > ii openjdk-7-jre:amd64 > 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Java > runtime, using Hotspot JIT > ii openjdk-7-jre-headless:amd64 > 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Java runtime, > using Hotspot JIT (headless) > ii openjdk-7-jre-lib > 7u25-2.3.10-1~deb7u1 all OpenJDK > Java runtime (architecture independent libraries) > > > > thanks > Medi > > From medi.montaseri at hds.com Wed Feb 26 18:43:38 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Thu, 27 Feb 2014 02:43:38 +0000 Subject: How to trim some more fat OpenJDK 8 In-Reply-To: <530EA592.5060505@oracle.com> References: <923F21021934C74299CD42CCCD265DA1013CAA86@USINDEM101.corp.hds.com>, <530EA592.5060505@oracle.com> Message-ID: <923F21021934C74299CD42CCCD265DA1013CAAB2@USINDEM101.corp.hds.com> I think you are right...sorry about that... Medi ________________________________________ From: David Holmes [david.holmes at oracle.com] Sent: Wednesday, February 26, 2014 6:40 PM To: Medi Montaseri; jtreg-use at openjdk.java.net Subject: Re: How to trim some more fat OpenJDK 8 Hi Medi, You've sent this to the wrong mailing list. I would suggest build-dev at openjdk.java.net. David On 27/02/2014 12:33 PM, Medi Montaseri wrote: > Hi, > > I am building OpenJDK 8 for a tight environment and would like to have a > very small JDK (or I should say JRE) footprint....sort of like headless > but even more. > > I would like to do this from the configure(1) as much as possible. And > then resort to rm(1). > > Here is build result on amd64 Debian 7.3 without any trimming > > mmontaseri at griffin:~/work/bug-91383/openjdk8> du -sh * > 168K bin # these are all symlinks to jvm/bin > 269M jvm > > too much...I need to get down to under 30 Meg. So I build again with > configure --disable-headful --disable-debug-symbols > --disable-zip-debug-info > and I get the following result > > mmontaseri at griffin:~/work/bug-91383/depot2> du -sh * > 168K bin > 168M jvm # went down from 296M to 168M > > That is good, but not good enough....I then looked around and found > about 66 Meg of *.diz files. We don't need these. > > Q1- is there any configure option to not produce *.diz files (gdb debug > info for .so files). If not, then I have to rm(1) them. > > Q2- I see two lib directories under jvm/openjdk-1.8.0-internal > mmontaseri at griffin:~/work/bug-91383/depot2/jvm/openjdk-1.8.0-internal> > du -sh jre/* > 4.0K jre/ASSEMBLY_EXCEPTION > 272K jre/bin > 97M jre/lib > 20K jre/LICENSE > 180K jre/THIRD_PARTY_README > mmontaseri at griffin:~/work/bug-91383/depot2/jvm/openjdk-1.8.0-internal> > du -sh lib > 38M lib > Can you help me understand the difference between lib/* and jre/lib > > I see debian has created a set of packages on OpenJDK 7, like so > ii openjdk-7-jdk:amd64 > 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Development > Kit (JDK) > ii openjdk-7-jre:amd64 > 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Java > runtime, using Hotspot JIT > ii openjdk-7-jre-headless:amd64 > 7u25-2.3.10-1~deb7u1 amd64 OpenJDK Java runtime, > using Hotspot JIT (headless) > ii openjdk-7-jre-lib > 7u25-2.3.10-1~deb7u1 all OpenJDK > Java runtime (architecture independent libraries) > > > > thanks > Medi > > From mike.duigou at oracle.com Thu Feb 27 10:12:54 2014 From: mike.duigou at oracle.com (Mike Duigou) Date: Thu, 27 Feb 2014 10:12:54 -0800 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com> Message-ID: <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> What is your current directory? You should be able to run make test TEST="jdk_all" from the top level repo, ie. the same directory as you ran "make images". Running from {root}/test or jdk/test may have issues. You should not have to specify PRODUCT_HOME. Mike On Feb 25 2014, at 17:26 , Medi Montaseri wrote: > Update.... > > As you may recall, I was getting a make test error of > > Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image > Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt > EXIT CODE: 5 > EXIT CODE: 5 > make[2]: *** [jtreg_tests] Error 5 > > I changed the "make test" invocation from the fancy way of > > make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all > > to > > X=`pwd`/../build/*/images/j2sdk-image > echo $X > /home/mmontaseri/work/bug-91383/jdk8/test/../build/linux-x86_64-normal-server-release/images/j2sdk-image > X=/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image > ls $X > ASSEMBLY_EXCEPTION bin/ demo/ include/ jre/ lib/ LICENSE man/ release sample/ src.zip THIRD_PARTY_README > > make PRODUCT_HOME=$X all > make -k -C ../jdk/test TEST=jdk_all jdk_all > make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > ...skipping bunch of stuff... > /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java > Error: No tests selected > Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt > EXIT CODE: 1 > EXIT CODE: 1 > make[2]: *** [jtreg_tests] Error 1 > make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[1]: *** [jdk_all] Error 2 > make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make: *** [jdk_all] Error 2 > > which is different that with the fancy path 'jdk8/test/../build' replaced with 'jdk8/build' > > The output is difficult to read....just for you amusement I copy it here... > > mmontaseri at griffin:~/work/bug-91383/jdk8/test> make PRODUCT_HOME=$X all > make -k -C ../jdk/test TEST=jdk_all jdk_all > make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > for each in jdk_all; do \ > make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ > done > make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > ( \ > ( JT_HOME=/opt/jtreg/jtreg-4.2; \ > export JT_HOME; \ > /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ > -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ > -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ > -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ > -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ > -exclude:ProblemList.txt \ > -vmoption:-Xmx512m \ > :jdk_all \ > ) ; \ > ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ > ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} > /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java > Error: No tests selected > Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt > EXIT CODE: 1 > EXIT CODE: 1 > make[2]: *** [jtreg_tests] Error 1 > make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[1]: *** [jdk_all] Error 2 > make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make: *** [jdk_all] Error 2 > mmontaseri at griffin:~/work/bug-91383/jdk8/test> > > From: Medi Montaseri > Sent: Tuesday, February 25, 2014 2:03 PM > To: Mike Duigou > Cc: jtreg-use at openjdk.java.net > Subject: RE: openJDK8 jtreg test failure > > update... > > I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 > > mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version > jtreg, version 4.0 dev b00 > Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar > Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. > Built with 1.7.0_25 on 02/23/2014 09:12 PM. > Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. > Use is subject to license terms. > TestNG: version 6.8-201210030754 > > Some progress was made, but required some hand holding, namely > > bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see > > config.log:configure:16509: checking for jtreg > config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg > config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' > config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' > config.log:JT_HOME='/opt/jtreg/jtreg-4.2' > > and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with > > mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all > make -k -C ../jdk/test TEST=jdk_all jdk_all > make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > for each in jdk_all; do \ > make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ > done > make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > ( \ > ( JT_HOME=/opt/jtreg/jtreg-4.2; \ > export JT_HOME; \ > /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ > -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ > -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ > -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ > -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ > -exclude:ProblemList.txt \ > -vmoption:-Xmx512m \ > :jdk_all \ > ) ; \ > ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd > ....bunch of lines omitted.... > CODE: ${testExitCode}"; exit ${testExitCode} > Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image > Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt > EXIT CODE: 5 > EXIT CODE: 5 > make[2]: *** [jtreg_tests] Error 5 > make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[1]: *** [jdk_all] Error 2 > make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make: *** [jdk_all] Error 2 > > Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. > > So to recap: > - upgraded jtreg(1) > - exported JT_HOME and JT_JAVA, > - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading > - what does it mean by JDK not found. > > Thanks > Medi > > > > From: Medi Montaseri > Sent: Tuesday, February 25, 2014 11:20 AM > To: Mike Duigou > Cc: jtreg-use at openjdk.java.net > Subject: RE: openJDK8 jtreg test failure > > thanks Mike, > > I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ > I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 > > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls > jtdiff* jtreg* > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here > > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set > > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version > javac 1.6.0_26 > mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version > jtreg, version 4.0 dev b00 > Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar > Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. > Built with 1.7.0_25 on 02/23/2014 09:12 PM. > Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. > Use is subject to license terms. > TestNG: version 6.8-201210030754 > > From: Mike Duigou [mike.duigou at oracle.com] > Sent: Monday, February 24, 2014 10:10 PM > To: Medi Montaseri > Cc: jtreg-use at openjdk.java.net > Subject: Re: openJDK8 jtreg test failure > > Hi Medi; > > You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: > > https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ > > When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. > > HTH, > > Mike > > On Feb 24 2014, at 19:21 , Medi Montaseri wrote: > >> Hi, >> >> I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows >> >> - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" >> - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH >> - I confirm that my 1.7 javac is the first to be found >> - I confirm to have jtreg >> ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform >> - no JT_HOME, no JAVA_HOME is set. They are null >> - After running "bash configure --with-jtreg --prefix=/some/dir" >> I see the following in my build/linux-x86_64-normal-server-release/config.log >> config.log:configure:16652: checking for jtreg >> config.log:configure:16670: found /usr/bin/jtreg >> >> Anyways...the make continues and finishes with some happy messages... >> >> ----- Build times ------- >> Start 2014-02-24 19:12:15 >> End 2014-02-24 19:12:20 >> 00:00:00 corba >> 00:00:00 demos >> 00:00:01 hotspot >> 00:00:02 images >> 00:00:00 install >> 00:00:00 jaxp >> 00:00:00 jaxws >> 00:00:02 jdk >> 00:00:00 langtools >> 00:00:00 nashorn >> 00:00:05 TOTAL >> ------------------------- >> Finished building OpenJDK for target 'install' >> >> >> then I try to run the suggested regression test and it fails.... >> >> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >> make -k -C ../jdk/test TEST=jdk_all jdk_all >> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> echo "Running tests: jdk_all" >> Running tests: jdk_all >> for each in jdk_all; do \ >> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >> done >> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. >> make[2]: Target `jtreg_tests' not remade because of errors. >> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[1]: *** [jdk_all] Error 2 >> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make: *** [jdk_all] Error 2 >> >> I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. >> >> Thanks >> Medi >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140227/d95950d6/attachment-0001.html From medi.montaseri at hds.com Thu Feb 27 14:17:09 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Thu, 27 Feb 2014 22:17:09 +0000 Subject: openJDK8 jtreg test failure In-Reply-To: <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com>, <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> Message-ID: <923F21021934C74299CD42CCCD265DA1013CB10F@USINDEM101.corp.hds.com> Hi Mike, I was following the instruction at http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#testing Looks like running "make test TEST=jdk_all" works much better...I ran this from the top dir, and made sure I export JT_HOME and JT_JAVA as I also got an old jtreg on my box. mmontaseri at griffin:~/work/bug-91383/jdk8> env |grep JT JT_HOME=/opt/jtreg/jtreg-4.2 JT_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/bin/java mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Then I run the make test as mmontaseri at griffin:~/work/bug-91383/jdk8> make test TEST=jdk_all Building OpenJDK for target 'test' in configuration 'linux-x86_64-normal-server-release' ## Starting langtools ## Finished langtools (build time 00:00:00) ## Starting hotspot ## Finished hotspot (build time 00:00:00) ## Starting corba ## Finished corba (build time 00:00:00) ## Starting jaxp ## Finished jaxp (build time 00:00:00) ## Starting jaxws ## Finished jaxws (build time 00:00:01) ## Starting jdk ## Finished jdk (build time 00:00:01) ## Starting demos ## Finished demos (build time 00:00:00) ## Starting nashorn ## Finished nashorn (build time 00:00:00) ## Starting images ## Finished images (build time 00:00:02) ## Starting test /usr/bin/make -k -C ../jdk/test TEST=jdk_all jdk_all make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ /usr/bin/make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[3]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[3]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[3]: Target `jtreg_tests' not remade because of errors. make[3]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** [jdk_all] Error 2 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 ## Finished test (build time 00:00:00) ----- Build times ------- Start 2014-02-27 14:07:30 End 2014-02-27 14:07:34 00:00:00 corba 00:00:00 demos 00:00:00 hotspot 00:00:02 images 00:00:00 jaxp 00:00:01 jaxws 00:00:01 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:00 test 00:00:04 TOTAL ------------------------- Finished building OpenJDK for target 'test' mmontaseri at griffin:~/work/bug-91383/jdk8> So does it mean it failed or it passed? thanks Medi ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Thursday, February 27, 2014 10:12 AM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure What is your current directory? You should be able to run make test TEST="jdk_all" from the top level repo, ie. the same directory as you ran "make images". Running from {root}/test or jdk/test may have issues. You should not have to specify PRODUCT_HOME. Mike On Feb 25 2014, at 17:26 , Medi Montaseri > wrote: Update.... As you may recall, I was getting a make test error of Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 I changed the "make test" invocation from the fancy way of make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all to X=`pwd`/../build/*/images/j2sdk-image echo $X /home/mmontaseri/work/bug-91383/jdk8/test/../build/linux-x86_64-normal-server-release/images/j2sdk-image X=/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image ls $X ASSEMBLY_EXCEPTION bin/ demo/ include/ jre/ lib/ LICENSE man/ release sample/ src.zip THIRD_PARTY_README make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all ...skipping bunch of stuff... /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 which is different that with the fancy path 'jdk8/test/../build' replaced with 'jdk8/build' The output is difficult to read....just for you amusement I copy it here... mmontaseri at griffin:~/work/bug-91383/jdk8/test> make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 mmontaseri at griffin:~/work/bug-91383/jdk8/test> ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 2:03 PM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure update... I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Some progress was made, but required some hand holding, namely bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see config.log:configure:16509: checking for jtreg config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' config.log:JT_HOME='/opt/jtreg/jtreg-4.2' and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd ....bunch of lines omitted.... CODE: ${testExitCode}"; exit ${testExitCode} Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. So to recap: - upgraded jtreg(1) - exported JT_HOME and JT_JAVA, - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading - what does it mean by JDK not found. Thanks Medi ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 11:20 AM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure thanks Mike, I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls jtdiff* jtreg* mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version javac 1.6.0_26 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version jtreg, version 4.0 dev b00 Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Monday, February 24, 2014 10:10 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure Hi Medi; You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. HTH, Mike On Feb 24 2014, at 19:21 , Medi Montaseri > wrote: Hi, I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH - I confirm that my 1.7 javac is the first to be found - I confirm to have jtreg ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform - no JT_HOME, no JAVA_HOME is set. They are null - After running "bash configure --with-jtreg --prefix=/some/dir" I see the following in my build/linux-x86_64-normal-server-release/config.log config.log:configure:16652: checking for jtreg config.log:configure:16670: found /usr/bin/jtreg Anyways...the make continues and finishes with some happy messages... ----- Build times ------- Start 2014-02-24 19:12:15 End 2014-02-24 19:12:20 00:00:00 corba 00:00:00 demos 00:00:01 hotspot 00:00:02 images 00:00:00 install 00:00:00 jaxp 00:00:00 jaxws 00:00:02 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'install' then I try to run the suggested regression test and it fails.... cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[2]: Target `jtreg_tests' not remade because of errors. make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. Thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140227/2bd9d6bd/attachment-0001.html From mike.duigou at oracle.com Thu Feb 27 15:08:25 2014 From: mike.duigou at oracle.com (Mike Duigou) Date: Thu, 27 Feb 2014 15:08:25 -0800 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CB10F@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com>, <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB10F@USINDEM101.corp.hds.com> Message-ID: <4B4E5B39-03BB-459A-B4FB-F9B859C324B5@oracle.com> On Feb 27 2014, at 14:17 , Medi Montaseri wrote: > Hi Mike, > > I was following the instruction at http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#testing I will try to get these instructions updated. > > Looks like running "make test TEST=jdk_all" works much better...I ran this from the top dir, and made sure I export JT_HOME and JT_JAVA as I also got an old jtreg on my box. > > mmontaseri at griffin:~/work/bug-91383/jdk8> env |grep JT > JT_HOME=/opt/jtreg/jtreg-4.2 > JT_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/bin/java > This should not be necessary if you configure --with-jtreg=/opt/jtreg/jtreg-4.2 > mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version > jtreg, version 4.0 dev b00 > Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar > Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. > Built with 1.7.0_25 on 02/23/2014 09:12 PM. > Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. > Use is subject to license terms. > TestNG: version 6.8-201210030754 > > > Then I run the make test as > > mmontaseri at griffin:~/work/bug-91383/jdk8> make test TEST=jdk_all > Building OpenJDK for target 'test' in configuration 'linux-x86_64-normal-server-release' > > ## Starting langtools > ## Finished langtools (build time 00:00:00) > > ## Starting hotspot > ## Finished hotspot (build time 00:00:00) > > ## Starting corba > ## Finished corba (build time 00:00:00) > > ## Starting jaxp > ## Finished jaxp (build time 00:00:00) > > ## Starting jaxws > ## Finished jaxws (build time 00:00:01) > > ## Starting jdk > ## Finished jdk (build time 00:00:01) > > ## Starting demos > ## Finished demos (build time 00:00:00) > > ## Starting nashorn > ## Finished nashorn (build time 00:00:00) > > ## Starting images > ## Finished images (build time 00:00:02) > > ## Starting test > /usr/bin/make -k -C ../jdk/test TEST=jdk_all jdk_all > make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > for each in jdk_all; do \ > /usr/bin/make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ > done > make[3]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[3]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. This looks like the configure was done without --with-jtreg. > make[3]: Target `jtreg_tests' not remade because of errors. > make[3]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[2]: *** [jdk_all] Error 2 > make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > make[1]: *** [jdk_all] Error 2 > ## Finished test (build time 00:00:00) > > ----- Build times ------- > Start 2014-02-27 14:07:30 > End 2014-02-27 14:07:34 > 00:00:00 corba > 00:00:00 demos > 00:00:00 hotspot > 00:00:02 images > 00:00:00 jaxp > 00:00:01 jaxws > 00:00:01 jdk > 00:00:00 langtools > 00:00:00 nashorn > 00:00:00 test > 00:00:04 TOTAL > ------------------------- > Finished building OpenJDK for target 'test' > mmontaseri at griffin:~/work/bug-91383/jdk8> > > So does it mean it failed or it passed? Sorry to bear bad news but it failed entirely and no tests were run. :-( Mike > > thanks > Medi > > From: Mike Duigou [mike.duigou at oracle.com] > Sent: Thursday, February 27, 2014 10:12 AM > To: Medi Montaseri > Cc: jtreg-use at openjdk.java.net > Subject: Re: openJDK8 jtreg test failure > > What is your current directory? > > You should be able to run > > make test TEST="jdk_all" > > from the top level repo, ie. the same directory as you ran "make images". > > Running from {root}/test or jdk/test may have issues. You should not have to specify PRODUCT_HOME. > > Mike > > On Feb 25 2014, at 17:26 , Medi Montaseri wrote: > >> Update.... >> >> As you may recall, I was getting a make test error of >> >> Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image >> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >> EXIT CODE: 5 >> EXIT CODE: 5 >> make[2]: *** [jtreg_tests] Error 5 >> >> I changed the "make test" invocation from the fancy way of >> >> make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >> >> to >> >> X=`pwd`/../build/*/images/j2sdk-image >> echo $X >> /home/mmontaseri/work/bug-91383/jdk8/test/../build/linux-x86_64-normal-server-release/images/j2sdk-image >> X=/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image >> ls $X >> ASSEMBLY_EXCEPTION bin/ demo/ include/ jre/ lib/ LICENSE man/ release sample/ src.zip THIRD_PARTY_README >> >> make PRODUCT_HOME=$X all >> make -k -C ../jdk/test TEST=jdk_all jdk_all >> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> echo "Running tests: jdk_all" >> Running tests: jdk_all >> ...skipping bunch of stuff... >> /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java >> Error: No tests selected >> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >> EXIT CODE: 1 >> EXIT CODE: 1 >> make[2]: *** [jtreg_tests] Error 1 >> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[1]: *** [jdk_all] Error 2 >> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make: *** [jdk_all] Error 2 >> >> which is different that with the fancy path 'jdk8/test/../build' replaced with 'jdk8/build' >> >> The output is difficult to read....just for you amusement I copy it here... >> >> mmontaseri at griffin:~/work/bug-91383/jdk8/test> make PRODUCT_HOME=$X all >> make -k -C ../jdk/test TEST=jdk_all jdk_all >> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> echo "Running tests: jdk_all" >> Running tests: jdk_all >> for each in jdk_all; do \ >> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >> done >> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> ( \ >> ( JT_HOME=/opt/jtreg/jtreg-4.2; \ >> export JT_HOME; \ >> /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ >> -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ >> -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ >> -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ >> -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ >> -exclude:ProblemList.txt \ >> -vmoption:-Xmx512m \ >> :jdk_all \ >> ) ; \ >> ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ >> ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} >> /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java >> Error: No tests selected >> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >> EXIT CODE: 1 >> EXIT CODE: 1 >> make[2]: *** [jtreg_tests] Error 1 >> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[1]: *** [jdk_all] Error 2 >> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make: *** [jdk_all] Error 2 >> mmontaseri at griffin:~/work/bug-91383/jdk8/test> >> >> From: Medi Montaseri >> Sent: Tuesday, February 25, 2014 2:03 PM >> To: Mike Duigou >> Cc: jtreg-use at openjdk.java.net >> Subject: RE: openJDK8 jtreg test failure >> >> update... >> >> I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 >> >> mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version >> jtreg, version 4.0 dev b00 >> Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar >> Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. >> Built with 1.7.0_25 on 02/23/2014 09:12 PM. >> Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. >> Use is subject to license terms. >> TestNG: version 6.8-201210030754 >> >> Some progress was made, but required some hand holding, namely >> >> bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see >> >> config.log:configure:16509: checking for jtreg >> config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg >> config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' >> config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' >> config.log:JT_HOME='/opt/jtreg/jtreg-4.2' >> >> and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with >> >> mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >> make -k -C ../jdk/test TEST=jdk_all jdk_all >> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> echo "Running tests: jdk_all" >> Running tests: jdk_all >> for each in jdk_all; do \ >> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >> done >> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> ( \ >> ( JT_HOME=/opt/jtreg/jtreg-4.2; \ >> export JT_HOME; \ >> /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ >> -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ >> -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ >> -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ >> -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ >> -exclude:ProblemList.txt \ >> -vmoption:-Xmx512m \ >> :jdk_all \ >> ) ; \ >> ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd >> ....bunch of lines omitted.... >> CODE: ${testExitCode}"; exit ${testExitCode} >> Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image >> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >> EXIT CODE: 5 >> EXIT CODE: 5 >> make[2]: *** [jtreg_tests] Error 5 >> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[1]: *** [jdk_all] Error 2 >> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make: *** [jdk_all] Error 2 >> >> Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. >> >> So to recap: >> - upgraded jtreg(1) >> - exported JT_HOME and JT_JAVA, >> - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading >> - what does it mean by JDK not found. >> >> Thanks >> Medi >> >> >> >> From: Medi Montaseri >> Sent: Tuesday, February 25, 2014 11:20 AM >> To: Mike Duigou >> Cc: jtreg-use at openjdk.java.net >> Subject: RE: openJDK8 jtreg test failure >> >> thanks Mike, >> >> I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ >> I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 >> >> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls >> jtdiff* jtreg* >> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here >> >> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set >> >> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version >> javac 1.6.0_26 >> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version >> jtreg, version 4.0 dev b00 >> Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar >> Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. >> Built with 1.7.0_25 on 02/23/2014 09:12 PM. >> Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. >> Use is subject to license terms. >> TestNG: version 6.8-201210030754 >> >> From: Mike Duigou [mike.duigou at oracle.com] >> Sent: Monday, February 24, 2014 10:10 PM >> To: Medi Montaseri >> Cc: jtreg-use at openjdk.java.net >> Subject: Re: openJDK8 jtreg test failure >> >> Hi Medi; >> >> You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: >> >> https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ >> >> When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. >> >> HTH, >> >> Mike >> >> On Feb 24 2014, at 19:21 , Medi Montaseri wrote: >> >>> Hi, >>> >>> I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows >>> >>> - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" >>> - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH >>> - I confirm that my 1.7 javac is the first to be found >>> - I confirm to have jtreg >>> ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform >>> - no JT_HOME, no JAVA_HOME is set. They are null >>> - After running "bash configure --with-jtreg --prefix=/some/dir" >>> I see the following in my build/linux-x86_64-normal-server-release/config.log >>> config.log:configure:16652: checking for jtreg >>> config.log:configure:16670: found /usr/bin/jtreg >>> >>> Anyways...the make continues and finishes with some happy messages... >>> >>> ----- Build times ------- >>> Start 2014-02-24 19:12:15 >>> End 2014-02-24 19:12:20 >>> 00:00:00 corba >>> 00:00:00 demos >>> 00:00:01 hotspot >>> 00:00:02 images >>> 00:00:00 install >>> 00:00:00 jaxp >>> 00:00:00 jaxws >>> 00:00:02 jdk >>> 00:00:00 langtools >>> 00:00:00 nashorn >>> 00:00:05 TOTAL >>> ------------------------- >>> Finished building OpenJDK for target 'install' >>> >>> >>> then I try to run the suggested regression test and it fails.... >>> >>> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >>> make -k -C ../jdk/test TEST=jdk_all jdk_all >>> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> echo "Running tests: jdk_all" >>> Running tests: jdk_all >>> for each in jdk_all; do \ >>> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >>> done >>> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. >>> make[2]: Target `jtreg_tests' not remade because of errors. >>> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make[1]: *** [jdk_all] Error 2 >>> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make: *** [jdk_all] Error 2 >>> >>> I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. >>> >>> Thanks >>> Medi >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140227/f799eb61/attachment-0001.html From medi.montaseri at hds.com Thu Feb 27 15:38:05 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Thu, 27 Feb 2014 23:38:05 +0000 Subject: openJDK8 jtreg test failure In-Reply-To: <4B4E5B39-03BB-459A-B4FB-F9B859C324B5@oracle.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com>, <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB10F@USINDEM101.corp.hds.com>, <4B4E5B39-03BB-459A-B4FB-F9B859C324B5@oracle.com> Message-ID: <923F21021934C74299CD42CCCD265DA1013CB146@USINDEM101.corp.hds.com> Hi Mike, FYI, if I don't export JT_HOME and JT_JAVA , it will fail with or without --with-jtreg setting. Looks like the "make test TEST=jdk_all" is broken. I tried "make test TEST=jdk_lang" and it worked I tried "make test TEST=jdk_net" and it worked I suppose I can run them one by one. But what are all the possible test targets ? To get the answer, I looked at test/Makefile # Default test target (core) default: jdk_core langtools_jtreg # All testing all: jdk_all langtools_all # Test targets langtools_% : @$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), JT_JAVA=$(PRODUCT_HOME) JTREG_HOME=$(JT_HOME) TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@)) jdk_% core_%s svc_%: @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@) Can you help me understand where jdk_% and svc_% gets their patterns from ? My make is getting rusty. I have a feeling it has something to do with mmontaseri at griffin:~/work/bug-91383/jdk8> find jdk -path '*/test/*' -name Makefile jdk/test/java/net/URLClassLoader/sealing/Makefile jdk/test/java/util/spi/ResourceBundleControlProvider/providersrc/Makefile jdk/test/java/util/PluggableLocale/providersrc/Makefile jdk/test/java/rmi/reliability/benchmark/bench/Makefile jdk/test/java/rmi/reliability/benchmark/bench/rmi/Makefile jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Makefile jdk/test/Makefile jdk/test/sun/management/jmxremote/bootstrap/Makefile ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Thursday, February 27, 2014 3:08 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure On Feb 27 2014, at 14:17 , Medi Montaseri > wrote: Hi Mike, I was following the instruction at http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#testing I will try to get these instructions updated. Looks like running "make test TEST=jdk_all" works much better...I ran this from the top dir, and made sure I export JT_HOME and JT_JAVA as I also got an old jtreg on my box. mmontaseri at griffin:~/work/bug-91383/jdk8> env |grep JT JT_HOME=/opt/jtreg/jtreg-4.2 JT_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/bin/java This should not be necessary if you configure --with-jtreg=/opt/jtreg/jtreg-4.2 mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Then I run the make test as mmontaseri at griffin:~/work/bug-91383/jdk8> make test TEST=jdk_all Building OpenJDK for target 'test' in configuration 'linux-x86_64-normal-server-release' ## Starting langtools ## Finished langtools (build time 00:00:00) ## Starting hotspot ## Finished hotspot (build time 00:00:00) ## Starting corba ## Finished corba (build time 00:00:00) ## Starting jaxp ## Finished jaxp (build time 00:00:00) ## Starting jaxws ## Finished jaxws (build time 00:00:01) ## Starting jdk ## Finished jdk (build time 00:00:01) ## Starting demos ## Finished demos (build time 00:00:00) ## Starting nashorn ## Finished nashorn (build time 00:00:00) ## Starting images ## Finished images (build time 00:00:02) ## Starting test /usr/bin/make -k -C ../jdk/test TEST=jdk_all jdk_all make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ /usr/bin/make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[3]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[3]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. This looks like the configure was done without --with-jtreg. make[3]: Target `jtreg_tests' not remade because of errors. make[3]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** [jdk_all] Error 2 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 ## Finished test (build time 00:00:00) ----- Build times ------- Start 2014-02-27 14:07:30 End 2014-02-27 14:07:34 00:00:00 corba 00:00:00 demos 00:00:00 hotspot 00:00:02 images 00:00:00 jaxp 00:00:01 jaxws 00:00:01 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:00 test 00:00:04 TOTAL ------------------------- Finished building OpenJDK for target 'test' mmontaseri at griffin:~/work/bug-91383/jdk8> So does it mean it failed or it passed? Sorry to bear bad news but it failed entirely and no tests were run. :-( Mike thanks Medi ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Thursday, February 27, 2014 10:12 AM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure What is your current directory? You should be able to run make test TEST="jdk_all" from the top level repo, ie. the same directory as you ran "make images". Running from {root}/test or jdk/test may have issues. You should not have to specify PRODUCT_HOME. Mike On Feb 25 2014, at 17:26 , Medi Montaseri > wrote: Update.... As you may recall, I was getting a make test error of Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 I changed the "make test" invocation from the fancy way of make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all to X=`pwd`/../build/*/images/j2sdk-image echo $X /home/mmontaseri/work/bug-91383/jdk8/test/../build/linux-x86_64-normal-server-release/images/j2sdk-image X=/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image ls $X ASSEMBLY_EXCEPTION bin/ demo/ include/ jre/ lib/ LICENSE man/ release sample/ src.zip THIRD_PARTY_README make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all ...skipping bunch of stuff... /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 which is different that with the fancy path 'jdk8/test/../build' replaced with 'jdk8/build' The output is difficult to read....just for you amusement I copy it here... mmontaseri at griffin:~/work/bug-91383/jdk8/test> make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 mmontaseri at griffin:~/work/bug-91383/jdk8/test> ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 2:03 PM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure update... I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Some progress was made, but required some hand holding, namely bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see config.log:configure:16509: checking for jtreg config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' config.log:JT_HOME='/opt/jtreg/jtreg-4.2' and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd ....bunch of lines omitted.... CODE: ${testExitCode}"; exit ${testExitCode} Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. So to recap: - upgraded jtreg(1) - exported JT_HOME and JT_JAVA, - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading - what does it mean by JDK not found. Thanks Medi ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 11:20 AM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure thanks Mike, I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls jtdiff* jtreg* mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version javac 1.6.0_26 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version jtreg, version 4.0 dev b00 Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Monday, February 24, 2014 10:10 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure Hi Medi; You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. HTH, Mike On Feb 24 2014, at 19:21 , Medi Montaseri > wrote: Hi, I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH - I confirm that my 1.7 javac is the first to be found - I confirm to have jtreg ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform - no JT_HOME, no JAVA_HOME is set. They are null - After running "bash configure --with-jtreg --prefix=/some/dir" I see the following in my build/linux-x86_64-normal-server-release/config.log config.log:configure:16652: checking for jtreg config.log:configure:16670: found /usr/bin/jtreg Anyways...the make continues and finishes with some happy messages... ----- Build times ------- Start 2014-02-24 19:12:15 End 2014-02-24 19:12:20 00:00:00 corba 00:00:00 demos 00:00:01 hotspot 00:00:02 images 00:00:00 install 00:00:00 jaxp 00:00:00 jaxws 00:00:02 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'install' then I try to run the suggested regression test and it fails.... cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[2]: Target `jtreg_tests' not remade because of errors. make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. Thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140227/9d1b2579/attachment-0001.html From mike.duigou at oracle.com Thu Feb 27 15:43:36 2014 From: mike.duigou at oracle.com (Mike Duigou) Date: Thu, 27 Feb 2014 15:43:36 -0800 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CB146@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com>, <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB10F@USINDEM101.corp.hds.com>, <4B4E5B39-03BB-459A-B4FB-F9B859C324B5@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB146@USINDEM101.corp.hds.com> Message-ID: <1F3C0D03-2B17-4233-83BB-0037F6AD4AE8@oracle.com> On Feb 27 2014, at 15:38 , Medi Montaseri wrote: > Hi Mike, > > FYI, if I don't export JT_HOME and JT_JAVA , it will fail with or without --with-jtreg setting. Strange. That doesn't match what I see. I never even define JT_HOME or JT_JAVA. These environment variables are mostly a legacy mechanism for specifying > Looks like the "make test TEST=jdk_all" is broken. > I tried "make test TEST=jdk_lang" and it worked > I tried "make test TEST=jdk_net" and it worked (it is somewhat ambiguous what directory you are running this command from). > I suppose I can run them one by one. But what are all the possible test targets ? For langtools the targets are in langtools/test/Makefile. Currently this is *ONLY* langtools_jtreg. For jdk the targets are defined in jdk/test/TEST.groups > > To get the answer, I looked at test/Makefile > > # Default test target (core) > default: jdk_core langtools_jtreg > > # All testing > all: jdk_all langtools_all > > # Test targets > langtools_% : > @$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), JT_JAVA=$(PRODUCT_HOME) JTREG_HOME=$(JT_HOME) TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@)) > > jdk_% core_%s svc_%: > @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@) > > Can you help me understand where jdk_% and svc_% gets their patterns from ? My make is getting rusty. I have a feeling it has something to do with > > mmontaseri at griffin:~/work/bug-91383/jdk8> find jdk -path '*/test/*' -name Makefile > jdk/test/java/net/URLClassLoader/sealing/Makefile > jdk/test/java/util/spi/ResourceBundleControlProvider/providersrc/Makefile > jdk/test/java/util/PluggableLocale/providersrc/Makefile > jdk/test/java/rmi/reliability/benchmark/bench/Makefile > jdk/test/java/rmi/reliability/benchmark/bench/rmi/Makefile > jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Makefile > jdk/test/Makefile > jdk/test/sun/management/jmxremote/bootstrap/Makefile Close. The actual values are in the TEST.groups file. jdk_% core_% and svc_% are prefixes to group names in the TEST.groups file. Mike > > From: Mike Duigou [mike.duigou at oracle.com] > Sent: Thursday, February 27, 2014 3:08 PM > To: Medi Montaseri > Cc: jtreg-use at openjdk.java.net > Subject: Re: openJDK8 jtreg test failure > > > On Feb 27 2014, at 14:17 , Medi Montaseri wrote: > >> Hi Mike, >> >> I was following the instruction at http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#testing > > I will try to get these instructions updated. > >> >> Looks like running "make test TEST=jdk_all" works much better...I ran this from the top dir, and made sure I export JT_HOME and JT_JAVA as I also got an old jtreg on my box. >> >> mmontaseri at griffin:~/work/bug-91383/jdk8> env |grep JT >> JT_HOME=/opt/jtreg/jtreg-4.2 >> JT_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/bin/java >> > > This should not be necessary if you configure --with-jtreg=/opt/jtreg/jtreg-4.2 > > >> mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version >> jtreg, version 4.0 dev b00 >> Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar >> Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. >> Built with 1.7.0_25 on 02/23/2014 09:12 PM. >> Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. >> Use is subject to license terms. >> TestNG: version 6.8-201210030754 >> >> >> Then I run the make test as >> >> mmontaseri at griffin:~/work/bug-91383/jdk8> make test TEST=jdk_all >> Building OpenJDK for target 'test' in configuration 'linux-x86_64-normal-server-release' >> >> ## Starting langtools >> ## Finished langtools (build time 00:00:00) >> >> ## Starting hotspot >> ## Finished hotspot (build time 00:00:00) >> >> ## Starting corba >> ## Finished corba (build time 00:00:00) >> >> ## Starting jaxp >> ## Finished jaxp (build time 00:00:00) >> >> ## Starting jaxws >> ## Finished jaxws (build time 00:00:01) >> >> ## Starting jdk >> ## Finished jdk (build time 00:00:01) >> >> ## Starting demos >> ## Finished demos (build time 00:00:00) >> >> ## Starting nashorn >> ## Finished nashorn (build time 00:00:00) >> >> ## Starting images >> ## Finished images (build time 00:00:02) >> >> ## Starting test >> /usr/bin/make -k -C ../jdk/test TEST=jdk_all jdk_all >> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> echo "Running tests: jdk_all" >> Running tests: jdk_all >> for each in jdk_all; do \ >> /usr/bin/make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >> done >> make[3]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[3]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. > > This looks like the configure was done without --with-jtreg. > >> make[3]: Target `jtreg_tests' not remade because of errors. >> make[3]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[2]: *** [jdk_all] Error 2 >> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >> make[1]: *** [jdk_all] Error 2 >> ## Finished test (build time 00:00:00) >> >> ----- Build times ------- >> Start 2014-02-27 14:07:30 >> End 2014-02-27 14:07:34 >> 00:00:00 corba >> 00:00:00 demos >> 00:00:00 hotspot >> 00:00:02 images >> 00:00:00 jaxp >> 00:00:01 jaxws >> 00:00:01 jdk >> 00:00:00 langtools >> 00:00:00 nashorn >> 00:00:00 test >> 00:00:04 TOTAL >> ------------------------- >> Finished building OpenJDK for target 'test' >> mmontaseri at griffin:~/work/bug-91383/jdk8> >> >> So does it mean it failed or it passed? > > > Sorry to bear bad news but it failed entirely and no tests were run. :-( > > Mike > >> >> thanks >> Medi >> >> From: Mike Duigou [mike.duigou at oracle.com] >> Sent: Thursday, February 27, 2014 10:12 AM >> To: Medi Montaseri >> Cc: jtreg-use at openjdk.java.net >> Subject: Re: openJDK8 jtreg test failure >> >> What is your current directory? >> >> You should be able to run >> >> make test TEST="jdk_all" >> >> from the top level repo, ie. the same directory as you ran "make images". >> >> Running from {root}/test or jdk/test may have issues. You should not have to specify PRODUCT_HOME. >> >> Mike >> >> On Feb 25 2014, at 17:26 , Medi Montaseri wrote: >> >>> Update.... >>> >>> As you may recall, I was getting a make test error of >>> >>> Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image >>> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >>> EXIT CODE: 5 >>> EXIT CODE: 5 >>> make[2]: *** [jtreg_tests] Error 5 >>> >>> I changed the "make test" invocation from the fancy way of >>> >>> make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >>> >>> to >>> >>> X=`pwd`/../build/*/images/j2sdk-image >>> echo $X >>> /home/mmontaseri/work/bug-91383/jdk8/test/../build/linux-x86_64-normal-server-release/images/j2sdk-image >>> X=/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image >>> ls $X >>> ASSEMBLY_EXCEPTION bin/ demo/ include/ jre/ lib/ LICENSE man/ release sample/ src.zip THIRD_PARTY_README >>> >>> make PRODUCT_HOME=$X all >>> make -k -C ../jdk/test TEST=jdk_all jdk_all >>> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> echo "Running tests: jdk_all" >>> Running tests: jdk_all >>> ...skipping bunch of stuff... >>> /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java >>> Error: No tests selected >>> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >>> EXIT CODE: 1 >>> EXIT CODE: 1 >>> make[2]: *** [jtreg_tests] Error 1 >>> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make[1]: *** [jdk_all] Error 2 >>> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make: *** [jdk_all] Error 2 >>> >>> which is different that with the fancy path 'jdk8/test/../build' replaced with 'jdk8/build' >>> >>> The output is difficult to read....just for you amusement I copy it here... >>> >>> mmontaseri at griffin:~/work/bug-91383/jdk8/test> make PRODUCT_HOME=$X all >>> make -k -C ../jdk/test TEST=jdk_all jdk_all >>> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> echo "Running tests: jdk_all" >>> Running tests: jdk_all >>> for each in jdk_all; do \ >>> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >>> done >>> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> ( \ >>> ( JT_HOME=/opt/jtreg/jtreg-4.2; \ >>> export JT_HOME; \ >>> /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ >>> -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ >>> -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ >>> -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ >>> -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ >>> -exclude:ProblemList.txt \ >>> -vmoption:-Xmx512m \ >>> :jdk_all \ >>> ) ; \ >>> ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ >>> ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} >>> /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java >>> Error: No tests selected >>> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >>> EXIT CODE: 1 >>> EXIT CODE: 1 >>> make[2]: *** [jtreg_tests] Error 1 >>> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make[1]: *** [jdk_all] Error 2 >>> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make: *** [jdk_all] Error 2 >>> mmontaseri at griffin:~/work/bug-91383/jdk8/test> >>> >>> From: Medi Montaseri >>> Sent: Tuesday, February 25, 2014 2:03 PM >>> To: Mike Duigou >>> Cc: jtreg-use at openjdk.java.net >>> Subject: RE: openJDK8 jtreg test failure >>> >>> update... >>> >>> I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 >>> >>> mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version >>> jtreg, version 4.0 dev b00 >>> Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar >>> Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. >>> Built with 1.7.0_25 on 02/23/2014 09:12 PM. >>> Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. >>> Use is subject to license terms. >>> TestNG: version 6.8-201210030754 >>> >>> Some progress was made, but required some hand holding, namely >>> >>> bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see >>> >>> config.log:configure:16509: checking for jtreg >>> config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg >>> config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' >>> config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' >>> config.log:JT_HOME='/opt/jtreg/jtreg-4.2' >>> >>> and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with >>> >>> mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >>> make -k -C ../jdk/test TEST=jdk_all jdk_all >>> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> echo "Running tests: jdk_all" >>> Running tests: jdk_all >>> for each in jdk_all; do \ >>> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >>> done >>> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> ( \ >>> ( JT_HOME=/opt/jtreg/jtreg-4.2; \ >>> export JT_HOME; \ >>> /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ >>> -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ >>> -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ >>> -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ >>> -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ >>> -exclude:ProblemList.txt \ >>> -vmoption:-Xmx512m \ >>> :jdk_all \ >>> ) ; \ >>> ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd >>> ....bunch of lines omitted.... >>> CODE: ${testExitCode}"; exit ${testExitCode} >>> Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image >>> Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt >>> EXIT CODE: 5 >>> EXIT CODE: 5 >>> make[2]: *** [jtreg_tests] Error 5 >>> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make[1]: *** [jdk_all] Error 2 >>> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>> make: *** [jdk_all] Error 2 >>> >>> Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. >>> >>> So to recap: >>> - upgraded jtreg(1) >>> - exported JT_HOME and JT_JAVA, >>> - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading >>> - what does it mean by JDK not found. >>> >>> Thanks >>> Medi >>> >>> >>> >>> From: Medi Montaseri >>> Sent: Tuesday, February 25, 2014 11:20 AM >>> To: Mike Duigou >>> Cc: jtreg-use at openjdk.java.net >>> Subject: RE: openJDK8 jtreg test failure >>> >>> thanks Mike, >>> >>> I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ >>> I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 >>> >>> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls >>> jtdiff* jtreg* >>> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here >>> >>> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set >>> >>> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version >>> javac 1.6.0_26 >>> mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version >>> jtreg, version 4.0 dev b00 >>> Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar >>> Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. >>> Built with 1.7.0_25 on 02/23/2014 09:12 PM. >>> Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. >>> Use is subject to license terms. >>> TestNG: version 6.8-201210030754 >>> >>> From: Mike Duigou [mike.duigou at oracle.com] >>> Sent: Monday, February 24, 2014 10:10 PM >>> To: Medi Montaseri >>> Cc: jtreg-use at openjdk.java.net >>> Subject: Re: openJDK8 jtreg test failure >>> >>> Hi Medi; >>> >>> You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: >>> >>> https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ >>> >>> When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. >>> >>> HTH, >>> >>> Mike >>> >>> On Feb 24 2014, at 19:21 , Medi Montaseri wrote: >>> >>>> Hi, >>>> >>>> I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows >>>> >>>> - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" >>>> - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH >>>> - I confirm that my 1.7 javac is the first to be found >>>> - I confirm to have jtreg >>>> ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform >>>> - no JT_HOME, no JAVA_HOME is set. They are null >>>> - After running "bash configure --with-jtreg --prefix=/some/dir" >>>> I see the following in my build/linux-x86_64-normal-server-release/config.log >>>> config.log:configure:16652: checking for jtreg >>>> config.log:configure:16670: found /usr/bin/jtreg >>>> >>>> Anyways...the make continues and finishes with some happy messages... >>>> >>>> ----- Build times ------- >>>> Start 2014-02-24 19:12:15 >>>> End 2014-02-24 19:12:20 >>>> 00:00:00 corba >>>> 00:00:00 demos >>>> 00:00:01 hotspot >>>> 00:00:02 images >>>> 00:00:00 install >>>> 00:00:00 jaxp >>>> 00:00:00 jaxws >>>> 00:00:02 jdk >>>> 00:00:00 langtools >>>> 00:00:00 nashorn >>>> 00:00:05 TOTAL >>>> ------------------------- >>>> Finished building OpenJDK for target 'install' >>>> >>>> >>>> then I try to run the suggested regression test and it fails.... >>>> >>>> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all >>>> make -k -C ../jdk/test TEST=jdk_all jdk_all >>>> make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>>> echo "Running tests: jdk_all" >>>> Running tests: jdk_all >>>> for each in jdk_all; do \ >>>> make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ >>>> done >>>> make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>>> make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. >>>> make[2]: Target `jtreg_tests' not remade because of errors. >>>> make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>>> make[1]: *** [jdk_all] Error 2 >>>> make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' >>>> make: *** [jdk_all] Error 2 >>>> >>>> I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. >>>> >>>> Thanks >>>> Medi >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140227/f6b751c6/attachment-0001.html From medi.montaseri at hds.com Thu Feb 27 16:13:15 2014 From: medi.montaseri at hds.com (Medi Montaseri) Date: Fri, 28 Feb 2014 00:13:15 +0000 Subject: openJDK8 jtreg test failure In-Reply-To: <1F3C0D03-2B17-4233-83BB-0037F6AD4AE8@oracle.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com>, <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB10F@USINDEM101.corp.hds.com>, <4B4E5B39-03BB-459A-B4FB-F9B859C324B5@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB146@USINDEM101.corp.hds.com>, <1F3C0D03-2B17-4233-83BB-0037F6AD4AE8@oracle.com> Message-ID: <923F21021934C74299CD42CCCD265DA1013CB175@USINDEM101.corp.hds.com> JT_HOME and JT_JAVA setting could be an action item for dev folks. I have an old jtreg that is probably picked up during probing. Although I do set it at configure time....but when it comes to running the test, it has forgotten about it. I run the "make test TEST=xxx" from topdir. topdir is where I run "bash ./configure" . topdir is the top of the forest. perhaps this helps mmontaseri at griffin:~/work/bug-91383/jdk8> pwd /home/mmontaseri/work/bug-91383/jdk8 mmontaseri at griffin:~/work/bug-91383/jdk8> ls ASSEMBLY_EXCEPTION build com common configure corba get_source.sh hotspot jaxp jaxws jdk langtools LICENSE make Makefile nashorn README README-builds.html test THIRD_PARTY_README mmontaseri at griffin:~/work/bug-91383/jdk8> I think "make test TEST=jdk_all" is broken. I try to demonstrate that here mmontaseri at griffin:~/work/bug-91383/jdk8> env |grep JT JT_HOME=/opt/jtreg/jtreg-4.2 JT_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/bin/java mmontaseri at griffin:~/work/bug-91383/jdk8> pwd /home/mmontaseri/work/bug-91383/jdk8 mmontaseri at griffin:~/work/bug-91383/jdk8> echo "I am about to run make test from topdir" I am about to run make test from topdir mmontaseri at griffin:~/work/bug-91383/jdk8> pwd /home/mmontaseri/work/bug-91383/jdk8 mmontaseri at griffin:~/work/bug-91383/jdk8> make test TEST=jdk_all Building OpenJDK for target 'test' in configuration 'linux-x86_64-normal-server-release' ## Starting langtools ## Finished langtools (build time 00:00:00) ## Starting hotspot ## Finished hotspot (build time 00:00:00) ## Starting corba ## Finished corba (build time 00:00:00) ## Starting jaxp ## Finished jaxp (build time 00:00:01) ## Starting jaxws ## Finished jaxws (build time 00:00:00) ## Starting jdk ## Finished jdk (build time 00:00:01) ## Starting demos ## Finished demos (build time 00:00:01) ## Starting nashorn ## Finished nashorn (build time 00:00:00) ## Starting images ## Finished images (build time 00:00:01) ## Starting test /usr/bin/make -k -C ../jdk/test TEST=jdk_all jdk_all make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ /usr/bin/make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[3]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m -concurrency:7 \ -r:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[3]: *** [jtreg_tests] Error 1 make[3]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** [jdk_all] Error 2 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 ## Finished test (build time 00:00:01) ----- Build times ------- Start 2014-02-27 16:08:39 End 2014-02-27 16:08:44 00:00:00 corba 00:00:01 demos 00:00:00 hotspot 00:00:01 images 00:00:01 jaxp 00:00:00 jaxws 00:00:01 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:01 test 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'test' I am going to run them one by one for now. Thanks again for helping out. Medi ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Thursday, February 27, 2014 3:43 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure On Feb 27 2014, at 15:38 , Medi Montaseri > wrote: Hi Mike, FYI, if I don't export JT_HOME and JT_JAVA , it will fail with or without --with-jtreg setting. Strange. That doesn't match what I see. I never even define JT_HOME or JT_JAVA. These environment variables are mostly a legacy mechanism for specifying Looks like the "make test TEST=jdk_all" is broken. I tried "make test TEST=jdk_lang" and it worked I tried "make test TEST=jdk_net" and it worked (it is somewhat ambiguous what directory you are running this command from). I suppose I can run them one by one. But what are all the possible test targets ? For langtools the targets are in langtools/test/Makefile. Currently this is *ONLY* langtools_jtreg. For jdk the targets are defined in jdk/test/TEST.groups To get the answer, I looked at test/Makefile # Default test target (core) default: jdk_core langtools_jtreg # All testing all: jdk_all langtools_all # Test targets langtools_% : @$(NO_STOPPING)$(call SUBDIR_TEST, $(LANGTOOLS_DIR), JT_JAVA=$(PRODUCT_HOME) JTREG_HOME=$(JT_HOME) TEST="$(subst langtools_,,$@)" $(subst langtools_,,$@)) jdk_% core_%s svc_%: @$(NO_STOPPING)$(call SUBDIR_TEST, $(JDK_DIR), TEST="$@" $@) Can you help me understand where jdk_% and svc_% gets their patterns from ? My make is getting rusty. I have a feeling it has something to do with mmontaseri at griffin:~/work/bug-91383/jdk8> find jdk -path '*/test/*' -name Makefile jdk/test/java/net/URLClassLoader/sealing/Makefile jdk/test/java/util/spi/ResourceBundleControlProvider/providersrc/Makefile jdk/test/java/util/PluggableLocale/providersrc/Makefile jdk/test/java/rmi/reliability/benchmark/bench/Makefile jdk/test/java/rmi/reliability/benchmark/bench/rmi/Makefile jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Makefile jdk/test/Makefile jdk/test/sun/management/jmxremote/bootstrap/Makefile Close. The actual values are in the TEST.groups file. jdk_% core_% and svc_% are prefixes to group names in the TEST.groups file. Mike ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Thursday, February 27, 2014 3:08 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure On Feb 27 2014, at 14:17 , Medi Montaseri > wrote: Hi Mike, I was following the instruction at http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#testing I will try to get these instructions updated. Looks like running "make test TEST=jdk_all" works much better...I ran this from the top dir, and made sure I export JT_HOME and JT_JAVA as I also got an old jtreg on my box. mmontaseri at griffin:~/work/bug-91383/jdk8> env |grep JT JT_HOME=/opt/jtreg/jtreg-4.2 JT_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/bin/java This should not be necessary if you configure --with-jtreg=/opt/jtreg/jtreg-4.2 mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Then I run the make test as mmontaseri at griffin:~/work/bug-91383/jdk8> make test TEST=jdk_all Building OpenJDK for target 'test' in configuration 'linux-x86_64-normal-server-release' ## Starting langtools ## Finished langtools (build time 00:00:00) ## Starting hotspot ## Finished hotspot (build time 00:00:00) ## Starting corba ## Finished corba (build time 00:00:00) ## Starting jaxp ## Finished jaxp (build time 00:00:00) ## Starting jaxws ## Finished jaxws (build time 00:00:01) ## Starting jdk ## Finished jdk (build time 00:00:01) ## Starting demos ## Finished demos (build time 00:00:00) ## Starting nashorn ## Finished nashorn (build time 00:00:00) ## Starting images ## Finished images (build time 00:00:02) ## Starting test /usr/bin/make -k -C ../jdk/test TEST=jdk_all jdk_all make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ /usr/bin/make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[3]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[3]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. This looks like the configure was done without --with-jtreg. make[3]: Target `jtreg_tests' not remade because of errors. make[3]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** [jdk_all] Error 2 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 ## Finished test (build time 00:00:00) ----- Build times ------- Start 2014-02-27 14:07:30 End 2014-02-27 14:07:34 00:00:00 corba 00:00:00 demos 00:00:00 hotspot 00:00:02 images 00:00:00 jaxp 00:00:01 jaxws 00:00:01 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:00 test 00:00:04 TOTAL ------------------------- Finished building OpenJDK for target 'test' mmontaseri at griffin:~/work/bug-91383/jdk8> So does it mean it failed or it passed? Sorry to bear bad news but it failed entirely and no tests were run. :-( Mike thanks Medi ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Thursday, February 27, 2014 10:12 AM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure What is your current directory? You should be able to run make test TEST="jdk_all" from the top level repo, ie. the same directory as you ran "make images". Running from {root}/test or jdk/test may have issues. You should not have to specify PRODUCT_HOME. Mike On Feb 25 2014, at 17:26 , Medi Montaseri > wrote: Update.... As you may recall, I was getting a make test error of Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 I changed the "make test" invocation from the fancy way of make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all to X=`pwd`/../build/*/images/j2sdk-image echo $X /home/mmontaseri/work/bug-91383/jdk8/test/../build/linux-x86_64-normal-server-release/images/j2sdk-image X=/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image ls $X ASSEMBLY_EXCEPTION bin/ demo/ include/ jre/ lib/ LICENSE man/ release sample/ src.zip THIRD_PARTY_README make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all ...skipping bunch of stuff... /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 which is different that with the fancy path 'jdk8/test/../build' replaced with 'jdk8/build' The output is difficult to read....just for you amusement I copy it here... mmontaseri at griffin:~/work/bug-91383/jdk8/test> make PRODUCT_HOME=$X all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt"; rm -f -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; echo "${jtregExitCode}" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; if [ -r "${_summary}" ] ; then echo "Summary: jdk_all" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; expand ${_summary} | egrep -v ' Not run\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | egrep -v ' Error\.' | egrep -v ' Failed\.' > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt; ( egrep ' Failed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep ' Error\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt; egrep -v ' Passed\.' /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt ) | sort | uniq > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt; if [ ${jtregExitCode} != 0 -o -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt ] ; then expand /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | cut -d' ' -f1 | sed -e 's@^@FAILED: @' >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; if [ ${jtregExitCode} = 0 ] ; then jtregExitCode=1; fi; fi; runc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/runlist.txt | wc -l | awk '{print $1;}'`"; passc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/passlist.txt | wc -l | awk '{print $1;}'`"; failc="`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/faillist.txt | wc -l | awk '{print $1;}'`"; exclc="FIXME CODETOOLS-7900176"; echo "TEST STATS: name=jdk_all run=${runc} pass=${passc} fail=${failc}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; else echo "Missing file: ${_summary}" >> /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; if [ -f /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt ] ; then cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/Stats.txt; fi; ( mkdir -p `dirname /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip` && cd /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all && chmod -R a+r . && zip -q -r /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/ARCHIVE_BUNDLE.zip . ) ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} ) \ ) 2>&1 | tee /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/output.txt ; if [ ! -s /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt ] ; then echo "ERROR: EXITCODE file not filled in."; echo "1" > /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt; fi ; testExitCode=`cat /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/exitcode.txt`; echo "EXIT CODE: ${testExitCode}"; exit ${testExitCode} /home/mmontaseri/work/bug-91383/jdk8/jdk/test/TEST.groups: group needs_jre: file not found: java/text/Bidi/Bug6665028.java Error: No tests selected Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 1 EXIT CODE: 1 make[2]: *** [jtreg_tests] Error 1 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 mmontaseri at griffin:~/work/bug-91383/jdk8/test> ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 2:03 PM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure update... I upgraded my jtreg(1) to what appears to be version 4.0 dev b00 mmontaseri at griffin:~/work/bug-91383/jdk8> jtreg -version jtreg, version 4.0 dev b00 Installed in /opt/jtreg/jtreg-4.2/lib/jtreg.jar Running on platform version 1.7.0_25 from /usr/lib/jvm/java-7-openjdk-amd64/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 Some progress was made, but required some hand holding, namely bash configure --with-jtreg=/opt/jtreg/jtreg-4.2 will influence the config where I see config.log:configure:16509: checking for jtreg config.log:configure:16643: result: /opt/jtreg/jtreg-4.2/win32/bin/jtreg config.log:CONFIGURE_COMMAND_LINE='--with-jtreg=/opt/jtreg/jtreg-4.2 --prefix=/home/mmontaseri/work/bug-91383/depot4' config.log:JTREGEXE='/opt/jtreg/jtreg-4.2/win32/bin/jtreg' config.log:JT_HOME='/opt/jtreg/jtreg-4.2' and "make all" completes successfully, but "cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all" will fail with mmontaseri at griffin:~/work/bug-91383/jdk8> cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' ( \ ( JT_HOME=/opt/jtreg/jtreg-4.2; \ export JT_HOME; \ /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m \ -r:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport \ -w:/home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTwork \ -jdk:/home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image \ -exclude:ProblemList.txt \ -vmoption:-Xmx512m \ :jdk_all \ ) ; \ ( jtregExitCode=$? && _summary="/home/mmontaseri/work/bug-91383/jdk8/jd ....bunch of lines omitted.... CODE: ${testExitCode}"; exit ${testExitCode} Error: JDK not found: /home/mmontaseri/work/bug-91383/jdk8/test/../build/*/images/j2sdk-image Missing file: /home/mmontaseri/work/bug-91383/jdk8/jdk/testoutput/jdk_all/JTreport/text/summary.txt EXIT CODE: 5 EXIT CODE: 5 make[2]: *** [jtreg_tests] Error 5 make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 Note that make and jtreg(1) are not playing nice and sharing. I had to set JT_HOME and JT_JAVA to get to this point. So to recap: - upgraded jtreg(1) - exported JT_HOME and JT_JAVA, - why is there a reference to win32, we aint got no win32 around here, I am running on a linux 64 bit. totally misleading - what does it mean by JDK not found. Thanks Medi ________________________________ From: Medi Montaseri Sent: Tuesday, February 25, 2014 11:20 AM To: Mike Duigou Cc: jtreg-use at openjdk.java.net Subject: RE: openJDK8 jtreg test failure thanks Mike, I am not finding any 4.1b8 version at https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ I downloaded build #55 ( 1 day 16 hours ago ) and it is version 4.0 dev b00 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ls jtdiff* jtreg* mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JT_HOME # nothing set here mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> echo $JAVA_HOME # nothing set mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> javac -version javac 1.6.0_26 mmontaseri at griffin:~/tmp/downloads/jtreg/linux/bin> ./jtreg -version jtreg, version 4.0 dev b00 Installed in /home/mmontaseri/tmp/downloads/jtreg/lib/jtreg.jar Running on platform version 1.6.0_26 from /usr/lib/jvm/java-6-sun-1.6.0.26/jre. Built with 1.7.0_25 on 02/23/2014 09:12 PM. Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. TestNG: version 6.8-201210030754 ________________________________ From: Mike Duigou [mike.duigou at oracle.com] Sent: Monday, February 24, 2014 10:10 PM To: Medi Montaseri Cc: jtreg-use at openjdk.java.net Subject: Re: openJDK8 jtreg test failure Hi Medi; You will need to upgrade to a newer version of JTReg. The current version is 4.1b8. I put in a request to the debian maintainers several months ago. The 4.1b2 version is several years old. You can get current builds of JTReg produced by the AdoptOpenJDK group here: https://adopt-openjdk.ci.cloudbees.com/job/jtreg/ When you have installed jtreg into a local directory you provide that location as a parameter to --with-jtreg ie. --with-jtreg=/path/to/jtreg. HTH, Mike On Feb 24 2014, at 19:21 , Medi Montaseri > wrote: Hi, I have successfully build openJDK8 on Debian 7.3 but failing on "regression test" as follows - I am getting the src via 'hg from clone http://hg.openjdk.java.net/jdk8/jdk8" - Before I run "bash configure" I export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH - I confirm that my 1.7 javac is the first to be found - I confirm to have jtreg ii jtreg 4.1-2 all Regression Test Harness for the OpenJDK platform - no JT_HOME, no JAVA_HOME is set. They are null - After running "bash configure --with-jtreg --prefix=/some/dir" I see the following in my build/linux-x86_64-normal-server-release/config.log config.log:configure:16652: checking for jtreg config.log:configure:16670: found /usr/bin/jtreg Anyways...the make continues and finishes with some happy messages... ----- Build times ------- Start 2014-02-24 19:12:15 End 2014-02-24 19:12:20 00:00:00 corba 00:00:00 demos 00:00:01 hotspot 00:00:02 images 00:00:00 install 00:00:00 jaxp 00:00:00 jaxws 00:00:02 jdk 00:00:00 langtools 00:00:00 nashorn 00:00:05 TOTAL ------------------------- Finished building OpenJDK for target 'install' then I try to run the suggested regression test and it fails.... cd test && make PRODUCT_HOME=`pwd`/../build/*/images/j2sdk-image all make -k -C ../jdk/test TEST=jdk_all jdk_all make[1]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' echo "Running tests: jdk_all" Running tests: jdk_all for each in jdk_all; do \ make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ done make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[2]: *** No rule to make target `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg', needed by `/java/re/jtreg/4.1/promoted/latest/binaries/jtreg/win32/bin/jtreg'. make[2]: Target `jtreg_tests' not remade because of errors. make[2]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make[1]: *** [jdk_all] Error 2 make[1]: Leaving directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' make: *** [jdk_all] Error 2 I googled around, there are some other hits on this, but I could not find any resolution. Any clue is appreciated. Thanks Medi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140228/c3b33c98/attachment-0001.html From mike.duigou at oracle.com Thu Feb 27 19:26:39 2014 From: mike.duigou at oracle.com (Mike Duigou) Date: Thu, 27 Feb 2014 19:26:39 -0800 Subject: openJDK8 jtreg test failure In-Reply-To: <923F21021934C74299CD42CCCD265DA1013CB175@USINDEM101.corp.hds.com> References: <923F21021934C74299CD42CCCD265DA1013CA05B@USINDEM101.corp.hds.com>, <4E0BC04C-490A-4CC1-A11F-4BFECA989172@oracle.com>, <923F21021934C74299CD42CCCD265DA1013CA242@USINDEM101.corp.hds.com>, <923F21021934C74299CD42CCCD265DA1013CA2A3@USINDEM101.corp.hds.com> <923F21021934C74299CD42CCCD265DA1013CA331@USINDEM101.corp.hds.com>, <3A07F826-CED9-4F07-9C31-33072DDC6070@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB10F@USINDEM101.corp.hds.com>, <4B4E5B39-03BB-459A-B4FB-F9B859C324B5@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB146@USINDEM101.corp.hds.com>, <1F3C0D03-2B17-4233-83BB-0037F6AD4AE8@oracle.com> <923F21021934C74299CD42CCCD265DA1013CB175@USINDEM101.corp.hds.com> Message-ID: <7BAAFAD8-FF17-4F49-B730-ADA6003A9979@oracle.com> Hi Medi; I appreciate your persistence and patience in resolving these issues. On Feb 27 2014, at 16:13 , Medi Montaseri wrote: > JT_HOME and JT_JAVA setting could be an action item for dev folks. I have an old jtreg that is probably picked up during probing. Although I do set it at configure time....but when it comes to running the test, it has forgotten about it. what does grep "^JT" build/linux-x86_64-normal-server-release/spec.gmk return? The value in the spec.gmk should be the *only* value that matters. > I run the "make test TEST=xxx" from topdir. topdir is where I run "bash ./configure" . topdir is the top of the forest. perhaps this helps OK, understood now. > I think "make test TEST=jdk_all" is broken. I try to demonstrate that here > > mmontaseri at griffin:~/work/bug-91383/jdk8> env |grep JT > JT_HOME=/opt/jtreg/jtreg-4.2 > JT_JAVA=/usr/lib/jvm/java-7-openjdk-amd64/bin/java > mmontaseri at griffin:~/work/bug-91383/jdk8> pwd > /home/mmontaseri/work/bug-91383/jdk8 > mmontaseri at griffin:~/work/bug-91383/jdk8> echo "I am about to run make test from topdir" > I am about to run make test from topdir > mmontaseri at griffin:~/work/bug-91383/jdk8> pwd > /home/mmontaseri/work/bug-91383/jdk8 > mmontaseri at griffin:~/work/bug-91383/jdk8> make test TEST=jdk_all > Building OpenJDK for target 'test' in configuration 'linux-x86_64-normal-server-release' > > ## Starting langtools > ## Finished langtools (build time 00:00:00) > > ## Starting hotspot > ## Finished hotspot (build time 00:00:00) > > ## Starting corba > ## Finished corba (build time 00:00:00) > > ## Starting jaxp > ## Finished jaxp (build time 00:00:01) > > ## Starting jaxws > ## Finished jaxws (build time 00:00:00) > > ## Starting jdk > ## Finished jdk (build time 00:00:01) > > ## Starting demos > ## Finished demos (build time 00:00:01) > > ## Starting nashorn > ## Finished nashorn (build time 00:00:00) > > ## Starting images > ## Finished images (build time 00:00:01) > > ## Starting test > /usr/bin/make -k -C ../jdk/test TEST=jdk_all jdk_all > make[2]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > echo "Running tests: jdk_all" > Running tests: jdk_all > for each in jdk_all; do \ > /usr/bin/make -j 1 TEST_SELECTION=":$each" UNIQUE_DIR=$each jtreg_tests; \ > done > make[3]: Entering directory `/home/mmontaseri/work/bug-91383/jdk8/jdk/test' > ( \ > ( JT_HOME=/opt/jtreg/jtreg-4.2; \ > export JT_HOME; \ > /opt/jtreg/jtreg-4.2/win32/bin/jtreg \ > -agentvm -a -ea -esa -v:fail,error,time -retain:fail,error -ignore:quiet -timeoutFactor:4 -J-Xmx512m -concurrency:7 \ > -r:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/JTreport \ > -w:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/testoutput/jdk_all/JTwork \ > -jdk:/home/mmontaseri/work/bug-91383/jdk8/build/linux-x86_64-normal-server-release/images/j2sdk-image \ > -exclude:ProblemList.txt \ > -vmoption:-Xmx512m \ > :jdk_all \ > ) ; This looks correct except that there is not "jdk_all" test group in jdk/test/TEST.groups I think you want to use "jdk_core" instead. For additional tests you could try "jdk_stable" which includes some additional tets. > > I am going to run them one by one for now. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jtreg-use/attachments/20140227/c77d809e/attachment.html