Commit Graph

474 Commits (639c6bdd625c229252efeeadb65b1b37568c3b61)

Author SHA1 Message Date
Justin Clark-Casey (justincc) 7ff4c2e50b Pull out distinct cache system folders and drop cache methods in InventoryCache 2009-08-28 17:07:17 +01:00
Diva Canto b03eeeb9f6 * Fixes mantis http://opensimulator.org/mantis/view.php?id=4044. Turns out folders were never being removed from trash when they were singled out for purging in trash. They were being removed when Trash was purged as a whole. That behavior is now fixed for the new InventoryService set.
* Removed left-overs from AssetInventoryServer.
2009-08-22 10:24:26 -07:00
Kunnis b1853d9f26 Fixing a spot I missed in assets. Switching Grid to the new naming schema with Store/Get 2009-08-19 23:46:25 +01:00
Diva Canto d519f1885f Added MoveItems, which is most useful upon viewer-delete inventory operation. Moving a batch of items is a 1-time operation. Made it async anyway, so that the viewer doesn't wait in case the DB layer is dumb (which is the case currently). 2009-08-19 10:56:08 -07:00
Diva Canto c5af39239f A better purge of trash folder. 2009-08-19 00:13:51 -07:00
Diva Canto fa8a94577a Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim 2009-08-17 05:55:38 -07:00
Jeff Ames 82c888fc6c Add copyright headers. Formatting cleanup. Fix a compiler warning. 2009-08-17 10:29:06 +09:00
Kunnis dd78c250ae * Added Expression based ignores to the PropertyScrambler, which makes a lot of the tests clearer because I'm not constantly resetting properties. 2009-08-16 14:34:16 -04:00
Teravus Ovares (Dan Olivares) acc14c472d Merge branch 'master' of ssh://MyConnection/var/git/opensim 2009-08-16 12:15:14 -04:00
Teravus Ovares (Dan Olivares) 5e391b9f7c * ShortVersion, another attempt at fixing the test thread death that randomly occurs.
* LongVersion nIni may be causing the test thread death.  Pausing OpenSimulator during startup causes a nIni error that makes debugging startup operations difficult for users.  It might be because when it's in pause mode, something else reads from the nini config passed?   If it is, it might not be fixable..   however, if it's concurrency that causes nini death it would make sense to give each section of the tests a new IConfigSource so that they don't read from the same configsource at the same time.
2009-08-16 12:14:49 -04:00
Diva Canto 6808b9109e Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim into inventory-connector 2009-08-16 08:59:58 -07:00
Adam Johnson a42569d896 Thanks dmiles for a patch that adds PacketType.RequestMultipleObjects Packet Handler - ref mantis #4010 2009-08-16 15:06:06 +09:00
Diva Canto cd444c1e82 Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim 2009-08-14 14:04:15 -07:00
Justin Clark-Casey (justincc) ff28ecee1b Re-enable TestSaveIarV0_1()
Implement more parts of TestAssetService
2009-08-14 20:07:13 +01:00
Diva Canto 034c9cf606 Added GetAssetPermissions. Few last bugs nixed. This is ready for testing. 2009-08-13 17:34:15 -07:00
Diva Canto 5246dc33dc Renamed QueryItem/QueryFolder to GetItem/GetFolder. The word 'query' starting to get on my nerves. 2009-08-13 14:10:12 -07:00
Jeff Ames 50f29752f5 Formatting cleanup. Add copyright headers. 2009-08-13 11:48:39 +09:00
Diva Canto dae9a111aa Added new operations to mock inventory service in tests. 2009-08-11 13:16:53 -07:00
Justin Clark-Casey (justincc) 226c082ed4 Establish CachedUserInfo.OnInventoryReceived event so that region/test inventory code can be written with the async inventory fetch 2009-08-11 16:45:16 +01:00
Arthur Valadares 2054093908 Added some needed comments to SceneSetupHelper (actually just retriggering panda) 2009-08-11 12:24:41 -03:00
Arthur Valadares 18aa2ea0c5 * Improves SceneSetupHelper to allow the tester to choose a real or mock, inventory and asset, service modules. The boolean startServices was replaced with realServices string. If the string contains the word asset, it will start a real asset module, if it contains inventory, it starts a real inventory. Otherwise, it use mock (NullPlugin-like) objects, for tests that don't really need functionality.
* SetupScene is now actually sharing the asset and inventory modules if the tester wishes to have multiple regions connected. To link regions, just start SetupScene with the same CommunicationManager for all scenes. SceneSetupHelper will hold a static reference to the modules and won't initialize them again, just run the scenes through the modules AddRegion, RegionLoaded and PostInitialize.

* With the recent changes, both asset and inventory (and in the future, user) services should always be asked from the scene, not instantiated alone. The tests should reflect this new behavior and always start a scene.
2009-08-11 12:07:54 -03:00
Diva Canto 5d2a157e64 First pass at cleaning up old OGS1 and Local Inventory: removed everything-inventory in CommsManager, which wasn't actively used anymore. 2009-08-10 10:48:21 -07:00
Justin Clark-Casey (justincc) da82fe0409 * Fix test failure by setting up MainConsole.Instance in SceneSetupHelpers.SetupScene() 2009-08-10 16:55:53 +01:00
Diva Canto a50904a68b More clean up from asset cache legacy. None of these classes are used anymore. 2009-08-10 06:41:03 -07:00
Teravus Ovares (Dan Olivares) 2b990a61bf This is the second part of the 'not crash on regionsize changes'. This lets you configure region sizes to be smaller without crashing the region. I remind you that regions are still square, must be a multiple of 4, and the Linden client doesn't like anything other then 256. If you set it bigger or smaller, the terrain doesn't load in the client, the map has issues, and god forbid you connect it to a grid that expects 256m regions. 2009-08-07 20:31:48 -04:00
Justin Clark-Casey (justincc) 1f7466e5c3 test item data storage impementation (unused as of yet) 2009-08-05 20:04:27 +01:00
Justin Clark-Casey (justincc) 07e00e110d Reinstate TestLoadIarV0_1ExistingUsers(), removing unnecessary wait 2009-08-05 19:38:45 +01:00
Arthur Valadares 7bf59c551e * Updates RESTInterregionComms and LocalInterregionComms to the new region module interface. This fixes an issue where region references were being added but weren't being deleted,
causing those "unnotified circuit" messages.
* Also fixes tests accordingly

