using googletest C++ testing framework with eCos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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




[Linux Embedded]     [U-Boot V2]     [Linux Kernel]     [Linux MIPS]     [Linux ARM]     [Linux for the Blind]     [Linux Resources]     [Photo]     [Yosemite]     [ISDN Cause Codes]     [ECOS Home]     [Site Home]

Add to Google Powered by Linux