Cross compiling unit tests with CppUnit or similar

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2009-09-17T23:42:03Z Indexed on 2010/03/17 0:41 UTC
Read the original article Hit count: 536

Filed under:
|
|

Has anyone used a package like CppUnit to cross-compile C++ unit tests to run on an embedded platform?

I'm using G++ on a Linux box to compile executables that must be run on a LynxOS board. I can't seem to get any of the common unit test packages to configure and build something that will create unit tests.

I see a lot of unit test packages, CppUnit, UnitTest++, GTest, CppUTest, etc., but very little about using these packages in a cross-compiler scenario. The ones with a "configure" script imply that this is possible, but I can't seem to get them to configure and build.

© Stack Overflow or respective owner

Related posts about c++

Related posts about unit-testing