- Fixes Mantis #3452
- Fixes Mantis #3388
- Fixes Mantis #3871
- Related to Mantis #3493
2009-07-23 16:57:41 +00:00
Teravus Ovares 08819bcbea * Created a way that the OpenSimulator scene can ask the physics scene to do a raycast test safely.
* Test for prim obstructions between the avatar and camera.  If there are obstructions, inform the client to move the camera closer.  This makes it so that walls and objects don't obstruct your view while you're moving around.   Try walking inside a hollowed tori.   You'll see how much easier it is now because your camera automatically moves closer so you can still see.
* Created a way to know if the user's camera is alt + cammed or just following the avatar.
* Changes IClientAPI interface by adding SendCameraConstraint(Vector4 CameraConstraint)
2009-07-19 02:32:02 +00:00
MW acea31518b fixed the bug where changing the rotation of a selection of prims in a linkset, made each of those prims rotate around its own centre rather than around the geometric centre of the selection like they should do (and like the client expects).
This involved adding a new OnUpdatePrimSingleRotationPosition event to IClientAPI so that we can get the changed position from the client. 
Btw adding new events to IClientAPI is really tedious where you have to copy the change across to at least 5 or 6 other files. 
[Note this doesn't fix the bug where any rotation changes to the root prim (but not the whole linkset) cause rotation errors on the child prims.]
2009-07-17 14:58:54 +00:00
Melanie Thielker 8c8edb0c4e Explicitly set up the http server singleton fo the tests 2009-07-10 03:54:22 +00:00
Melanie Thielker c310fb11f4 Remove all references to HttpServer from CommsManager (all incarnations)
Change all uses of the HttpServer properties to use the new singleton
2009-07-10 02:22:26 +00:00
Melanie Thielker 3564271c2d Restore the functionality that was removed in r9928. This lets the load
balancer plugin work again. Create a new method, GetClientEP, to retrieve
only the EndPoint for script usage. Marked the purpose of the method
in IClientAPI.cs with a warning. Also restored the corresponding SetClientInfo
functionality.
2009-07-01 15:47:52 +00:00
Sean Dague 1adeb8ad77 From: Chris Yeoh <yeohc@au1.ibm.com>
This patch ensures that the touch positions are set during touch_end
events (currently only working for touch_start and touch events).
2009-06-19 12:21:20 +00:00
diva 6abffedab5 Renamed Region/CoreModules/ServiceConnectors to Region/CoreModules/ServiceConnectorsOut. No functional changes. 2009-06-14 19:44:56 +00:00
Arthur Valadares c13f3649d2 * Reinstating UserProfileCacheServiceTests. One test still fails (TestUpdateFolder) 2009-06-11 18:27:12 +00:00
diva a31df0b814 duh. wrong variable name in SceneSetup. 2009-06-10 14:15:50 +00:00
diva b3ad2941ca The previous commit was still wrong. 2009-06-10 13:49:13 +00:00
diva 8dc9f18e7c Attempt at fixing the inventory archiver tests. 2009-06-10 13:46:38 +00:00
Jeff Ames a23d64dec1 Formatting cleanup. 2009-06-10 04:28:56 +00:00
Justin Clarke Casey 87097f2484 * Fix unit tests so that they correctly handle 404 missing asset response
* I didn't think there were tests in this area - my bad
2009-06-05 17:03:44 +00:00
Jeff Ames 840de6c036 Minor: Change OpenSim to OpenSimulator in older copyright headers and LICENSE.txt. 2009-06-01 06:37:14 +00:00
Justin Clarke Casey fa04937a82 * Add xml2 load test 2009-05-29 16:11:33 +00:00
lbsa71 0787967f59 * So, giving up on my efforts to de-duplicate the asset handlers. I'll just service commit my current state, then start over and this time concentrating only on the new handlers.
* Fixed some erroneous refs in Tests.Common
2009-05-27 18:27:28 +00:00
Sean Dague 85e91ddb67 Revert "* Added IntegrationTest Attribute and tagged the ODETestClass"
This reverts commit 8f0096cc7b112fea8f69f391224911f624482747.

To get us back to compiling on fresh checkouts.
2009-05-27 12:53:29 +00:00
lbsa71 17f0a4be53 * Added IntegrationTest Attribute and tagged the ODETestClass 2009-05-27 12:36:58 +00:00
Dr Scofield d4d9d8ed8f converting CapabilitiesModule to new region module scheme 2009-05-25 11:11:04 +00:00
Dr Scofield 7929970257 letting TestClient implement IClientCore as well to fix test case
failure due to new NAT code
2009-05-25 10:40:09 +00:00
Justin Clarke Casey a3145e4e5a * Reintroduce save iar test, which wasn't working because the asset service hadn't been manually post intiailized 2009-05-22 19:59:45 +00:00
Jeff Ames e0bc5c5db2 Add copyright headers, formatting cleanup. 2009-05-20 01:32:06 +00:00
Melanie Thielker 23d902be42 Remove the old asset cache and local services and the configurations for them 2009-05-18 23:18:04 +00:00
Justin Clarke Casey ad7214620f * Re-enable save oar test by loading asset data plugins from test mock class
* Actually spit out the exception caught by the plugin loader - not much point having plugins throw exceptions if we are just going to ignore them
2009-05-18 17:46:14 +00:00
diva 720e2bc5d9 Renaming [ServiceConnectors] back to [Modules]. 2009-05-17 15:37:50 +00:00
Jeff Ames 5cfd84c924 Update svn properties. 2009-05-17 10:26:00 +00:00
Homer Horwitz 99cf8e3f5a Send the owner name, not the client name on SendDialog.
This modifies IClientAPI.SendDialog slightly.
Fixes Mantis #3661.
2009-05-16 16:01:25 +00:00
diva 5e4fc6e91e Heart surgery on asset service code bits. Affects OpenSim.ini configuration -- please see the example. Affects region servers only.
This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing.
Known problems: 
* HG asset transfers are borked for now
* missing texture is missing
* 3 unit tests commented out for now
2009-05-15 05:00:25 +00:00
lbsa71 95d87244b0 * Moved BaseRequestHandlerTestHelper to OpenSim.Tests.Common.Setup for great justice. 2009-05-14 08:21:14 +00:00
lbsa71 c6e2fc947b * Changed auto-properties to properties with backing field
* This fixes mantis #3650
2009-05-14 08:12:23 +00:00
lbsa71 40e95cab02 * Added some more tests to the GetAssetStreamHandlers 2009-05-13 17:11:53 +00:00
Melanie Thielker 1b7d0a6c93 Paving the way for syncing group permissions across a grid 2009-05-12 14:59:11 +00:00
Jeff Ames 5164403676 Update svn properties. 2009-05-11 15:14:15 +00:00
lbsa71 54b5346f16 * Extracted common superclass for GetAssetStreamHandler and CachedGetAssetStreamHandler
* Added some more tests
2009-05-08 15:44:35 +00:00
lbsa71 8ac73be917 * Introduced new HttpServer.Tests project
* Split the GetAssetStreamHandler testing into separate tests for BaseRequestHandler
* Ignored some gens
2009-05-08 06:11:44 +00:00
Sean Dague ce0a84cbc0 instrument most of the tests with a new InMethod function that may help us figure
out where that pesky deadlock is during test runs.
2009-05-07 19:07:08 +00:00
Dr Scofield 1352a19838 refactoring Scene.NewUserConnection() to be simpler and clearer. 2009-05-06 20:02:49 +00:00
Dr Scofield e0a06f6416 - moving banned check and public/private check to
Scene.NewUserConnection()
- adding reason reporting

this enforces estate bans very early on and prevents us from
circulating client objects that we'd then have to retract once we
realize that the client is not allowed into the region
2009-05-05 16:17:52 +00:00
Melanie Thielker acfb5051cd Intermediate commit. WILL NOT COMPILE! 2009-05-04 20:15:39 +00:00
Melanie Thielker 36dd346a91 Add a method to flush the prim update buffers once a frame, since the timer
appear to be too slow to be useful, or fail too fire. I may remove the timers
as a consequence if this.
2009-05-04 14:25:19 +00:00
Melanie Thielker 334738fca9 Thank you, mpallari, for a patch that increses efficiency by combining
avatar updates into a single packet.
Applied with changes.
Fixes Mantis #3136
2009-04-30 11:58:23 +00:00
Justin Clarke Casey 8fe70c826d * minor: move user profile test utils to test/common/setup for future reuse 2009-04-24 19:19:19 +00:00
Justin Clarke Casey 0d51c22620 * Allow interested user data plugins to store temporary user profiles
* Database and the OGS1 plugins are not interested and hence ignore these calls
2009-04-23 18:57:39 +00:00
Justin Clarke Casey ef9d140022 * Add user data plugin to store temporary profiles (which are distinct from cached)
* Plugin not yet used
* Existing functionality should not be affected in any way
2009-04-23 18:24:39 +00:00
Justin Clarke Casey 342126b7b9 * Resolve http://opensimulator.org/mantis/view.php?id=3509 by putting some service initialization into CommsManager
* What is really needed is a plugin and interface request system as being done for region modules
2009-04-22 22:19:43 +00:00
Justin Clarke Casey 2c81e41c8a * Fission OGS1UserServices into user service and OGS1 user data plugin components
* Make OGS1UserServices inherit from UserManagerBase
* This allows grid mode regions to use the same user data plugin infrastructure as grid servers and standalone OpenSims
2009-04-22 18:15:43 +00:00
Melanie Thielker d91330ea35 Add PlacesQuery packet 2009-04-20 20:43:48 +00:00
Melanie Thielker 4b85cbf0b6 Correctly flag group owned prims in the land prim list 2009-04-16 01:01:40 +00:00
Melanie Thielker ac96722c1d Fix build break and change some groups interfaces 2009-04-16 00:46:24 +00:00
Melanie Thielker 7306b73f02 Commit the group deeding support, thank you, mcortez 2009-04-15 21:07:09 +00:00
Justin Clarke Casey fa9b9126ee * Resolve unit test failure introduced in r9148 (probably)
* Have the test scene always return success for session id authentication for now
2009-04-15 17:40:04 +00:00
Justin Clarke Casey d0744f8eca * Make archiver tests pump the asset server manually instead of starting the normal runtime thread
* This may eliminate the occasional archive test freezes, since they appeared to occur when somehow the asset server didn't pick up on the presence of a request in the asset 
quque
2009-04-14 18:49:45 +00:00
Justin Clarke Casey 1894157dd3 * Explicitly start the asset server thread so that unit tests can run single rather than multi-threaded (which may be behind the occasional test freezes) 2009-04-14 17:15:09 +00:00
Justin Clarke Casey ad2bd74057 * refactor: rename AssetCache.Initialize() to AssetCache.Reset() to avoid having Initialise() and Initialize() in the same class - very difficult to read. 2009-04-14 16:36:32 +00:00
Jeff Ames cad0aab793 Formatting cleanup. 2009-04-14 11:38:33 +00:00
Jeff Ames 6e19fb8593 Add copyright headers. 2009-04-14 10:56:24 +00:00
Jeff Ames fa29cf5c50 Update svn properties. 2009-04-14 10:00:13 +00:00
Melanie Thielker a0417f5791 Thank you, Fly-Man, for a patch that adds the stub to handle the
avatar interests update.
2009-04-14 03:44:27 +00:00
Homer Horwitz 6db21bbf97 - Moved TerrainModule to the new region-module system.
- Fixed some locking issues. Either lock, or don't (if you don't have to). Only locking access half of the time won't work reliably.
- Had to adapt test helpers that use the "old" IRegionModule. TerrainModule isn't one anymore.
2009-04-13 21:23:33 +00:00
nlin 8e6c20b27f Handle ObjectSpin* packets to spin physical prims on Ctrl+Shift+Drag
Addresses Mantis #3381

