[Opensim-dev] Restructuring test directories

Dahlia Trimble dahliatrimble at gmail.com
Fri Sep 5 20:08:04 UTC 2008


Ok I don't have VS 2005, nor am I going to buy it. I'll rephrase my
question: is there a way we can structure the unit tests so they can
function across development platforms?

On Fri, Sep 5, 2008 at 1:00 PM, Melanie <melanie at t-data.com> wrote:

> In VS 2005, i get asked.
>
> Melanie
>
> Dahlia Trimble wrote:
> > I don't see that option in Tortoise SVN, Visual Studio 2008 Express, or
> > Nunit, even when doing a fresh checkout.
> >
> > On Fri, Sep 5, 2008 at 11:18 AM, Melanie <melanie at t-data.com> wrote:
> >
> >> Hi,
> >>
> >> the windows platform will convert the unix line endings in the
> >> source files to windows.
> >> When you first open a fresh checkout, you are asked for a line
> >> ending style. It defaults to "Windows (CRLF)". You need to set this
> >> to "Unix (LF)".
> >>
> >> This is because the line feeds in the strings are implicit rather
> >> than explicit, therefore the reference strings' line break depends
> >> on that of the source file.
> >>
> >> Melanie
> >>
> >> Dahlia Trimble wrote:
> >> > Speaking of the tests, I have not yet been able to make them work in
> >> > windows. I keep getting errors (41 total) similar to this:
> >> >
> >>
> OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CSCodeGeneratorTest.TestAdditionSubtractionOperator:
> >> >   Expected string length 639 but was 631. Strings differ at index 0.
> >> >   Expected: "\r\n        public void
> >> > default_event_touch_start(LSL_Types.LSL..."
> >> >   But was:  "\n        public void
> >> > default_event_touch_start(LSL_Types.LSLI..."
> >> >   ------------^
> >> >
> >> > Perhaps this is the wrong thread, but is there any effort yet towards
> >> cross
> >> > platform unit testing? or perhaps it's user error on my part? At first
> >> > glance it looks like hard coded strings used to compare against
> compiler
> >> > output are platform dependent.
> >> >
> >> >
> >> > On Thu, Sep 4, 2008 at 12:10 PM, Sean Dague <sdague at gmail.com> wrote:
> >> >
> >> >> I started digging into the way the unit tests are in the tree, and
> I'd
> >> >> like to move some of the directories around so that thinks like
> >> >> OpenSim.Framework.Tests.dll is in OpenSim/Framework/Tests subdir (for
> >> >> instance).  I think it would make the tests a bit more prevalent, and
> >> >> closer to the code they actually are testing, and shouldn't be too
> >> >> disruptive to the overall tree.
> >> >>
> >> >>        -Sean
> >> >>
> >> >> --
> >> >> Sean Dague / Neas Bade
> >> >> sdague at gmail.com
> >> >> http://dague.net
> >> >>
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> 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
> >> _______________________________________________
> >> 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
> _______________________________________________
> 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/20080905/514c99d2/attachment-0001.html>


More information about the Opensim-dev mailing list