gtest test targets fail with "Unknown test selection: 'gtest'" on jdk15-17
Thomas Stüfe
thomas.stuefe at gmail.com
Sun Jan 16 20:13:18 UTC 2022
Hi Abigail,
at some point (it may have been JDK 15, I am not sure atm) we stopped
including the google test framework in our repo and instead require the
builder to provide it externally. See configure option "--with-gtest". Must
point to a copy of the googletest framework (
https://github.com/google/googletest).
HTH, Cheers, Thomas
On Sun, Jan 16, 2022 at 9:01 PM Abigail G <dev at kb6.ee> wrote:
> Hello,
>
> I am attempting to run tests for openjdk15 to 17 using the make target
> test-hotspot-gtest, but after compiling the test files, it fails with
> this message:
>
> Unknown test selection: 'gtest'
> See doc/testing.[md|html] for help
> RunTests.gmk:541: *** Cannot continue. Stop.
> make[2]: *** [make/Main.gmk:601: exploded-test-gtest] Error 2
>
> ERROR: Build failed for target 'test-hotspot-gtest' in configuration
> 'linux-x86_64-server-release' (exit code 2)
>
> No indication of failed target found.
> Hint: Try searching the build log for '] Error'.
> Hint: See doc/building.html#troubleshooting for assistance.
>
> make[1]: *** [/builddir/jdk15u-jdk-15.0.3+3/make/Init.gmk:315: main]
> Error 2
> make: *** [/builddir/jdk15u-jdk-15.0.3+3/make/Init.gmk:186: test-
> hotspot-gtest] Error 2
>
> I have been able to successfully compile and run the tests for
> openjdk12 to 14 with the same test target, and, looking at the
> makefiles, it appears there has been no change in the relevant code
> between jdk14 and 15. What could be the issue here?
>
> Thanks in advance,
> Abigail G
>
>
More information about the build-dev
mailing list