The current implementation works as expected if the object has no rotation or 
only rotation around the Z axis; you can spin the object left or right (around
the world Z axis).

It works a little unexpectedly if the object has a non-Z-axis rotation; in this
case the body is spun about its local Z axis, not the world Z-axis. (But SL 
also behaves oddly with a spin on an arbitrarily rotated object.)
2009-04-10 06:39:52 +00:00
lbsa71 6af0751cc5 * Tagged long running tests with LongRunningAttribute.
* Now, the 144 unit tests takes roughly as long time to run (16s on my laptop) that the 10 long running takes. The database tests takes forever.
* Feel free to run the unit tests as you code, and the rest before commit.
2009-04-09 20:06:27 +00:00
lbsa71 5572a00295 * Moved the DatabaseTestAttribute to Test.Common, and thus included ref to that in all db tests. *phew* 2009-04-09 16:40:02 +00:00
Justin Clarke Casey ed6165ab9c * Apply http://opensimulator.org/mantis/view.php?id=3227
* Implement "Add To Outfit"
* Thanks FredoChaplin
2009-04-07 17:46:23 +00:00
Adam Frisby 9e51c2db95 * Implements World.Parcels[] array for MRM scripting. 2009-04-06 07:17:23 +00:00
Homer Horwitz 8136cf4075 Thanks jonc, for a patch that adds rendering of classic clouds.
First part of Mantis #964, the necessary clouds image will follow separately.
2009-04-04 15:43:02 +00:00
Justin Clarke Casey 2914bfe7b0 * Fix test breakage by always inserting a gods module when testing 2009-03-30 19:09:57 +00:00
Melanie Thielker f88d755f96 Add PickInfoReply packet.
Fixes Mantis #3324
2009-03-30 11:51:34 +00:00
Melanie Thielker c483206fd7 Change the client API to use GridInstantMessage for the "last mile" of IM
sending. With this change, all methods that handle IM now use GridInstantMessage
rather than individual parameters.
2009-03-29 05:42:27 +00:00
Melanie Thielker 404bfdc9a6 Finish the offline IM module (still needs a server). Add rudimentary
support for the mute list (no functionality yet, but allows the
RetrieveInstantMessages event to fire now).
2009-03-29 00:48:34 +00:00
Melanie Thielker 4f6c4378da Add mute list request event and dummy response 2009-03-28 04:21:44 +00:00
Teravus Ovares f5812b3702 * Adds AgentUUIDs into the CourseLocationUpdate to improve compatibility with LibOMV based clients.
* Modifies the IClientAPI!  So client stacks will need to be modified!
2009-03-28 01:40:33 +00:00
Melanie Thielker cbef90fec6 Add the events needed for profiles.
Fixes Mantis #3324
2009-03-27 22:47:41 +00:00
Melanie Thielker 37e81c7d54 Remove a hardcoded flow/dependency on the money module from LLCLientView 2009-03-27 18:51:45 +00:00
Melanie Thielker 412112acba Committing partial work on passing folders across instances. This may crash. 2009-03-23 00:11:34 +00:00
Melanie Thielker 1121a214b9 Add a QueryItem method to the inventory subsystem. Currently implemented for
MySQL only, stubs for the others. This allows updating the cache with a single
item from the database.
2009-03-21 17:46:58 +00:00
Justin Clarke Casey a02c3caa0d * Move SceneObject tests into their proper namespace
* Add some more debug code to narrow down where the tests are freezing
2009-03-12 18:13:51 +00:00
Justin Clarke Casey ae759f2d06 * Add basic asset cache get test 2009-03-09 19:40:32 +00:00
Mike Mazur a2f07ecd2e Implemented FetchAssetMetadataSet in DB backends.
This method fetches metadata for a subset of the entries in the assets
database. This functionality is used in the ForEach calls in the asset
storage providers in AssetInventoryServer. With this implemented,
frontends such as the BrowseFrontend should now work.

