[Opensim-dev] Restructuring test directories

Melanie melanie at t-data.com
Fri Sep 5 18:18:33 UTC 2008


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



More information about the Opensim-dev mailing list