aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2012-03-22Add llGiveInventory() test from object to object where both objects are ↵Justin Clark-Casey (justincc)1-2/+4
owned by the same user.
2012-03-20Move frame loop entirely within Scene.Update() for better future performance ↵Justin Clark-Casey (justincc)2-8/+6
analysis and stat accuracy. Update() now accepts a frames parameter which can control the number of frames updated. -1 will update until shutdown. The watchdog updating moves above the maintc recalculation for any required sleep since it should be accounted for within the frame.
2012-03-20Remove pointless ThreadAbortException catching in a test that isn't run anyway.Justin Clark-Casey (justincc)1-11/+5
2012-03-02minor: remove mono compiler warningJustin Clark-Casey (justincc)1-2/+1
2012-02-15In ObjectTortureTests, run garbage collector on Teardown and run scene loop ↵Justin Clark-Casey (justincc)1-2/+39
update when scene objects have been deleted. At least on mono 2.6.4, running GC.Collect() is not guaranteed to force gc of all objects when run in the same method where those objects had references. Therefore, GC.Collect() is now being done in the per-script teardown of ObjectTortureTests. In addition, scene loop update is being run after garbage collection in order to clean out the viewer update list of scene objects in the SceneGraph. These measures mean that scene objects/parts are now garbage collected after a test run if deleted from the scene, resulting in a much better memory usage report (though probably still not very accurate). However, deletion takes a very long time - what's really needed is to find out now why the entire scene isn't being GC'd by this measure. This change hasn't yet been applied to the other stress tests.
2012-02-08Stop a scene object from attempting to link with itself (which results in an ↵Justin Clark-Casey (justincc)1-3/+20
exception and constant complaints in v3 viewers). Aims to address http://opensimulator.org/mantis/view.php?id=5878
2012-02-07Add TestAddTaskInventoryItem()Justin Clark-Casey (justincc)1-1/+25
2012-02-04Only look for an uploaded transactional asset in Scene.UpdateTaskInventory ↵Justin Clark-Casey (justincc)2-2/+2
if we have been passed a non-zero transaction ID. This resolves the recent regression from deeb728 where notecards could not be saved in prim inventories. This looks like a better solution than deeb728 since only non-caps updates pass in a transaction ID. Hopefully resolves http://opensimulator.org/mantis/view.php?id=5873
2012-01-26Add basic TestAddScript() regression testJustin Clark-Casey (justincc)1-0/+76
2011-12-12Cleaned up ScenePresence parameters for Flying, WasFlying, FlyingOld and ↵Dan Lake2-2/+2
IsColliding
2011-12-03Split up test SceneHelpers to provide an AddChildScenePresence() callJustin Clark-Casey (justincc)1-0/+1
2011-12-03Remove T012_TestAddNeighbourRegion() and T013_TestRemoveNeighbourRegion() ↵Justin Clark-Casey (justincc)1-70/+5
since they don't do anything useful.
2011-12-03Extend TestCreateChildScenePresence to make assertions both at CreateAgent ↵Justin Clark-Casey (justincc)1-0/+16
stage and then at Scene.AddClient()
2011-12-03Add beginning of ScenePresenceAgentTests.TestCreateChildScenePresence()Justin Clark-Casey (justincc)1-11/+46
This required an option to be added to NullRegionData via ConnectionString for it to act as a non-static instance, so that regression tests (which only load this class once) don't get hopeless confused and complex to compensate. Normal standalone operation unaffected.
2011-12-03Use GetAgentCircuits() to receive a copy of the AgentCircuitsByUUID ↵Justin Clark-Casey (justincc)1-4/+2
dictionary rather than AgentCircuitManager.AgentCircuits directly in "show circuits" to avoid enumeration exceptions
2011-12-03Add agent circuit number checks to TestCloseAgent()Justin Clark-Casey (justincc)1-0/+4
2011-12-03Add basic TestFlyingAnimation() regression testJustin Clark-Casey (justincc)1-0/+70
2011-11-11extract common ScenePresence setup code into Init() method for ↵Justin Clark-Casey (justincc)1-39/+31
ScenePresenceSitTests
2011-11-11add SP.PhysicsActor checks to other sit/stand testsJustin Clark-Casey (justincc)1-0/+4
2011-11-11add sit and stand on ground testJustin Clark-Casey (justincc)1-0/+23
2011-11-11As per mailing list last week, remove facility that would automatically move ↵Justin Clark-Casey (justincc)1-2/+31
the avatar if prim with no sit target was out of sitting range. Now, no movement occurs. Note that you can still sit on a prim with an explicit sit target from any distance, as was the case before.
2011-11-11Bump warp sit distance up to 10 meters, as discussed on opensim-dev mailing ↵Justin Clark-Casey (justincc)1-16/+41
list last week. This means that if the avatar is within 10 meters of the selected target, it sits on it immediately without walking. Existing autopilot outside this range will be disabled in a later commit
2011-11-11Add new ScenePresenceSitTests with a single sit/stand testJustin Clark-Casey (justincc)1-0/+103
2011-11-02Changes UpdateFlag in SOP to an enumeration of NONE, TERSE and FULL.Dan Lake1-8/+8
UpdateFlag is now referenced/used only within SOP and SOG. Outsiders are using ScheduleFullUpdate, ScheduleTerseUpdate or ClearUpdateSchedule on SOP consistently now. Also started working toward eliminating those calls to ScheduleFullUpdate, ScheduleTerseUpdate or ClearUpdateSchedule from outside SOP in favor of just setting properties on SOP and let SOP decide if an update should be scheduled. This consolidates the update policy within SOP and the client rather than everywhere that makes changes to SOP. Some places forget to call update while others call it multiple times, "just to be sure". UpdateFlag and Schedule*Update will both be made private shortly. UpdateFlag is intended to be transient and internal to SOP so it has been removed from XML serializer for SOPs.
2011-10-29Remove completely unused SOG.Rotation parameterJustin Clark-Casey (justincc)1-9/+9
We always use SOP.Rotation instead
2011-10-25Make OpenSim.Framework.Servers.HttpServer rely on OpenSim.Framework instead ↵Justin Clark-Casey (justincc)1-0/+1
of the other way around. This is necessary so that code in HttpServer can use framework facilities such as the thread watchdog for monitoring purposes. Doing this shuffle meant that MainServer was moved into OpenSim/Framework/Servers Also had to make OpenSim.Framework.Console rely on OpenSim.Framework rather than the other way around since it in turn relies on HttpServer MainConsole and some new interfaces had to be moved into OpenSim/Framework to allow this. This can be reverted if parts of OpenSim.Framework stop relying on console presence (cheifly RegionInfo)
2011-10-22Get UUIDGatherer to scan notecards in the graph for asset uuids.Justin Clark-Casey (justincc)1-0/+26
This is to support npc baked texture saving in oars and iars. May address http://opensimulator.org/mantis/view.php?id=5743
2011-10-06Fixed line endings from previous commitDan Lake1-2/+2
2011-10-06Refactored "known child region" in ScenePresence. There were 4 differentDan Lake1-7/+4
ways to access the list/dictionary of child regions and locking was inconsistent. There are now public properties which enforce locks. Callers are no longer required to create new copies of lists.
2011-09-22Reinstate option to land an npc when it reaches a target.Justin Clark-Casey (justincc)1-2/+2
This is moved into ScenePresence for now as a general facility
2011-09-21Move code which handles NPC movement into Scene so that this can also be ↵Justin Clark-Casey (justincc)1-0/+135
used by Autopilot coming from the client side. I thought that I had implemented this but must have accidentally removed it. Adds a regression test to detect if this happens again. Temporarily disables automatic landing of NPC at a target. Will be fixed presently.
2011-09-13stop the duplicate remove of the root part ids from the full part and local ↵Justin Clark-Casey (justincc)1-1/+1
part indexes in SG.DeleteSceneObject() this is unnecessary because the parts array iterated through contains the root part as well as the non-root parts
2011-09-13extend TestGetSceneObjectByPartLocalId() to test state after scene object ↵Justin Clark-Casey (justincc)1-0/+6
deletion