[ECOS] using googletest C++ testing framework with eCos

Martin Hans mha@sophion.com
Wed Feb 8 15:50:00 GMT 2012


Hi,
I recently succeeded in making Google's C++ testing framework, googletest (see http://code.google.com/p/googletest/) work under eCos. I thought some people here might be interested in this.

It required me to use ecospro, which has libstdc++ support in the toolchain and make a few changes to the testing framework to work around eCos' limitations. You can review the patch at http://codereview.appspot.com/5641053/. Also, I had to enable various options to support the various features that the framework uses, such as dynamic memory allocation, RAM file system and Linux compatability.

Now I am able to write unittests in this really nice testing framework that run on my target.

Note that I am only giving the unittest framework these facilities. The application is still normally compiled using a much more restricted configuration.

I have an ARM9 target.

Martin

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list