Running Tests: do I need to build GTest separately?

Anil 1dropaflame at gmail.com
Wed Jul 10 16:43:46 UTC 2024


I do not have a project role (signed the contributor agreement just now)
but I would like to submit a minor documentation bug because it should
clearly state that gtest should be at the bash configure stage.

example:
$ bash configure
--with-jtreg=/cygdrive/c/users/anil/OpenJDK/jtreg-7.4+1/jtreg
--with-gtest=/cygdrive/c/users/anil/OpenJDK/googletest


On Wed, Jul 10, 2024 at 11:24 AM Julian Waters <tanksherman27 at gmail.com>
wrote:

> --with-gtest is only available during bash configure, so when you run
> bash configure
>
> best regards,
> Julian
>
> On Thu, Jul 11, 2024 at 12:00 AM Anil <1dropaflame at gmail.com> wrote:
> >
> > Thank you for your reply.
> > [Julian] "Just point --with-gtest"
> > at what stage?
> > "bash configure", or "make images" or "make test-tier1"?
> >
> >   $ bash configure
> --with-jtreg=/cygdrive/c/users/anil/OpenJDK/jtreg-7.4+1/jtreg
> --with-gtest=/cygdrive/c/users/anil/OpenJDK/googletest
> >
> >
> >
> > On Wed, Jul 10, 2024 at 10:05 AM Julian Waters <tanksherman27 at gmail.com>
> wrote:
> >>
> >> Hi Anil,
> >>
> >> No, you do not need to compile gtest manually. Just point --with-gtest
> >> to the directory that contains the googlemock and googletest
> >> directories. I do not believe you can use a precompiled gtest for
> >> this. I'd also suggest having jtreg and googletest outside the JDK
> >> source directory
> >>
> >> best regards,
> >> Julian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20240710/8b52e980/attachment-0001.htm>


More information about the build-dev mailing list