- MySQL: implemented, sanity tested
- SQLite: implemented, sanity tested
- MSSQL: implemented, not tested
- NHibernate: not implemented
2009-03-09 07:29:34 +00:00
Sean Dague 57ab79e331 * Update ScenePresenceTests to reflect current REST communication workflow.
* Fixed an issue with AssetCache where it would break unit tests randomly.

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-02-26 21:29:16 +00:00
Melanie Thielker ed2de7ac82 Plumb in the RetrieveInstantMessages event that is sent by the viewer
when it is ready to receive offline IM
2009-02-26 20:11:55 +00:00
diva 33330297d6 THE BIG ANTI-REMOTING SCHLEP -- StartRemoting is no more. Sims in older versions will have a hard time communicating with sims on this release and later, especially if they haven't transitioned to RESTComms at all.
There's still some cleanup to do on assorted data structures, but the main functional change here is that sims no longer listen on remoting ports.
2009-02-20 03:39:50 +00:00
lbsa71 b99d9bdeb1 * Reverted the AssetServer fix, apparently something was dependent on IAssetDataPlugin being in OpenSim.Data 2009-02-19 19:32:53 +00:00
lbsa71 b5502ef3c3 * Extracted IAssetData and moved it to OpenSim.Framework to prepare to get rid of ugly CoreModules dependency on AssetServer.exe
* And yes, the IAssetDataPlugin is misnomed, which became apparent on extracting it.
2009-02-19 18:40:32 +00:00
Melanie Thielker 863556f2cc Thank you, Snowdrop, for a patch that makes the callback ID parameter
usable. Applied with formatting changes, please don't introduce
K&R style indentations into OpenSim
Fixes Mantis #3190
2009-02-19 03:09:56 +00:00
Melanie Thielker 3130784934 Re-add the objectID field to the anim pack, that was deemed unneccessary
and dropped nonths ago, because it is required to get smooth region
crossings with AO running. Without it, in some corner cases, anims will
continue to run in an unstoppable state.
2009-02-17 04:16:42 +00:00
Justin Clarke Casey 93837807ff * refactor: remove AssetCache field hanging off Scene
* This is always available at Scene.CommsManager.AssetCache
2009-02-16 19:15:16 +00:00
Justin Clarke Casey ec07e1aad6 * Iniital inventory archive test code. Doesn't actually do any testing yet 2009-02-16 18:33:05 +00:00
Justin Clarke Casey 8645c7482d * Change SendBulkUpdateInventory from two methods to one which accepts an InventoryNode 2009-02-11 19:57:45 +00:00
Sean Dague 8088802c21 From Alan Webb <awebb@linux.vnet.ibm.com>
These changes replace all direct references to the AssetCache with
IAssetCache. There is no change to functionality. Everything works as
before.

