Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add regression test for teleporting between neighbouring regions on the same ↵ | Justin Clark-Casey (justincc) | 2012-05-01 | 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. | ||||
* | Add regression test for teleporting an agent between separated regions on ↵ | Justin Clark-Casey (justincc) | 2012-04-27 | 1 | -90/+128 |
| | | | | | | | | 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. | ||||
* | Add TestSetPhysics() to SOP status tests | Justin Clark-Casey (justincc) | 2012-04-21 | 1 | -1/+1 |
| | |||||
* | Add simple login test with online friends. Add IFriendsModule.GrantRights() ↵ | Justin Clark-Casey (justincc) | 2012-03-30 | 1 | -3/+9 |
| | | | | | | | for granting rights via a module call. Rename IFriendsModule.GetFriendPerms() -> GetRightsGrantedByFriend() to be more self-documenting and consistent with friends module terminology. Add some method doc. | ||||
* | Stop individually deleting objects at the end of each ObjectTortureTest. | Justin Clark-Casey (justincc) | 2012-03-07 | 1 | -1/+1 |
| | | | | | | We can now do this since the entire scene and all objects within it are now successfully gc'd at the end of these tests. This greatly improves the time taken to run each test (by reducing teardown time, not the time to actually do the test work that we're interested in). Slightly simplifies config read in Scene constructor to help facilitate this. | ||||
* | Use a fully stubbed out MockConsole for unit tests rather than inheriting ↵ | Justin Clark-Casey (justincc) | 2012-03-01 | 1 | -1/+1 |
| | | | | | | | | from CommandConsole. This is so that the static MainConsole.Instance doesn't retain references to methods registered by scene and other modules to service commands. This prevents the scene from being garbage collected at the end of a test. This is not the final thing preventing GC - next up is the timer started by SimStatsReporter that holds a reference to Scene that prevents end of test gc. | ||||
* | Add TestAddTaskInventoryItem() | Justin Clark-Casey (justincc) | 2012-02-07 | 1 | -3/+9 |
| | |||||
* | Add a regression test to compile and start a script. Remove ↵ | Justin Clark-Casey (justincc) | 2012-02-07 | 1 | -3/+20 |
| | | | | | | | | Path.GetDirectoryName when getting assembly loading path in Compiler.CompileFromDotNetText(). The Path.GetDirectoryName call in Compiler.CompileFromDotNetText is unnecessary since AppDomain.CurrentDomain.BaseDirectory is always a directory. Later path concatenation is already done by Path.Combine() which handles any trailing slash. Removing Path.GetDirectoryName() will not affect the runtime but allows NUnit to work since it doesn't add a trailing slash to AppDomain.CurrentDomain.BaseDirectory. | ||||
* | Split up test SceneHelpers to provide an AddChildScenePresence() call | Justin Clark-Casey (justincc) | 2011-12-03 | 1 | -10/+25 |
| | |||||
* | Add beginning of ScenePresenceAgentTests.TestCreateChildScenePresence() | Justin Clark-Casey (justincc) | 2011-12-03 | 1 | -0/+3 |
| | | | | | 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. | ||||
* | Get UUIDGatherer to scan notecards in the graph for asset uuids. | Justin Clark-Casey (justincc) | 2011-10-22 | 1 | -3/+14 |
| | | | | | This is to support npc baked texture saving in oars and iars. May address http://opensimulator.org/mantis/view.php?id=5743 | ||||
* | redirect UserInventoryHelpers to use a different CreateNotecardAsset() so we ↵ | Justin Clark-Casey (justincc) | 2011-10-22 | 2 | -12/+19 |
| | | | | can comment out some inconsistency | ||||
* | correct misleading method doc on CreateNotecardAsset() | Justin Clark-Casey (justincc) | 2011-10-22 | 1 | -1/+1 |
| | |||||
* | in AssetHelpers, store the actual text passed in to the method, not the ↵ | Justin Clark-Casey (justincc) | 2011-10-22 | 1 | -2/+2 |
| | | | | string "data" | ||||
* | encode notecard assets in proper format for tests, rather than just using ↵ | Justin Clark-Casey (justincc) | 2011-10-22 | 1 | -1/+6 |
| | | | | whatever string is given | ||||
* | refactor: rename some AssetHelpers.CreateAsset() methods to ↵ | Justin Clark-Casey (justincc) | 2011-10-22 | 2 | -5/+5 |
| | | | | CreateNotecardAsset() | ||||
* | move see_into_this_sim_from_neighbor [Startup] flag parsing into Scene with ↵ | Justin Clark-Casey (justincc) | 2011-10-15 | 1 | -1/+1 |
| | | | | the others | ||||
* | fetch physical_prim switch from [Startup] config from inside scene, as is ↵ | Justin Clark-Casey (justincc) | 2011-10-15 | 1 | -1/+1 |
| | | | | done for most other scene config params | ||||
* | Use scene presence agent id for rezzed object ownership rather than item owner. | Justin Clark-Casey (justincc) | 2011-09-08 | 1 | -2/+1 |
| | | | | These should be identical. However, the item isn't available when rezzing npc attachments. | ||||
* | get rid of appearance null checks - this is never null | Justin Clark-Casey (justincc) | 2011-08-31 | 1 | -0/+1 |
| | |||||
* | Fix bug in persisting saved appearances for npcs | Justin Clark-Casey (justincc) | 2011-08-30 | 1 | -5/+30 |
| | | | | | Assets have to be marked non-local as well as non-temporary to persist. This is now done. Hopefully addresses http://opensimulator.org/mantis/view.php?id=5660 | ||||
* | Stop NPC's getting hypergrid like names in some circumstances. | Justin Clark-Casey (justincc) | 2011-08-19 | 1 | -0/+1 |
| | | | | | This meant punching in another AddUser() method in IUserManagement to do a direct name to UUID associated without the account check (since NPCs don't have accounts). May address http://opensimulator.org/mantis/view.php?id=5645 | ||||
* | Don't try to save changed attachment states when an NPC with attachments is ↵ | Justin Clark-Casey (justincc) | 2011-08-18 | 1 | -1/+1 |
| | | | | | | | removed from the scene. This is done by introducing a PresenceType enum into ScenePresence which currently has two values, User and Npc. This seems better than a SaveAttachments flag in terms of code comprehension, though I'm still slightly uneasy about introducing these semantics to core objects | ||||
* | Add new regression TestRezAttachmentsOnAvatarEntrance() to do simple ↵ | Justin Clark-Casey (justincc) | 2011-08-17 | 2 | -9/+36 |
| | | | | attachments check | ||||
* | When an NPC is created, stop telling neighbouring regions to expect a child ↵ | Justin Clark-Casey (justincc) | 2011-08-09 | 1 | -1/+1 |
| | | | | agent | ||||
* | refactor: Change SceneHelpers.AddClient() to AddScenePresence(). | Justin Clark-Casey (justincc) | 2011-08-06 | 1 | -4/+4 |
| | | | | This seems to make more sense as we can get SP.ControllingClient | ||||
* | rename test SceneSetupHelpers -> SceneHelpers for consistency | Justin Clark-Casey (justincc) | 2011-08-06 | 2 | -2/+2 |
| | |||||
* | Get osNpcCreate appearance working with avatars that are currently in the scene. | Justin Clark-Casey (justincc) | 2011-08-01 | 1 | -3/+3 |
| | | | | | | Had to stop using AvatarService for now since it doesn't store baked texture IDs (which is why this was failing). Also failing because cloning appearance was also cloning the AvatarApperance.Owner field, which we weren't then changing. Extended TestCreate() to check this. | ||||
* | Rename SceneSetupHelpers.AddRootAgent to AddClient() to better represent its ↵ | Justin Clark-Casey (justincc) | 2011-07-09 | 1 | -3/+3 |
| | | | | effects and return object | ||||
* | Add basic flotsam asset cache test for retrieved cached asset. | Justin Clark-Casey (justincc) | 2011-07-04 | 1 | -0/+9 |
| | | | | Disabled temporarily since file system caching disrupts subsequent test runs | ||||
* | Extend TestGiveInventoryFolder() to test giving back the freshly received folder | Justin Clark-Casey (justincc) | 2011-06-04 | 1 | -2/+13 |
| | |||||
* | Fix give inventory tests to use different users rather than (accidentally) ↵ | Justin Clark-Casey (justincc) | 2011-06-04 | 2 | -9/+27 |
| | | | | the same user. Extend TestGiveInventoryItem() to test giving back the same item. | ||||
* | create TestGetInventoryItem() | Justin Clark-Casey (justincc) | 2011-06-04 | 1 | -1/+27 |
| | |||||
* | extend TestGiveInventoryFolder() to check for the receipt by user 2 | Justin Clark-Casey (justincc) | 2011-06-04 | 1 | -0/+21 |
| | |||||
* | add stub UserInventoryTests.GiveInventoryFolder(). Not yet complete | Justin Clark-Casey (justincc) | 2011-06-03 | 1 | -2/+9 |
| | |||||
* | Get rid of OpenSim.Tests.Common.Setup subpackage in favour of just ↵ | Justin Clark-Casey (justincc) | 2011-05-21 | 4 | -4/+4 |
| | | | | OpenSim.Tests.Common instead | ||||
* | rename test helpers enclosing package from Setup to Helpers | Justin Clark-Casey (justincc) | 2011-05-21 | 6 | -0/+1051 |