Hello all,

Carsten Neumann wrote:
> Carsten Neumann wrote:
>> Gerrit Voß wrote:
>>> On Sun, 2009-03-15 at 17:57 -0500, Allen Bierbaum wrote:
>>>> Is it still possible to compile the unit tests?  I am adding some
>>>> fixes and new code and I would like to add some tests for them as
>>>> well. :)
>>>>
>>> I don't think anybody added the unittests to cmake yet. I haven't
>>> and IIRC Carsten haven't too.
>>
>> yes, they broke when we switched to cmake. Patrick asked about them 
>> not long ago, but I did not have the chance to work on getting them 
>> back since.
> 
> just as a quick update, I got the unittests partially working on linux 
> now (partially because I still need to find a way to have them actually 
> executed as part of the build).
> I've attached the patch as it is, maybe someone feels adventurous and 
> wants to give it a try on windows or mac ? ;)
> It moves some files around and before committing it the svn:externals 
> for unittest-cpp need to be changed a little. I also tested with the 
> latest unittest-cpp (r206 IIRC).

I just committed a patch that brings the unit tests back. They are not 
run automatically at the end of a build, though. On linux you can run 
them with "make test" and on windows there is now a new project called 
"RUN_TESTS", building it runs the tests.
At this point each one runs three times, a problem that is related to 
the way CMake records tests and the fact that we call ADD_SUBDIRECTORY 
with the same argument multiple times when the cmake passes run. Not 
sure if/how to fix this - after all the tests run very fast, so it is 
not too bad for now I think.
On Windows there is also a problem with UnitTestOSGFileIO crashing, 
possibly because OSGFileIO is not loaded.

        Cheers,
                Carsten

------------------------------------------------------------------------------
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to