This is laying the groundwork for making it possible to register
alternative asset caching mechanisms without disrupting other parts of
OpenSim or their dependencies upon AssetCache functionality.
2009-02-09 21:47:55 +00:00
Dr Scofield a89d097355 starting phase 2 of the OpenSim.Region.Environment commit: relocating
OpenSim.Region.Environment.Modules.Agent en bloc to OpenSim.Region.CoreModules
2009-02-09 09:16:15 +00:00
Dr Scofield 9b66108081 This changeset is the step 1 of 2 in refactoring
OpenSim.Region.Environment into a "framework" part and a modules only
part. This first changeset refactors OpenSim.Region.Environment.Scenes,
OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces
into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region
modules in OpenSim.Region.Environment.

The next step will be to move region modules up from
OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and
then sort out which modules are really core modules and which should
move out to forge.

I've been very careful to NOT BREAK anything. i hope i've
succeeded. as this is the work of a whole week i hope i managed to
keep track with the applied patches of the last week --- could any of
you that did check in stuff have a look at whether it survived? thx!
2009-02-06 16:55:34 +00:00
Mike Mazur d3eae4073e - move OpenSim/Framework/IUserData.cs to OpenSim/Data/IUserData.cs
- trim trailing whitespace
2009-02-03 05:20:35 +00:00
Mike Mazur 9377c6f2b2 - move OpenSim/Framework/IInventoryData.cs to
OpenSim/Data/IInventoryData.cs
- trim trailing whitespace
2009-02-03 05:20:26 +00:00
Mike Mazur e12b0a2496 - move IAssetDataPlugin from OpenSim/Framework/IAssetProvider.cs to
OpenSim/Data/IAssetData.cs
- remove some trailing whitespace
2009-02-03 05:20:16 +00:00
Mike Mazur f8e45e8e98 Rename IAssetProviderPlugin to IAssetDataPlugin aligning with the other data plugins. 2009-02-03 05:20:03 +00:00
Justin Clarke Casey f351ab62ec * furhter simplify test setups for objects 2009-01-30 18:38:32 +00:00
Justin Clarke Casey 7a751f6940 * minor: stop bothering to set parts to phantom within test setups - tests now seem to pass without having to do this 2009-01-30 18:28:05 +00:00
Justin Clarke Casey 664f983943 * Extend archive test to check for the presence of a control file in a saved archive 2009-01-23 19:24:36 +00:00
Justin Clarke Casey f8aea3724d refactor: move test modules set up code to common function 2009-01-23 17:55:29 +00:00
Justin Clarke Casey ee3c61247e * refactor: move scene setup code into common test code assembly 2009-01-23 17:32:38 +00:00
Justin Clarke Casey 884009ed33 * Add some caps seed capability path checking to the simple non neighbours standalone region teleport test 2009-01-22 19:46:31 +00:00
Justin Clarke Casey 37fa677548 * refactor: Extract caps related code from scene and put into a region module
* No functional changes in this revision
2009-01-21 21:14:17 +00:00
Justin Clarke Casey eca6442bae * Rig up enough infrastructure to actually perform a successful 'standalone' teleport unit test with checks that the scene presence disappeared from sceneA and appeared in
sceneB
* However, I'm not convinced that the actual process in the test completely reflects reality, and a lot of stuff had to be rigged up (which should get resolved over time)
2009-01-16 21:56:13 +00:00
Justin Clarke Casey 093adb2113 * Add new unit test for simple teleport in a standalone.
* Does not yet check results.
2009-01-15 21:27:55 +00:00
Sean Dague 9dff38ca14 * Extended TextureSenderTests and modified TestClient.cs with new methods
From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-01-13 19:55:07 +00:00
Justin Clarke Casey ade107f04f * Separate starting a client thread into a separate Start() method (which matches the existing Stop() and Restart() methods) 2009-01-12 19:37:56 +00:00
Justin Clarke Casey d4d2c19594 * Extend PacketHandlerTest to fire in a packet.
* Can't test result yet since the Client thread handles it with unpredictable timing
2009-01-12 18:45:03 +00:00
Sean Dague d770bea291 Enhanced LoginServiceTests to test for authentication and response
Expanded TestUserDataPlugin to cover new methods

