This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
using googletest C++ testing framework with eCos
- From: Martin Hans <mha at sophion dot com>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 8 Feb 2012 15:47:15 +0000
- Subject: [ECOS] using googletest C++ testing framework with eCos
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