aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang27-566/+320
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel29-310/+2150
2012-12-14Fix issue where calling llVolumeDetect(FALSE) would not remove phantom flag, ↵Justin Clark-Casey (justincc)1-1/+40
causing subsequent issues if physics was re-enabled. Added regression tests Addresses http://opensimulator.org/mantis/view.php?id=6365
2012-11-24Combine TestDeleteSceneObjectAsync() with TestDeRezSceneObject() as they are ↵Justin Clark-Casey (justincc)3-106/+83
functionally identical. Move TestDeleteSceneObjectAsync() and TestDeleteSceneObjectAsyncToUserInventory() from SceneObjectBasicTests -> SceneObjectDeRezTests
2012-11-24Fix regression TestDeleteSceneObjectAsyncToUserInventory by adding a ↵Justin Clark-Casey (justincc)1-7/+12
BasicInventoryAccessModule() and re-enable in test suite.
2012-11-24Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)17-17/+17
automatically turns off any logging enabled between tests
2012-11-23Add regression test for checking scene close when SceneManager is asked to closeJustin Clark-Casey (justincc)1-0/+58
2012-11-10Uncomment SceneObjectBasicTests.TestDeleteSceneObjectAsyncToUserInventory() ↵Justin Clark-Casey (justincc)1-33/+57
and make it compile again Not currently in test suite since not yet working. Also add method doc to Scene.DeRezObjects()
2012-10-25In Scene.Close(), dispose of the physics scene after base.Close() since ↵Justin Clark-Casey (justincc)1-0/+17
script events can still access Physics scene until the script engine shuts down (triggered off base.Close()) XEngine listeners to EventManager.OnShutdown which is triggered from base.Close(). Possibly it could listen for the earlier OnSceneShuttingDown instead, but the easier solution right now is to relocate disposal of the physics scene. This bug has existed since c150320 (Thu Jul 26 15:27:18 2012) and was in 0.7.4
2012-10-12Get rid of accidental scene start left in ScenePresenceAutopilotTestsJustin Clark-Casey (justincc)1-1/+0
2012-10-12Fix problems with regression tests by allowing invoke of Update() with a ↵Justin Clark-Casey (justincc)1-0/+1
finite number of frames even if the scene isn't active.
2012-09-27Add MaxPrimsUndo config setting to [Startup] section of OpenSim.ini.Justin Clark-Casey (justincc)2-2/+4
This controls how many undo steps the simulator will store for each prim. Default is now 20 rather than 5 as it briefly was. The default number could be increased through this is a memory tradeoff which will scale with the number of prims in the sim and level of activity.
2012-09-26Don't store undo states if a scene object is manipulated when it is not in a ↵Justin Clark-Casey (justincc)1-0/+23
scene. Adds regression test for this.
2012-09-26Enforce existing 5 action hardcoded undo limit.Justin Clark-Casey (justincc)1-0/+27
This was present in the code but not enforced, which led to a memory leak over time as part properties were changed, whether by viewer, script or another source. This commit enforces that limit, which will soon become configurable. Regression test for undo limit added Should help with http://opensimulator.org/mantis/view.php?id=6279
2012-09-26Add basic undo/redo regression tests.Justin Clark-Casey (justincc)2-2/+131
2012-08-29Fix regression introduced in a0d178b2 (Sat Aug 25 02:00:17 2012) where ↵Justin Clark-Casey (justincc)1-2/+34
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-08-20Add --force flag to "kick user" console command to allow bypassing of recent ↵Justin Clark-Casey (justincc)1-1/+1
race condition checks. This is to allow a second attempt to remove an avatar even if "show connections" shows them as already inactive (i.e. close has already been attempted once). You should only attempt --force if a normal kick fails. This is partly for diagnostics as we have seen some connections occasionally remain on lbsa plaza even if they are registered as inactive. This is not a permanent solution and may not work anyway - the ultimate solution is to stop this problem from happening in the first place.
2012-07-19Add TestCreateDuplicateRootScenePresence() regression test.Justin Clark-Casey (justincc)1-0/+23
2012-07-19Add basic TestCreateRootScenePresence() regression testJustin Clark-Casey (justincc)1-135/+144
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-10Fix recent SOP.GetSittingAvatars() to return null if there are no sitting ↵Justin Clark-Casey (justincc)1-4/+20
avatars rather than throwing an exception. Extends sitting avatar regression tests to test new sitters information
2012-07-05Add OSSL function osForceAttachToAvatarFromInventory()Justin Clark-Casey (justincc)5-30/+35
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-25In AttachmentsModule.DetachSingleAttachmentToInvInternal(), remove ↵Justin Clark-Casey (justincc)1-0/+9
attachment before changing properties for correct inventory serialization. Serialization of attachments requires IsAttachment = false so that correct positions are serialized instead of avatar position. However, doing this when a hud is still attached allows race conditions with update threads, resulting in hud artifacts on other viewers. This change sets SOG.IsDeleted before serialization changes take place (IsDeleted itself is not a serialized property). LLClientView then screens out any deleted SOGs before sending updates to viewers.
2012-06-08Don't make duplicate call to ScenePresence.Close() separately in ↵Justin Clark-Casey (justincc)1-1/+3
ETM.DoTeleport() if an agent needs closing. This is always done as part of Scene.RemoveClient() Also refactors try/catching in Scene.RemoveClient() to log NREs instead of silently discarding, since these are useful symptoms of problems.
2012-06-08Remove duplicate update of user count in Scene.IncomingCloseAgent()Justin Clark-Casey (justincc)1-0/+23
This is already done in Scene.RemoveClient() which IncomingCloseAgent() always ends up calling.
2012-05-24If an agent is still registered as 'in transit' by the source region, don't ↵Justin Clark-Casey (justincc)1-15/+27
allow an immediate teleport back. This is to help relieve a race condition when an agent teleports then immediately attempts to teleport back before the source region has properly cleaned up/demoted the old ScenePresence. This is rare in viewers but much more possible via scripting or region module. However, more needs to be done since virtually all clean up happens after the transit flag is cleared . Possibly need to add a 'cleaning up' state to in transit. This change required making the EntityTransferModule and HGEntityTransferModule per-region rather than shared, in order to allow separate transit lists. Changes were also required in LocalSimulationConnector. Tested in standalone, grid and with local and remote region crossings with attachments.
2012-05-17minor: improve method doc for ↵Justin Clark-Casey (justincc)1-1/+1
TestSameSimulatorSeparatedRegionsCreateAgentFails()
2012-05-17Add regression TestSameSimulatorSeparatedRegionsCreateAgentFails()Justin Clark-Casey (justincc)1-0/+67
2012-05-17Comment out TestSameSimulatorSeparatedRegionsQueryAccessFails() regression ↵Justin Clark-Casey (justincc)1-2/+2
test logging accidentally left in
2012-05-17Add regression TestSameSimulatorSeparatedRegionsQueryAccessFails()Justin Clark-Casey (justincc)1-0/+76
2012-05-01Add regression test for teleporting between neighbouring regions on the same ↵Justin Clark-Casey (justincc)2-8/+107
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.
2012-04-30Create TestHelpers.EnableLogging() and DisableLogging() to turn logging on ↵Justin Clark-Casey (justincc)3-4/+9
and off within tests. This makes *.Tests.dll.config files no longer needed, hence deleted.
2012-04-27Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)19-171/+86
the same simulator. This involves a large amount of change in test scene setup code to allow test scenes to share shared modules SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static May split these out into separate classes in the future.
2012-04-25Add regression test TestSameRegionTeleport()Justin Clark-Casey (justincc)1-0/+36
2012-04-22Make TestSetPhysicsSinglePrim() actually add the object to the scene in ↵Justin Clark-Casey (justincc)1-0/+2
order to test more code paths.
2012-04-22Fix bug where setting phantom on a prim would result in a server log message ↵Justin Clark-Casey (justincc)1-0/+2
rather than setting phantom. This was an oversight when removing some race conditions from PhysicsActor setting recently. Regression tests extended to probe this code path. Extending regression tests required implementation of a BasicPhysicsPrim (there was none before). However, BasicPhysics plugin is still of no current practical use other than to fill in as a component for other parts of regression testing.
2012-04-21Add test for setting physics in a linksetJustin Clark-Casey (justincc)1-2/+28
2012-04-21Add regression test for prim status when root prim in a new linkset is ↵Justin Clark-Casey (justincc)1-0/+19
non-physical
2012-04-21Fix a bug where linking a non-physical prim with a physical prim as root ↵Justin Clark-Casey (justincc)1-0/+19
would make the non-physical prim phantom rather than part of the physics object. On region restart, the whole object would become physical as expected. Observed behaviour from elsewhere is that all prims in a new linkset should take on the status of the root prim. Add regression test for this behaviour.
2012-04-21Add test for correct physics status on linking two physics objectsJustin Clark-Casey (justincc)1-2/+26
Also fixes last build break.
2012-04-21refactor: extract common setup code in SceneObjectStatusTestsJustin Clark-Casey (justincc)1-10/+16
2012-04-21Add TestSetPhysics() to SOP status testsJustin Clark-Casey (justincc)1-0/+20
2012-04-17Add TestGetChildPartPositionAfterObjectRotation()Justin Clark-Casey (justincc)1-1/+37
2012-04-17Add test TestGetChildPartPosition()Justin Clark-Casey (justincc)1-0/+28
2012-04-14Add GroupPosition and GetWorldPosition() checks to TestGetRootPartPosition()Justin Clark-Casey (justincc)1-1/+3
2012-04-14minor: make test names consistentJustin Clark-Casey (justincc)1-1/+1
2012-04-14refactor: move common init code into SetUp() in SceneObjectSpatialTestsJustin Clark-Casey (justincc)1-8/+13
2012-04-14refactor: put SOG position test in a separate TestSceneObjectGroupPosition()Justin Clark-Casey (justincc)1-1/+17
2012-04-14Add simple RelativePosition and OffsetPosition checks to TestGetRootPartPositionJustin Clark-Casey (justincc)1-0/+2
2012-04-14Add very basic TestGetRootPartPosition() testJustin Clark-Casey (justincc)1-0/+65