From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
2009-01-12 15:33:56 +00:00
Melanie Thielker 7c7ea57c5c Finish dwell sending, adding the forgotten method body.
Add UserInfo and a dummy reply to enable Hippo Viewer users to
disable IM logging (option was greyed out in OpenSim before)
2009-01-09 02:59:56 +00:00
Justin Clarke Casey b6ee2f15ba * refactor: Remove the need to separately pass in the http listener to the scene - this is always available via CommsManager 2009-01-06 15:09:52 +00:00
Justin Clarke Casey 0b07c9762b * Simplify test code by always setting up mock 'in memory' user and inventory data plugins for every TestCommunicationsManager
* imo the gain in simplcity of test code outweighs the very small cost of setting up some stuff that some tests will never use
2009-01-05 18:00:53 +00:00
Justin Clarke Casey 04ffcce7ea * Extend stub to test the successful login of a user on the local login service
* Test does not do authentication
2009-01-05 17:38:39 +00:00
Justin Clarke Casey 0b8d22ab54 * Check in login service tests beachhead 2009-01-05 16:30:35 +00:00
Melanie Thielker 7beb8a5abb Plumb the remaining dwell packets 2009-01-03 20:45:33 +00:00
Melanie Thielker 23844a9073 Plumb the profile reply packets for picks, classifieds and notes 2008-12-25 20:28:13 +00:00
Melanie Thielker 318de200bd Plumb in EventNotification* and EventGodDelete 2008-12-23 23:41:46 +00:00
Melanie Thielker fc053a6af8 Plumb in the 4 missing classified events and the 3 packet methods 2008-12-23 18:16:30 +00:00
Teravus Ovares 119104e35b * Re-implement packet tracking in IClientAPI so we can see what's going on in the client network in the simstats manager. This makes packets in per second, packets out per second, and unacked bytes work again in the simulator stats section. 2008-12-21 00:11:54 +00:00
Melanie Thielker 008e1fe8df Plumb the TP-Sending packets 2008-12-14 05:49:07 +00:00
Justin Clarke Casey b1f018aa26 * Create update folder test
* Correct small logic elidation
2008-12-12 20:43:42 +00:00
Justin Clarke Casey 1531035b14 * Actually properly enable the purge folders test and correct some problems 2008-12-12 20:04:58 +00:00
Justin Clarke Casey 7bbab12158 * Add user info move inventory folder test 2008-12-12 19:24:45 +00:00
Justin Clarke Casey 0e870400ca * Delete currently unrun TestInventory.cs superseded by BasicInventoryTests 2008-12-11 18:30:57 +00:00
Justin Clarke Casey bec3993849 * Fold mock classes into existing OpenSim/Tests/Common assembly rather than sprouting another one 2008-12-11 18:07:23 +00:00
Justin Clarke Casey e02aaaf9db * minor: Move mock test classes into mock namespace 2008-12-11 16:40:22 +00:00
Justin Clarke Casey c9ae8fce5e * refactor: Move test infrastructure code to its own package so that it can be reused by more than Environment tests
* This shuffles the test packages in prebuild.xml below it so they can all potentially reference it
2008-12-10 20:57:15 +00:00
Sean Dague ce0a8d7bef changes to Test directory structure per opensim-dev conversation 2008-09-08 20:34:45 +00:00
Melanie Thielker 6447d7132f Adapt the unit tests to the new list rules, change some casts to
new method for testing
2008-09-08 19:29:16 +00:00
Mike Mazur 3cf92cb511 Use older ExpectedException attribute format. Previously tests were failing on NUnit <2.2.8. 2008-09-08 08:20:19 +00:00
Mike Mazur 993384d348 Remove trailing whitespace. 2008-09-08 01:42:47 +00:00
Mike Mazur ec13642e1a Convert TestStringsWithEscapedQuotesAndComments to use concatenated expected string. 2008-09-07 08:00:41 +00:00
Teravus Ovares 7d89e12293 * This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point.  Regular people should let the dust settle.
* This has been tested to work with most basic functions. However..   make sure you back up 'everything' before using this.  It's that big!  
* Essentially we're back at square 1 in the testing phase..  so lets identify things that broke.
2008-09-06 07:52:41 +00:00
Dahlia Trimble 7d7f57a94d more unit test cross-platform compatibility tweaks 2008-09-06 04:55:05 +00:00
Dahlia Trimble 01c34d5e04 more unit test tweaks in the name of cross-platform compatibility 2008-09-06 04:01:39 +00:00
Dahlia Trimble 5446bdff09 Revert changes to TestStringsWithEscapedQuotesAndComments() so it will work in Bamboo instead of windows 2008-09-06 01:22:39 +00:00
Dahlia Trimble 88cdd266ef reformatted some of unit test standards to allow them to work when OpenSim is built in Visual Studio 2008-09-06 00:58:56 +00:00
Charles Krinke 947242f476 Mantis#2126. Thank you kindly, Ralphos for a patch that addresses:
Types extracted from a LSL_Types.list have to be down-cast initially 
to the exact type of value type object that the Object actually is.
This would make for very cumbersome, ugly code when extracting list 
parameter items in ll functions where a few implicit conversions 
should be applied such as key -> LSLString and LSLInteger -> LSLFloat 
(but not LSLFloat -> LSLInteger). This patch adds a set of GetXXXItem 
member functions to the LLS_Type.list class, where XXX is the name 
of the LSL_Type to be extracted: LSLFLoat, LSLInteger etc. All take 
a single, int parameter that is the item number to be extracted.
2008-09-05 23:26:35 +00:00
Sean Dague d363661a7e complete rationalization of unit tests that we currently run 2008-09-04 22:11:13 +00:00
Sean Dague fb9bd7dec6 normalize naming for OpenSim.Tests.Framework.dll 2008-09-04 22:06:18 +00:00
Melanie Thielker ef27c8817f Mantis #2112
Thannk you, ralphos, for a patch to clean up list item type handling
and add a missing explicit cast in Shared/
2008-09-03 18:57:06 +00:00
Melanie Thielker 2e4a5aa98a Fix and reactivate the unit tests on the XEngine 2008-09-02 13:38:14 +00:00
Melanie Thielker 14a218dbc9 Temporarily disable the unit tests for Shared/ until they can be updated. 2008-09-02 06:19:55 +00:00
Melanie Thielker 2fbebbb644 First batch of the unit test changes for the new constants semantics
in XEngine. This turned out to be a lot of work to catch up.
2008-09-02 06:02:14 +00:00
Mike Mazur 2b83169c4b Adding unit test for issue 2006, though it's commented out as those compiler
tests tend to tank on our continuous build server.
2008-08-20 06:09:11 +00:00
Jeff Ames 6ef9d4da90 Formatting cleanup. 2008-08-18 00:39:10 +00:00
Justin Clarke Casey 79efe37a99 * minor: rip out userserver stress project which never got filled out 2008-08-16 20:31:07 +00:00
Jeff Ames 0718aa0b7f Minor formatting cleanup. 2008-08-07 12:55:46 +00:00
Mike Mazur ddf126321c Thanks, M. Igarashi & nlin, for a patch that implements unary minus operator
for Vector3 type. Fix issue 1872.
2008-07-31 09:34:13 +00:00
Mike Mazur 2270b25265 Thanks, sempuki, for a patch that moves all Grid Server's plugins to
PluginLoader. Fix issue 1871.
2008-07-31 09:24:28 +00:00
Mike Mazur 16cf5aa2b8 Allow the list hack from issue 1863 to compile, however its behavior is
different than in SL. See http://opensimulator.org/mantis/view.php?id=1863 for
details.
2008-07-31 07:11:49 +00:00
Mike Mazur 57ec7a26cd -make ZERO_VECTOR and ZERO_ROTATION static readonly properties so they can be
used in scripts
-cast from bool to LSL{Integer,Float,String} so functions such as `integer
isZero(integer x) { return (x == 0); }` work
-progress on issue 1863
2008-07-31 07:11:41 +00:00
Mike Mazur 56c4cc39ff Allow assignments in if/while/do-while control statements. Fix issue 1862. 2008-07-31 04:13:46 +00:00
Mike Mazur eef3864278 Fix issue 1860; exception thrown in the parser on if/if-else/for/while/do-while
statements with no body.
2008-07-31 01:27:33 +00:00
Mike Mazur 1c8f490573 More LSL_Types implicit/explicit cast changes. Fix issue 1854. 2008-07-31 00:29:19 +00:00
Mike Mazur f6fa4ada4e When casting strings to int, use double.Parse() as strings may be floats. With
this commit, issue 1822 should be fixed.
2008-07-28 07:46:53 +00:00
Mike Mazur d959c65b91 -implement LSLString -> Quaternion explicit cast
-sync Shared/LSL_Types.cs with Common/LSL_Types.cs
-get the test script in issue 1822 to compile
2008-07-28 02:36:26 +00:00
Mike Mazur a61e1ea7dc Adding explicit cast from LSLFloat to LSLInteger. Work on issue 1822. 2008-07-28 02:36:22 +00:00
Mike Mazur 82fa53a486 -copy LSL_Types tests from Common/ to Shared/
-fix some whitespace/formatting
2008-07-28 02:36:18 +00:00
Mike Mazur 6267db0c4c Implement LSLFloat {+,-,*,/} LSLFloat operations. Fix issues 1532, 1701, 1824 &
1832.
2008-07-27 05:42:47 +00:00
Mike Mazur 19ad7db5e1 Add casts from integer to float. Fix issue 1822. 2008-07-25 07:50:31 +00:00
Mike Mazur e60cf0e67d -add test for newly introduced cast operators (issue 1818)
-fix formatting
-remove CompilerTest test since it seems to fail randomly
2008-07-25 04:47:11 +00:00
Jeff Ames a4ad6a67b7 Update svn properties. Minor formatting cleanup. 2008-07-24 15:20:47 +00:00
Mike Mazur d58346e798 Refactor some tests. 2008-07-24 07:23:36 +00:00
Mike Mazur 117cc09edc Replace implicit casts from LSLFloat to int and uint which were removed in
r5487.

