This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]