dae8f246 | 20-Feb-2019 |
Enji Cooper <ngie@FreeBSD.org> |
Fix gtest test compilation and build more tests
My previous work to integrate these tests was incomplete/incorrect, because I misunderstood how the cmake macros worked.
This addresses items with th
Fix gtest test compilation and build more tests
My previous work to integrate these tests was incomplete/incorrect, because I misunderstood how the cmake macros worked.
This addresses items with the gtest tests, which in turn fixes test compilation and adds more tests which I had previously missed.
Due to an unknown issue with gtest_stress_test, I had to add pthread to LIBADD, even though I shouldn't have added it to that (it was failing to link -lpthread to libprivategtest.a). Add a XXX comment to note that something's awry there and deserves additional investigation.
show more ...
|
988a9f7e | 20-Feb-2019 |
Enji Cooper <ngie@FreeBSD.org> |
Use `GTESTS` instead of `PLAIN_TESTS_CXX`
The former is from googletest.test.mk, whereas the latter is from plain.test.mk.
As noted in r344328, Kyua will adopt more native GoogleTest support. Thus,
Use `GTESTS` instead of `PLAIN_TESTS_CXX`
The former is from googletest.test.mk, whereas the latter is from plain.test.mk.
As noted in r344328, Kyua will adopt more native GoogleTest support. Thus, it's more desirable to make the test interface more of an opaque blackbox for the testcase implementer.
show more ...
|
df131617 | 20-Feb-2019 |
Enji Cooper <ngie@FreeBSD.org> |
Fix up dependency finding for libg{mock,test}_main
- Look up the corresponding non-*_main libraries via LDFLAGS using the directories provided in src.libnames.mk. This will allow the libraries to
Fix up dependency finding for libg{mock,test}_main
- Look up the corresponding non-*_main libraries via LDFLAGS using the directories provided in src.libnames.mk. This will allow the libraries to be built in the "make libraries" phase of buildworld. - gtest_main relies on gtest, but didn't explicitly call out the dependency in `LIBADD`. Fill in this missing blank.
show more ...
|
1ab32159 | 20-Feb-2019 |
Enji Cooper <ngie@FreeBSD.org> |
Unconditionally build/install libg{mock,test}_main
They are supporting libraries and as such, will need to be built/installed when MK_TESTS == no during buildworld, i.e., the "make libraries" phase.
Unconditionally build/install libg{mock,test}_main
They are supporting libraries and as such, will need to be built/installed when MK_TESTS == no during buildworld, i.e., the "make libraries" phase.
Otherwise, dependent components cannot rely on the libraries, like `cddl/usr.sbin/zfsd/tests`.
show more ...
|