Index: lib/googletest/Makefile =================================================================== --- lib/googletest/Makefile +++ lib/googletest/Makefile @@ -7,7 +7,7 @@ SUBDIR+= gmock_main SUBDIR+= gtest_main -SUBDIR.${MK_TESTS}+= tests +SUBDIR.${MK_GOOGLETEST_INTERNAL_TESTS}+= tests SUBDIR_DEPEND_gtest_main= gtest SUBDIR_DEPEND_gmock= gtest Index: share/man/man5/src.conf.5 =================================================================== --- share/man/man5/src.conf.5 +++ share/man/man5/src.conf.5 @@ -1,6 +1,6 @@ .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. .\" $FreeBSD$ -.Dd September 15, 2020 +.Dd October 13, 2020 .Dt SRC.CONF 5 .Os .Sh NAME @@ -700,6 +700,10 @@ .Pp This is a default setting on amd64/amd64, arm/armv6, arm/armv7, arm64/aarch64, i386/i386, powerpc/powerpc, powerpc/powerpc64, riscv/riscv64 and riscv/riscv64sf. +.It Va WITH_GOOGLETEST_INTERNAL_TESTS +Set to build and install the Googletest test suite in +.Pa /usr/tests/lib/googletest . + .It Va WITHOUT_GPIO Set to not build .Xr gpioctl 8 Index: share/mk/src.opts.mk =================================================================== --- share/mk/src.opts.mk +++ share/mk/src.opts.mk @@ -208,6 +208,7 @@ DTRACE_TESTS \ EXPERIMENTAL \ GNU_GREP_COMPAT \ + GOOGLETEST_INTERNAL_TESTS \ HESIOD \ LIBSOFT \ LOADER_FIREWIRE \ Index: tools/build/options/WITH_GOOGLETEST_INTERNAL_TESTS =================================================================== --- /dev/null +++ tools/build/options/WITH_GOOGLETEST_INTERNAL_TESTS @@ -0,0 +1,3 @@ +.\" $FreeBSD$ +Set to build and install the Googletest test suite in +.Pa /usr/tests/lib/googletest .