aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Helpers (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-09-04Deleted OpenSim.Framework.Communications. Moved its two remaining files to ↵Diva Canto3-3/+3
OpenSim.Framework.
2015-08-31Deleted physics plugin classes.Diva Canto1-4/+22
More unit tests fixed.
2015-08-31First commit where physics work as region module.Diva Canto1-4/+1
Moved all physics dlls out of Physics and into bin directly, so they can be found by the module loader. Removed call to PhysicsPluginManager.
2015-08-30More namespace and dll name changes. Still no functional changes.Diva Canto1-2/+2
2015-08-30Renamed the namespaces tooDiva Canto1-1/+1
2015-08-30Moved instantiation of SceneCommunicationService object to inside the scene ↵Diva Canto1-3/+1
constructor. This was a left over from the original monolithic design of scene communications. The less the instantiators of scenes know about the scene's internals, the better.
2015-08-08WARNING: massive refactor to follow libomv's latest changes regarding ↵Diva Canto1-1/+1
inventory folders. The newest version of libomv itself is committed here. Basically, everything that was using the AssetType enum has been combed through; many of those uses were changed to the new FolderType enum. This means that from now on, [new] root folders have code 8 (FolderType.Root), as the viewers expect, as opposed to 9, which was what we had been doing. Normal folders are as they were, -1. Also now sending folder code 100 for Suitcase folders to viewers, with no filter. All tests pass, but fingers crossed!
2015-02-25Fix bug where the uuid gatherer was not inspecting UUIDs for items in an ↵Justin Clark-Casey (justincc)1-12/+33
embedded object's inventory. Added regression test for this case. Likely a regression since 08606ae4 (Thu Jan 8 2015) Relates to Mantises 7439, 7450 and possibly others.
2015-02-25Reduce coupling in regression test task inventory creation methods to make ↵Justin Clark-Casey (justincc)1-18/+18
them usable in tests with no scene present
2015-01-16For scripts in attachments, don't save .state files apart from the initial ↵Justin Clark-Casey (justincc)1-7/+25
one as these are ignored since .state is saved in the attachment's asset. This eliminates pointless work and exceptions when an appdomain is unloaded whilst an attachment script state is persisted. Adds test for this case. Relates to http://opensimulator.org/mantis/view.php?id=7407
2014-11-25refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)3-3/+0
package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add
2014-11-25refactor: Move test clientstack setup code out of BasicCircuitTests into ↵Justin Clark-Casey (justincc)1-0/+95
OpenSim.Tests.Common.ClientStackHelpers
2014-10-02Don't unnecessarily remove from backup objects that were not directly ↵Justin Clark-Casey (justincc)1-1/+1
attached from the scene. These are never in region backup in the first place since recent 11830c43 Extend regression test to check backup status.
2014-07-29Allow the "debug scene set physics false|true" command to work when ↵Justin Clark-Casey (justincc)1-8/+9
bulletsim physics is running in a separate thread. This will also allow the "disable physics" setting in the region debug viewer dialog to work in this circumstance.
2014-05-22Simplify regression TestInterRegionChatDistanceEastWest() by making the ↵Justin Clark-Casey (justincc)1-1/+5
child presence connection directly rather than routing through TestClient. This code isn't relevant to this test and is already exercised by other tests.
2014-04-25Add basic regression test for creating a var regionJustin Clark-Casey (justincc)1-1/+10
2014-04-11Fix the presence info caching used in llRequestAgentData(), which was ↵Justin Clark-Casey (justincc)1-0/+6
completely inoperative. This means the presence info may be out of date by up to 20 seconds, but this avoids scripts potentially triggering constants requests to user accout and presence info services. Relates to http://opensimulator.org/mantis/view.php?id=7088 though I fixed in a different way. Adds regression test for this case.
2014-04-09In teleports, pass the source region to the destination (similar to an HTTP ↵Oren Hurvitz1-1/+1
referrer)
2014-04-02Fix problem where moving an object to another region on the same simulator ↵Justin Clark-Casey (justincc)1-0/+26
was failing, with the object returning to its original position. Root cause was that PrimLimitsModule was not properly handling the case where the parcel it was asked to check was outside the current region's bounds. If this is the case, we can abort the check since the receiving region will perform it. Added a regression test for this case.
2014-03-11Instead of auto-creating a parcel on request if one doesn't cover a given ↵Justin Clark-Casey (justincc)1-3/+6
location, fill in gaps or extend existing parcel right after initial data load. This is in line with simpler and still existing behaviour where a default parcel is created if no parcels are in storage at all. Making this change as another step to address current problems with spurious parcels occasionally being created. Also adds regression tests for different load behaviours depending on existing stored parcel data. Relates to http://opensimulator.org/mantis/view.php?id=7035
2013-11-08varregion: elimination of Constants.RegionSize from all over OpenSimulator.Robert Adams1-6/+2
Routines in Util to compute region world coordinates from region coordinates as well as the conversion to and from region handles. These routines have replaced a lot of math scattered throughout the simulator. Should be no functional changes.
2013-11-04varregion: add plumbing to pass region size from Scene down to theRobert Adams1-1/+2
physics engine. Older physics engines will default to the legacy region size. Update BulletSim to use the new region size information.
2013-09-27refactor: Rename Scene.AddNewClient() to AddNewAgent() to make it obvious in ↵Justin Clark-Casey (justincc)2-3/+3
the code that this is symmetric with CloseAgent()
2013-08-17Add ScenePresenceTeleportTests.TestSameSimulatorIsolatedRegionsV2() ↵Justin Clark-Casey (justincc)1-3/+40
regression test for v2 transfers. Also adjusts names of teleport setup helpers in EntityTransferHelpers
2013-05-09Fix issue where objects removed via llDie() would not disappear for users ↵Justin Clark-Casey (justincc)2-52/+4
looking in from neighbouring sims. This was because this particular code path (unlike user delete) only sent kills to root presences, for no apparent good reason. Added regression test for this case. This fixes http://opensimulator.org/mantis/view.php?id=6627
2013-04-29Add TestRejectGivenFolder() and TestAcceptGivenFolder() regression testsJustin Clark-Casey (justincc)1-4/+37
2013-03-20Add file missing from last commit 36651beJustin Clark-Casey (justincc)1-0/+91
2013-03-20On the later forms of teleport failure, tell the user if this was because ↵Justin Clark-Casey (justincc)1-6/+31
viewer couldn't/didn't connect with destination or if destination didn't signal teleport completion. Also adds regression test for the case where the viewer couldn't connect with the destination region. Also refactoring of regression test support code associated with entity transfer in order to make this test possible and the code less obscure.
2013-02-28Add regression tests for llGetNotecardLine()Justin Clark-Casey (justincc)1-6/+26
2013-02-16Add regression test TestSaveNonRootFolderToIarJustin Clark-Casey (justincc)1-20/+89
2013-02-06Remove long unused Scene.DumpAssetsToFile boolean.Justin Clark-Casey (justincc)1-1/+1
2012-11-13minor: Add some explanative method doc to SceneHelpers.SetupSceneModules()Justin Clark-Casey (justincc)1-0/+4
2012-11-12Remove the old style module loader and all references to itMelanie1-1/+1
2012-11-12Remove IRegionModule support from the test setup helperMelanie1-23/+5
2012-11-11Fix issues with the DynamicTextureModule and corresponding unit tests.Diva Canto1-5/+5
2012-11-10One more module converted: GodsModule.Diva Canto1-3/+3
2012-11-10Fix Unit tests -- the module contract was not being honored in the set up of ↵Diva Canto1-6/+6
scenes.
2012-08-29Fix regression introduced in a0d178b2 (Sat Aug 25 02:00:17 2012) where ↵Justin Clark-Casey (justincc)2-2/+4
folders with asset type of 'Folder' and 'Unknown' were accidentally treated as system folders. This prevented more than one additional ordinary folder from being created in the base "My Inventory" user folder. Added regression test for this case. Switched tests to use XInventoryService with mostly implemented TestXInventoryDataPlugin rather than InventoryService Disabled TestLoadIarV0_1SameNameCreator() since this has not been working for a very long time (ever since XInventoryService) started being used since it doesnt' preserve creator data in the same way as InventoryService did and so effectively lost the OSPAs. However, nobody noticed/complained about this issue and OSPAs have been superseded by HG like creator information via the --home save oar/iar switch.
2012-07-24extend regression TestDetachScriptedAttachementToInventory() to check ↵Justin Clark-Casey (justincc)1-2/+20
correct running status on a re-rezzed attachment
2012-07-19Add EventManager.OnRegionLoginsStatusChange fired whenever logins are ↵Justin Clark-Casey (justincc)1-1/+1
enabled or disabled at any point, not just during initial startup. This replaces EventManager.OnLoginsEnabled which only fired when logins were first enabled and was affected by a bug where it would never fire if the region started with logins disabled.
2012-07-11Add regression TestDetachScriptedAttachmentToInventory()Justin Clark-Casey (justincc)1-1/+1
This currently only does a relatively crude check for a ScriptState node in the serialized xml
2012-07-11Add regression TestRezScriptedAttachmentsFromInventory() though this ↵Justin Clark-Casey (justincc)2-22/+59
currently only checks for the presence of script items, not for started scripts
2012-07-09Do not allow a script to attach a prim if its being sat upon.Justin Clark-Casey (justincc)2-17/+67
This prevents a stack overflow where a get position on the avatar will refer to the attachment which will in turn refer back to the avatar. This required recording of all sitting avatars on a prim which is done separately from recording the sit target avatar. Recording HashSet is null if there are no sitting avatars in order to save memory.
2012-07-07Remove redundant SetScene() function in Scene.AddSceneObject()Justin Clark-Casey (justincc)1-3/+20
This is always done later on in SceneGraph.AddSceneObject() if the call hasn't failed due to sanity checks. There's no other purpose for this method to exist and it's dangerous/pointless to call in other conditions.
2012-07-05Add OSSL function osForceAttachToAvatarFromInventory()Justin Clark-Casey (justincc)2-10/+47
This works like osForceAttachToAvatar() but allows an object to be directly specified from the script object's inventory rather than forcing it to be rezzed in the scene first. Still only attaches objects to the owner of the script. This allows one to bypass the complicated co-ordination of first rezzing objects in the scene before attaching them. Threat level high.
2012-06-26refactor: Remove unnecessary AttachmentModuleTests.m_userId in favour of ↵Justin Clark-Casey (justincc)1-0/+5
local variables
2012-05-23Fix bug where an avatar that had an object they owned attached through ↵Justin Clark-Casey (justincc)1-3/+4
llAttachToAvatar() or osForceAttachToAvatar() would wrongly have next permissions come into play when they detached that object and rezzed it in scene. This is because the attachments module code was setting the 'object slam' bit by using PermissionMask.All Solution here is to route the attachment item creation call through the existing inventory code in BasicInventoryAccessModule rather than copy/pasted code in AttachmentsModule itself.
2012-05-15Fix issue where loading OARs could sometimes result in link numbers being ↵Justin Clark-Casey (justincc)1-4/+4
reordered. This was because the parts in scene objects were sometimes not serialized in link order. This is perfectly fine since the parts still have the right link numbers, but an extra fix to adjust for this had not been done in the SerialiserModule methods that OAR loading used. Add regression test for same. Addresses http://opensimulator.org/mantis/view.php?id=5948, http://opensimulator.org/mantis/view.php?id=5749
2012-05-12Fix mono compiler warning.Justin Clark-Casey (justincc)1-1/+1
Last jenkins failure looked like a glitch.
2012-05-01Add regression test for teleporting between neighbouring regions on the same ↵Justin Clark-Casey (justincc)1-4/+68
simulator This adds a non-advertised wait_for_callback option in [EntityTransfer]. Default is always true. Teleport tests disable the wait for callback from the destination region in order to run within a single thread.