Running Tests: do I need to build GTest separately?

Anil 1dropaflame at gmail.com
Wed Jul 10 14:57:58 UTC 2024


This, in the docs is unclear to me:

Building of Hotspot Gtest suite requires the source code of Google Test
> framework. The top directory, which contains both googletest and
> googlemock directories, should be specified via --with-gtest

Building the JDK (openjdk.org)
<https://openjdk.org/groups/build/doc/building.html>
(Windows11, Cygwin64)

I cloned the gtest repo. Do I need to build it?
If so...
This page says Visual Studio comes with GTest included.
[image: image.png]
It would be nice if I can just pass the already built location in VS, but I
can't find where it is (I looked inside the VS install folder).

Or, am I supposed to just add it to bash configure?

$ bash configure
--with-jtreg=/cygdrive/c/users/anil/OpenJDK/jtreg-7.4+1/jtreg
--with-gtest=/cygdrive/c/users/anil/OpenJDK/googletest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20240710/08605f56/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 37907 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20240710/08605f56/image-0001.png>


More information about the build-dev mailing list