On Sat, Mar 15, 2014 at 2:29 PM, 赵安清 <zaqcl...@hotmail.com> wrote:
>
> Yes, I mean the googletest. I have some experience about it.
>
> But, honestly, I really have no idea about 'integrate running the tests
> defined there into the CMake build'. Could you please give me some valuable
> suggestion in details and what's the common method to be used in community
> when we need a unit test.

BRL-CAD uses the CMake tool for its build system, and part of that
system is our existing unit tests using the ctest tool.  See, for
example, the tests in src/libbu/tests.

Basically, we would need to make sure the gtest tests get run when we
run the ctest tests - see, for example:

http://stackoverflow.com/questions/8507723/how-to-start-working-with-gtest-and-cmake
http://smspillaz.wordpress.com/2012/07/05/unit-test-autodiscovery-with-cmake-and-google-test/

and I'm sure there are others.  Shouldn't be too difficult, just
something we need to keep in mind.

CY

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to