aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Move db directory out of tree.onefang2-3/+3
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang8-123/+143
2016-11-04Attempt to move everything writable, and the configs, out of the bin directory.David Walter Seikel2-3/+3
Log configs are still in the bin directory.
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel5-39/+12
2012-11-26Fix database service unit test failures by temporarily reverting ↵Justin Clark-Casey (justincc)1-1/+7
BasicDataServiceTest extending OpenSimTestCase. Mono 2.4.3 doesn't like this when running nunit, with nunit throwing AssetTests`2 : System.MemberAccessException : Cannot create an instance of OpenSim.Data.Tests.AssetTests`2[TConn,TAssetData] because Type.ContainsGenericParameters is true. and similar. Mono 2.10.8.1 does not have this issue. So will wait until min version of mono bumps before restoring.
2012-11-24Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)4-4/+7
automatically turns off any logging enabled between tests
2012-07-07minor: remove some recent mono compiler warningsJustin Clark-Casey (justincc)1-2/+0
2012-07-07Remove redundant SetScene() function in Scene.AddSceneObject()Justin Clark-Casey (justincc)1-1/+1
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-05-15Port Avination's collision fixes to core.Melanie1-1/+0
2012-03-31Rename SOG.HasChildPrim(uint) to SOG.ContainsPart(uint) to match existing ↵Justin Clark-Casey (justincc)1-4/+4
ContainsPart method and remove method duplication. HasChildPrim is also misleading since the 'root' prim can also be returned.
2012-01-26refactor: change RezScriptFromAgentInventory(), RezNewScript() and ↵Justin Clark-Casey (justincc)1-6/+6
AddInventoryItem() to accept an agent id rather than a full IClientAPI. This stops some code having to make spurious client == null checks and reduces regression test complexity.
2011-11-02Changes UpdateFlag in SOP to an enumeration of NONE, TERSE and FULL.Dan Lake1-5/+0
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-08-27refactor: move SOP.IsAttachment and AttachmentPoint up into SOG to avoid ↵Justin Clark-Casey (justincc)1-4/+2
pointless duplication of identical values
2011-08-06rename TestHelper => TestHelpers for consistencyJustin Clark-Casey (justincc)4-44/+44
2011-03-14Fix a bug in T015_LargeSceneObjects() where the large scene object was ↵Justin Clark-Casey (justincc)1-2/+3
stored 31 times (1 time for each added part) instead of once at the end, even though only the largest 31 prim scene object was retrieved and tested. This considerably speeds up the test, when on sqlite it now only takes 2 seconds rather than 30+
2011-03-14when retrieving a sog in database tests, don't bother adding the scene since ↵Justin Clark-Casey (justincc)1-14/+1
this isn't used
2011-03-14Add method doc to T015_LargeSceneObjects() and slightly clean up formatting.Justin Clark-Casey (justincc)1-3/+6
This test takes a considerable time on SQLite but should remain since it's testing storage and retrieval of a scene object with 31 parts.
2011-03-14Add current method output to all persistence level tests so that we can ↵Justin Clark-Casey (justincc)4-11/+99
track where we are in the test suite
2011-03-12minor: remove mono compiler warningJustin Clark-Casey (justincc)1-1/+1
2011-03-09Upgrade nunit.framework.dll to version 2.5.9. Fix up tests appropriately.Justin Clark-Casey (justincc)6-57/+2
This version removes the NUnit.Framework.SyntaxHelpers namespace, so any modules with their own tests will need to delete this using statement.
2010-11-26Another attempt at fixing failing test for creator info.Marck1-2/+2
2010-11-23Attempt at fixing failing test.Diva Canto1-2/+4
2010-09-16Changed SceneObjectGroup to store parts with the fast and thread-safe ↵John Hurliman1-7/+7
MapAndArray collection
2010-09-12Formatting cleanup.Jeff Ames1-5/+5
2010-09-12Add copyright headers.Jeff Ames2-2/+56
2010-09-11Fixed the naming mess around data connectors for simulation dataJohn Hurliman1-6/+6
2010-08-24Add automated test at the opensim 'api' level to check that a given item ↵Justin Clark-Casey (justincc)3-14/+0
goes to the correct directory Also removes some mono compiler warnings
2010-08-13refactor: Use SOP.Flags rather than SOP.ObjectFlagsJustin Clark-Casey (justincc)1-4/+4
2010-07-14comment out obsolete assert that 'item has been passed to another user since ↵Justin Clark-Casey (justincc)1-1/+1
it was last set' perms flag was set when a prim item was added to a scene object
2010-07-13Revamp the permissions propagation. This MAY mess up. Please test.Melanie1-1/+1
Change the slam bit from 3 to 4. Assume the old slam bit is always set. The new slam bit is a "changed owner" bit, correcting a bug where an item passed from the creator to another with less than full perms, then back (sale test) would arrive back full perm. Lots of in-code docs.
2010-06-04add sqlite database back to database testsJustin Clark-Casey (justincc)1-1/+1
this appears to be okay even though we reuse it between runs without deleting it first. size of the database appears not to be changing though that could be deceptive
2010-05-26Minor correction to AssetTests.csAlexRa1-3/+3
(forgot to change test descriptions, has no effect on running the tests)
2010-05-23Ensured that tests are skipped for wrong conn string, also m_log chngAlexRa1-2/+23
The base test class now tries to connect to DB, ignores all tests in the class if unable to. Also m_log changed to instance field (which in this case shouldn't cause any problems), to avoid having to define it separately in each derived class. Here I touched things that I don't understand well (using log4net), so please review this commit.
2010-05-23Various minor changes in the data testsAlexRa5-16/+18
2010-05-23Unitests: Asset, Estate, Region (the "legacy" one), InventoryAlexRa5-173/+137
The tests have been modified to work under NUnit 2.4.6 (the one currently used in the project). They will also work with NUnit 2.5+ as is, but will look better if you #define NUNIT25 for them.
2010-05-23Added MS SQL test conn to INI - only as an example, modify before use!!!AlexRa1-4/+21
NOTE that this INI file is currently loaded as a embedded RESOURCE, which is weird and has a disadvantage of having to rebuild the Tests whenever the conn strings are changed. The only reason is that I couldn't figure out a reliable way to put this INI into the correct dir at runtime. If somebody can do it, that would be cool.
2010-05-23BasicAssetTest.cs replaced by AssetTests.csAlexRa1-0/+161
AssetTests: The name has changed to reflect the fact it is no longer a base class, but the complete asset test for all supported databases. The test can also check storing of CreatorID, but the feature is disabled at this commit!
2010-05-23Bugfix in tests (must clear db before migrations, not after)AlexRa3-3/+3
2010-05-23EstateData tests passing on all DBsAlexRa1-28/+2
2010-05-23Corrections in RegionTests.cs. It now fully works!AlexRa1-48/+75
The problem was that some tests relied on prior tests to leave the DB in a particular state, but the test class cleared the DB every time. The affected tests have been merged into one to remove the dependencies. tested on all 3 Dbs, all tests green.
2010-05-23Minor corrections in BasicDataServiceTest.csAlexRa1-0/+41
(added more functions for cleaning up DB from the derived tests)
2010-05-23All data tests made DBMS-independentAlexRa3-87/+159
2010-05-23Added generic base classes for testing database servicesAlexRa3-0/+241
These are some generic classes that simplify writing tests for any of the data connectors and databases. Among other things, configuring the connection strings is done once, in a separate resource file. Tests based on the new BasicDataServiceTest class require NUnit 2.5 or better.
2010-05-20Series of patches to include creator ID in assets.AlexRa1-4/+35
Contains a migration. SQLite: May contain nuts. The SQLite migration copies the entire asset table. Be prepared for quite a wait. Don't interrupt it. Back up your assets db. BasicAssetTest checks CreatorID storage, new test for weird CreatorID (now also checks that non-GUID or empty CreatorID gets stored correctly) Signed-off-by: Melanie <melanie@t-data.com>
2010-05-19Scrambled asset type in BasicAssetTest.cs!AlexRa1-9/+10
The asset type wasn't in the list of "DontScramble" fields, so the test assets were stored with randomized type, which caused exception on reading them. Also the scrambler was moved from local var to the class level, so it could be used in the new tests I've added (see the next commit).
2010-04-30rename SQLiteNG to SQLite and SQLite to SQLiteLegacyJustin Clark-Casey (justincc)1-1/+2
this seems the least evil way forward since mono 2.6 and later will see increasing usage, and this only works with what was SQLiteNG MAC USERS WILL NEED TO CHANGE REFERENCES TO "OpenSim.Data.SQLite.dll" to "OpenSim.Data.SQLiteLegacy.dll" in OpenSim.ini and config-include/StandaloneCommon.ini (if using standalone) See the OpenSim.ini.example and StandaloneCommon.ini.example files for more details This commit also temporarily changes unsigned ParentEstateID values in the OpenSim.Data.Tests to signed temporarily, since the new plugin enforces creation of signed fields in the database (which is what the SQL actually specifies). And change data columns in sqlite is a pita.
2010-03-22Remove the reading of estate_settings.xml and the associated processing ofMelanie1-12/+12
defaults. Adding code to facilitate estate creation / managemment as part of first time start up
2010-03-02Fixed SQL tests.Diva Canto1-4/+1
2010-02-22Changed asset CreatorID to a stringJohn Hurliman3-11/+11
2010-02-22* Adds CreatorID to asset metadata. This is just the plumbing to support ↵John Hurliman3-11/+11
CreatorID, it doesn't modify database backends or OAR files to support storing/loading it