Running jdk's tests to produce coverage report
tim.bell at oracle.com
tim.bell at oracle.com
Wed Nov 3 16:12:30 UTC 2021
Hello Stefanos
On 11/3/21 08:12, Chaliasos, Stefanos wrote:
> Hello,
>
> I'm trying to compute code coverage for langtools in the JDK repo on a Ubuntu 18.04 machine using JDK 18 for the compilation. I have run the following commands:
>
> ```
> cd /home/user
> git clonehttps://github.com/openjdk/jdk.git
> cd jdk && bash configure && make jdk && cd ../
Does your JDK 18 build work in general? (EG: running 'java -version' or
compiling and running a simple HelloWorld.java program) If not, fix
that first.
> git clonehttps://github.com/openjdk/jtreg.git
> cd jtreg
> bash make/build.sh --jdk /home/user/jdk/build/linux-x86_64-server-release/jdk/
> cd ../jdk
> bash configure --with-jtreg=/home/user/jtreg/build/images/jtreg --with-jcov=/home/user/jtreg/build/deps/jcov/
> make jcov-image
> ```
>
> In the last command, I get errors with the following message:
>
> ```
> Exception details: Unsupported class file major version 62
JDK 18 was advanced to classfile version 62 in this changeset:
https://github.com/openjdk/jdk/commit/b018c450e5e4737ccd08ed505fd06cee16c42648
This is a good question for the jcov-dev list at:
https://mail.openjdk.java.net/mailman/listinfo/jcov-dev
Please subscribe to jcov-dev before sending to the list.
See also this jcov bug report:
https://bugs.openjdk.java.net/browse/CODETOOLS-7902988
I hope this helps-
Tim
> ...
> ```
>
> and then the message:
>
> ```
> SEVERE : wrong command for jlink mods:
> ....
> ```
>
> I tried to compile JCOV with JDK 18 but without success. Does anyone know if it is possible to compute code coverage on the master branch?
>
> Kind regards,
>
> Stefanos Chaliasos
More information about the build-dev
mailing list