Also put the unit tests back for Bamboo to execute them, let's see how this
goes.
2008-07-24 05:23:38 +00:00
Mike Mazur ba17b0df27 First version of position mapping between LSL <-> C# implemented. 2008-07-23 02:51:45 +00:00
Jeff Ames 19fd2230bf Update svn properties. Fix some inconsistent newlines. 2008-07-19 09:35:48 +00:00
Charles Krinke 0106f96716 Mantis#1755. Thank you kindly, Matth for a patch that solves:
When using math operators +,-,*,/ in an LSL script with an LSLFloat 
and an integer literal the wrong result is returned. This patch 
adds operators to the LSLFloat type to handle this case.
2008-07-16 14:30:22 +00:00
Charles Krinke 4350613f1d Mantis#1746. Thank you kindly, nlin for pointing out that
I needed to apply the patch a little better then last night
for: Dot product operator in LSL_Types.cs incorrectly returns 
a component-wise vector multiplication; it should return a 
scalar dot product. Thanks to M. Igarashi for the patch.
2008-07-16 03:07:54 +00:00
Charles Krinke 476e08286e Mantis#1728. Thank you kindly, Mikem for a patch that solves:
The compiler was missing grammar rules for += etc. operators on 
vector.member variables, which the attached patch implements.
2008-07-14 01:07:21 +00:00
Melanie Thielker d85774c101 Patch #9142 (No mantis)
Add a config option to OpenSim.ini to select between script compilers
in the XEngine without recompile.
Set UseNewCompiler=true in OpenSim.ini and try it out.
Creates the ICodeConverter interface and adapts the new compiler to it.
2008-07-12 01:34:36 +00:00
Johan Berntsson 130d8047a2 Thanks Mike for another LSL compiler patch which fixes a bug where 'vector v=<0, 0, -0.5>' caused a syntax error, and implements multiple assignments in one line (x = y = 3;) 2008-07-11 08:33:53 +00:00
Johan Berntsson d41c1f40a8 Patch from Mike: errors from the LSL/C# compilers are now reported to the user in-world 2008-07-10 05:40:45 +00:00
Johan Berntsson 27d9aeab0c Patch from Mike: added unit tests for the LSL compiler 2008-07-08 08:42:17 +00:00
Jeff Ames dfb63b5623 Update svn properties. Formatting cleanup. 2008-06-09 08:46:33 +00:00
Charles Krinke 0d07cf9ddd Mantis#1469. Thank you kindly, Mikem for a patch that addresses:
Currently LSL code such as below does not compile on OpenSim, but compiles fine in Second Life:
list mylist = [];
mylist += [1, 2, 3];
mylist += "four";
list newlist = mylist + 5.0;
The problem is that the LSL_Types.list class does not have an operator for adding a string to a list.
I am including a patch which implements adding a string, integer or float to a list.
I am also including tests. The file LSL_TypesTestList.cs belongs in 
OpenSim/Tests/OpenSim/Region/ScriptEngine/Common/.
2008-06-09 01:06:59 +00:00
Johan Berntsson 9002329a7d Fixed a build problem with r5019 (Mikems patch) 2008-06-06 05:28:26 +00:00
Jeff Ames fbd37c420f Minor formatting cleanup. 2008-06-06 01:19:15 +00:00
Jeff Ames 2818dd800e Update svn properties. 2008-06-06 00:25:43 +00:00
Charles Krinke 16707b741e Mantis#1451. Thank you kindly, mikem for additional
tests for LSL types and strings.
2008-06-05 23:36:59 +00:00
Jeff Ames 65c5efe43b Formatting cleanup. 2008-05-16 01:22:11 +00:00
Jeff Ames c995d60d37 Formatting cleanup. 2008-05-14 05:11:23 +00:00
Adam Frisby fef3b36894 * Optimised using statements and namespace references across entire project (this took a while to run). 2008-04-21 07:09:17 +00:00
Sean Dague 86cf07f1c4 changing more references to OpenSim.Data 2008-04-02 15:38:44 +00:00
Jeff Ames 47180080f0 Formatting cleanup. 2008-03-18 05:16:43 +00:00
Jeff Ames cd6f4a57e7 Added copyright heaaders. Minor cleanup. 2008-03-04 04:11:37 +00:00
Adam Frisby 415fc22e5e * Removed a bunch of compiler warnings. 2008-03-03 09:54:39 +00:00
Jeff Ames a8cfbbe963 Minor cleanup. 2008-02-20 18:38:20 +00:00
Jeff Ames 3b9d332f84 Added copyright notices. 2008-02-17 01:16:40 +00:00
Justin Clarke Casey 24ac86931a update eol-style 2008-02-08 18:18:56 +00:00
Adam Frisby a1625a5410 * Applying mantis 339 patches round 2 -- Thanks daedius 2008-02-08 17:54:30 +00:00
Jeff Ames 6ed5283bc0 Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O.
This is mostly an in-place conversion, so lots of refactoring can still be done.
2008-02-05 19:44:27 +00:00
Justin Clarke Casey f5340b6470 * Stubbed out beginnings of a user server stress test
* Does absolutely nothing at the moment
2008-01-25 17:37:18 +00:00
Sean Dague 32869aec47 apply http://bug.opensecondlife.org/view.php?id=512 from chillken
which cleans up the verbose logic
2007-10-25 15:34:43 +00:00
Sean Dague d4bb430f78 get rid of all the ^M line endings 2007-10-19 20:28:18 +00:00
lbsa71 b48390213b * Applied Chillken patch #418: copyright-r2094.patch updating copyright messages. Thanks Chillken! 2007-10-15 07:25:32 +00:00
Tleiades Hax 87d99ee2a2 Added unit tests, based on nunit for the IInventoryData 2007-10-10 17:00:29 +00:00