[Opensim-dev] Blockers for unit testing physics modules

Stefan Andersson stefan at tribalmedia.se
Tue Feb 17 16:16:49 UTC 2009


I just committed a fix to actually honour the 'path' in Nant and vs2005/8 targets, something that was actually not done. (Bloody hell, we need to get back to upstream prebuild.)


I believe you should be able to do this now.
 
Best regards,
Stefan Andersson
Tribal Media AB



 


Date: Tue, 17 Feb 2009 18:05:04 +0200
From: tommi.s.e.laukkanen at gmail.com
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] Blockers for unit testing physics modules


The thing with the ode tests is that instead of having them in separate test dll as with all the rest of the tests the ode tests are placed in the same dll as ode plugin. Because of this it does not need to reference the ode plugin dll which would not work. I think we should really push for improvements to prebuild as getting everything to same output directory is not very clean solution considering for example deployment of different exe files to different machines. There is also problem of not being able to clean the bin directory as it permanently contains dll dependencies and even runtime data. In practice I think it is a good pattern that the bin directory is completely emptied on build clean. It would be also nice to be able to build different exe files to their own distribution folders. These last two as a long term goals to consider.
 
regards,
Tommi


On Tue, Feb 17, 2009 at 4:29 PM, Teravus Ovares <teravus at gmail.com> wrote:

Stefan,

No, this doesn't work. We've tried all sorts of ways to do that.  But,
there is a solution that we're already using for this very problem
with bamboo.   Simply copy the physics assembly to bin when running
the tests.   As I said, bamboo already does this.   The test harness
is currently in the odeplugin assembly and gets run successfully.

Best Regards

Teravus




On Tue, Feb 17, 2009 at 6:24 AM, Stefan Andersson <stefan at tribalmedia.se> wrote:
> You should be able to specify a 'path' attribute on the prebuild reference
> element.
>
> <Reference name="Test" localCopy="false" path="../../Whatever/Dir/Test.dll"
> />
>
> If that doesn't work, let me know and I'll have a look at a solution.
>
> (Sorry for the late reply)
>
> Best regards,
> Stefan Andersson
> Tribal Media AB
>
>
>
>
> ________________________________
> Date: Mon, 9 Feb 2009 20:54:33 +0200
> From: tommi.s.e.laukkanen at gmail.com
> To: opensim-dev at lists.berlios.de
> Subject: [Opensim-dev] Blockers for unit testing physics modules
>
> Hello
>
> I was writing some unit tests for physics modules and I collided with the
> following problem with prebuild and nant:
>
> Currently physics modules are stored in bin/Physics and because of this you
> can not reference them in further steps of the build as you can define only
> one reference directory for a project. I have referenced ode plugin dll from
> test dll but because of the reference problem the nant build fails. The test
> itself builds and works well in visual studio.
>
> I dont see any way around this. We would need to move the physics plugin
> dlls to bin directory like rest of the dlls or forget doing separate unit
> test dlls which refer to these plugins.
>
> This limitation is good to know for all prebuild work we do. Do not place
> the build output to any other directory than OpenSim/bin or you cannot
> reference that in other projects of nant build.
>
> If someone knows how to fix this easily please let me know.
>
> regards,
> Tommi
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
>
_______________________________________________
Opensim-dev mailing list
Opensim-dev at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20090217/547fdcae/attachment-0001.html>


More information about the Opensim-dev mailing list