Liz,

Google Test and Google Mock are used to perform unit tests on the Google code. 
These tests check the components of
GnuCash out individually to ensure they are performing as expected. This is 
particularly important when things like
libraries GnuCash depends upon change. This can happen for example when a user 
does not have the same library versions
as a developer. If the components functionality doesn't change when a library 
is chnaged, then there is a better than
even chance the overall program operation will still be OK. 

GTEST and GMOCK need to be installed to build GnuCash. Despite the reservations 
expressed about using the installation
of them as shared libraries, I have used shared GTEST and GMOCK libraries since 
GTEST and GMOCK have been in the GnuCash
build without any problems and this does not require defining GTEST_ROOT and 
GMOCK_ROOT.

See the second procedure  https://wiki.gnucash.org/wiki/Google_Test or the 
third procedure for installing using apt if
you are on a Ubuntu based system . AFAIK they work for 16.10, 18.04 and 18.10 
or Linux Mint 18 through to 19.

David Cousens




On Sun, 2019-01-13 at 12:33 +1100, Liz wrote:
> On Sun, 13 Jan 2019 12:02:38 +1100
> Liz <[email protected]> wrote:
> 
> > > 
> > > I guess you can build from source, would you care to try 
> > > https://github.com/christopherlam/gnucash/tree/maint-scheme-progress-and-reconcile-header
> > >  
> > > which will add a reconcile-report header?
> > > 
> 
> Started on this and come unstuck on GTest
> Checking for GTEST
> CMake Error  at common/cmake_modules/GncAddTest.cmake:144 (message):
>   GTEST not found.  Please install it or set GTEST_ROOT or GMOCK_ROOT
> 
> 
> I don't really want a GoogleTest.
> Can I just make GMOCK_ROOT=/tmp
> 
> ??
> 
> Liz
> _______________________________________________
> gnucash-devel mailing list
> [email protected]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to