[openbeos-build-team] Re: CppUnit

  • From: "Ingo Weinhold" <bonefish@xxxxxxxxxxxxxxx>
  • To: openbeos-build-team@xxxxxxxxxxxxx
  • Date: Tue, 09 Jul 2002 00:54:30 CEST (+0200)

Tyler wrote:

> R5 vs. OpenBeOS
> ---------------
> The other issue we have is that of reference testing, i.e. being able 
> to link two separate versions of the test program, one against our 
> implementations and one against the R5 implementations, for the sake 
> of comparison. The Storage Kit tests currently do this, and Ingo has 
> mentioned he may even be able to do it more cleanly now. Certain kits 
> will almost certainly have other issues besides just needing to link 
> to R5::libbe.so, but I guess we'll cross those bridges when we come 
> to them.

I changed the original UnitTest rule and added two new ones. UnitTest 
does now build a unit test for the OBOS implementation -- it takes some 
more arguments as libs and header dirs now. R5UnitTest does exactly the 
same, but adds to all objects and the executable the suffix `_r5' and 
doesn't use any OBOS include dirs. CommonUnitTest just invokes both of 
them. I changed the two Jamfile that were using UnitTest to use 
CommonUnitTest instead.

While compiling the tests the symbols TEST_R5 respectively TEST_OBOS 
are defined.

CU, Ingo

Other related posts: