[rfc][icedtea-web] C++ unit tests support for ITW :D

Adam Domurad adomurad at redhat.com
Tue Dec 4 09:37:11 PST 2012


On 12/04/2012 11:56 AM, Omair Majid wrote:
> Hi,
>
> On 11/20/2012 04:05 PM, Adam Domurad wrote:
>> - Two new folders in tests/, UnitTest++ and cpp-unit-tests.
>>      - UnitTest++ contains the source of UnitTest++ (minus test cases
>> which I decided to not copy over for simplicity). The makefile provided
>> is not used, instead a simple for loop over the source is used to
>> compile it in the target for the library. Feel free to advise ways to
>> improve this.
> Was there any particular reason why you chose to bundle UnitTest++
> instead of using it as a library? Bundling generally causes problems
> down the line. Many developers [0][1] and distributions [2][3][4] are
> not happy with it.
>
> Thanks,
> Omair
>
> [0]
> http://blog.flameeyes.eu/2009/03/bundling-libraries-the-curse-of-the-ancients
> [1]http://lwn.net/Articles/450595/
> [2]http://www.debian.org/doc/debian-policy/ch-source.html#s-embeddedfiles
> [3]http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries
> [4]http://wiki.gentoo.org/wiki/Why_not_bundle_dependencies
>

I do agree. I chose to take this route because it was the easiest way to 
get _something_ in. I am definitely looking into replacing it with 
something that is packaged in Fedora (unfortunately Unittest++ is not). 
This was the simplest integration option considering that C++ unit tests 
were needed for what I was working on. I'm having trouble picking a 
suitable unittesting library, any feedback is appreciated.

Happy hacking,
-Adam



More information about the distro-pkg-dev mailing list