Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | work around some 'tests' errors: dont expect a particular http error response | UbitUmarov | 2015-11-18 | 1 | -2/+3 |
| | |||||
* | work around some 'tests' errors: suspend ↵ | UbitUmarov | 2015-11-17 | 1 | -0/+2 |
| | | | | TestllSetLinkPrimitiveParamsForAgent bc avatar sit math changed | ||||
* | Change the IScriptApi back to it's original form, removing XEngine | Melanie Thielker | 2015-08-17 | 12 | -44/+44 |
| | | | | | specific additions that should not have been there in the first place. Sleeping and time measurement are now completely internal to XEngine | ||||
* | Revert "When scripts are sleeping, don't count that as execution time" | Melanie Thielker | 2015-08-17 | 12 | -33/+33 |
| | | | | | | | The approach is good but the way it is written breaks the architecture. Rewrite follows. This reverts commit a568f06b7faea807149205d0e47454e4883e4836. | ||||
* | When scripts are sleeping, don't count that as execution time | Oren Hurvitz | 2015-08-11 | 12 | -33/+33 |
| | | | | Sleeping doesn't use the CPU. | ||||
* | Allow setting hollow to 99% from scripts just like from viewer. | Magnuz Binder | 2015-03-22 | 1 | -3/+3 |
| | |||||
* | Reduce coupling in regression test task inventory creation methods to make ↵ | Justin Clark-Casey (justincc) | 2015-02-25 | 6 | -19/+19 |
| | | | | them usable in tests with no scene present | ||||
* | Fix compile error from previous 1d56029848e96016b5809f596619e32d0ebcc995 | Justin Clark-Casey (justincc) | 2014-11-25 | 1 | -1/+1 |
| | |||||
* | Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵ | Justin Clark-Casey (justincc) | 2014-11-25 | 1 | -0/+47 |
| | | | | | | valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case. | ||||
* | Add some more llGiveInventory() regression tests | Justin Clark-Casey (justincc) | 2014-11-25 | 1 | -48/+1 |
| | |||||
* | refactor: consistently put all test classes in the OpenSim.Tests.Common ↵ | Justin Clark-Casey (justincc) | 2014-11-25 | 11 | -12/+0 |
| | | | | | | package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add | ||||
* | Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵ | Justin Clark-Casey | 2014-11-11 | 1 | -0/+48 |
| | | | | | | valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case. | ||||
* | Add some more llGiveInventory() regression tests | Justin Clark-Casey (justincc) | 2014-10-16 | 1 | -0/+71 |
| | |||||
* | Actually add the llRequestAgentData() test class for commit 530c86 | Justin Clark-Casey (justincc) | 2014-04-11 | 1 | -0/+157 |
| | |||||
* | Only allow llBreakAllLinks() to work if script has received ↵ | Justin Clark-Casey (justincc) | 2014-03-12 | 1 | -0/+42 |
| | | | | | | | PERMISSION_CHANGE_LINKS As per http://wiki.secondlife.com/wiki/LlBreakAllLinks Same as existing llCreateLink() and llBreakLink() | ||||
* | If an avatar is sitting, send out position updates to clients for any ↵ | Justin Clark-Casey (justincc) | 2014-03-05 | 1 | -1/+31 |
| | | | | | | | | change, not just those outside the usual tolerances. This is to allow small adjustments of less than 0.05m in functions such as llSetPrimitiveLinkParams() to work This is another fix for http://opensimulator.org/mantis/view.php?id=7044 Extends regression test for this case. | ||||
* | When positioning agent with PRIM_ROTATION in llSetLinkPrimitiveParams(), set ↵ | Justin Clark-Casey (justincc) | 2014-03-03 | 1 | -11/+25 |
| | | | | | | | the global rotation rather than the local rotation Functionally the same as the patch in http://opensimulator.org/mantis/view.php?id=7044, thanks Aleric. This commit also extends the regression test | ||||
* | Add some regression tests for previous commit 0e23374 | Justin Clark-Casey (justincc) | 2014-02-26 | 1 | -0/+115 |
| | |||||
* | Extend TestLlGetNotecardLine() regression test to contain chars that are two ↵ | Justin Clark-Casey (justincc) | 2013-12-14 | 1 | -1/+1 |
| | | | | bytes in utf8 | ||||
* | Fix bug where using PRIM_LINK_TARGET with only two remaining list items ↵ | Justin Clark-Casey (justincc) | 2013-09-16 | 1 | -0/+14 |
| | | | | | | (e.g. link number then PRIM_ROTATION) would not return the parameter Extended regression test for this case | ||||
* | Make llGetLinkPrimitiveParams() abort and return existing list of params ↵ | Justin Clark-Casey (justincc) | 2013-09-16 | 2 | -237/+386 |
| | | | | | | | | | when it encounters an invalid link number, rather than throwing an exception Addresses http://opensimulator.org/mantis/view.php?id=6768 Thanks to talun for the patch on that commit - in the end I took a different approach that also deals with invalid PRIM_LINK_TARGET However, not yet generating the same warning on invalid PRIM_LINK_TARGET as seen on LL grid This commit also adds regression tests for some cases of llGetLinkPrimitiveParams() | ||||
* | Fix NPC regression test failures. | Justin Clark-Casey (justincc) | 2013-07-26 | 1 | -0/+1 |
| | | | | | These were genuine failures caused by ScenePresence.CompleteMovement() waiting for an UpdateAgent from NPC introduction that would never come. Instead, we do not wait if the agent is an NPC. | ||||
* | minor: Remove mono compiler warnings from LSL_ApiHttpTests | Justin Clark-Casey (justincc) | 2013-03-11 | 1 | -1/+0 |
| | |||||
* | Add regression tests for llGetNotecardLine() | Justin Clark-Casey (justincc) | 2013-02-28 | 3 | -3/+273 |
| | |||||
* | minor: remove some mono compiler warnings in script regression tests | Justin Clark-Casey (justincc) | 2013-02-27 | 1 | -1/+1 |
| | |||||
* | Add regression test for llReleaseUrl() (and for llRequestUrl) | Justin Clark-Casey (justincc) | 2013-02-27 | 1 | -0/+250 |
| | | | | Forgot to add file for llRequestUrl() test in commit b8a7c8b | ||||
* | Implement co-operative script termination if termination comes during a ↵ | Justin Clark-Casey (justincc) | 2013-01-16 | 7 | -26/+23 |
| | | | | | | | | | | script wait event (llSleep(), etc.) This makes use of EventWaitHandles since various web references indicate that Thread.Interrupt() can also cause runtime instability. If co-op termination is enabled, then termination sets the wait handle instead of waiting for a timeout before possibly aborting the thread. This allows the script to cleanly terminate if it's in a llSleep/LL function delay or the next time it enters such a wait without any timeout period. Co-op termination is not yet testable since checking for termination request within loops that never trigger a wait is not yet implemented. This commit, unlike 1b5c41c, passes the wait handle as an extra parameter through IScript.Initialize() instead of passing IScriptInstance itself. | ||||
* | Instead of passing separate engine, part and item components to script APIs, ↵ | Justin Clark-Casey (justincc) | 2013-01-15 | 7 | -24/+35 |
| | | | | | | | | pass down IScriptInstance instead. This is to allow the future co-operative script thread terminate feature to detect and act upon termination requests. This splits the assembly and state loading out from the ScriptInstance() constructor to a separate Load() method in order to facilititate continued script logic regression testing. | ||||
* | Remove some mono warnings in script tests, chiefly where SetUp() wasn't ↵ | Justin Clark-Casey (justincc) | 2012-12-05 | 5 | -7/+13 |
| | | | | properly calling to OpenSimTestCase.SetUp() | ||||
* | Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵ | Justin Clark-Casey (justincc) | 2012-11-24 | 9 | -9/+9 |
| | | | | automatically turns off any logging enabled between tests | ||||
* | Get osNpcCreate() and osNpcLoadAppearance() to generate a script error if ↵ | Justin Clark-Casey (justincc) | 2012-10-25 | 1 | -6/+24 |
| | | | | appearance notecard does not exist, rather than returning UUID.Zero or silently failing. | ||||
* | Make osNpcCreate() return UUID.Zero instead of throwing an exception if ↵ | Justin Clark-Casey (justincc) | 2012-10-25 | 2 | -4/+56 |
| | | | | notecard name is invalid. Make osNpcLoadAppearance() fail silently in same circumstance rather than throwing exception. | ||||
* | Add TestOsNpcLoadAppearance() | Justin Clark-Casey (justincc) | 2012-10-25 | 2 | -4/+45 |
| | |||||
* | Move npc creation tests involving appearance from OSSL_ApiAppearanceTest to ↵ | Justin Clark-Casey (justincc) | 2012-10-25 | 2 | -70/+69 |
| | | | | | | OSSL_ApiNpcTests This is a more intuitive location. | ||||
* | Fix llListFindList() returning no match when there is a match with a script ↵ | Justin Clark-Casey (justincc) | 2012-09-22 | 1 | -0/+134 |
| | | | | | | | | constant component in the source list. Adds regression test for this case. Based on http://opensimulator.org/mantis/view.php?id=6156 Thanks SignpostMarv. | ||||
* | Disable logging in regression test in OSSL_ApiAttachmentTests | Justin Clark-Casey (justincc) | 2012-07-10 | 1 | -1/+1 |
| | |||||
* | This script allows an object to be attached directly from prim inventory to ↵ | Justin Clark-Casey (justincc) | 2012-07-09 | 1 | -0/+53 |
| | | | | | | | another avatar in the scene. Very useful in serious game/environment scenarios where its only allowed for trusted creators. Threat level Severe | ||||
* | minor: remove some recent mono compiler warnings | Justin Clark-Casey (justincc) | 2012-07-07 | 1 | -1/+1 |
| | |||||
* | Remove redundant SetScene() function in Scene.AddSceneObject() | Justin Clark-Casey (justincc) | 2012-07-07 | 2 | -10/+10 |
| | | | | | 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. | ||||
* | Add OSSL function osForceAttachToAvatarFromInventory() | Justin Clark-Casey (justincc) | 2012-07-05 | 4 | -5/+188 |
| | | | | | | | 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. | ||||
* | Add automated TestllBreakLink() | Justin Clark-Casey (justincc) | 2012-05-08 | 1 | -0/+27 |
| | |||||
* | Add automated TestllCreateLink() | Justin Clark-Casey (justincc) | 2012-05-08 | 1 | -0/+112 |
| | |||||
* | refactor: Eliminate local id parameter from api initialize. | Justin Clark-Casey (justincc) | 2012-05-08 | 4 | -13/+12 |
| | | | | This is always available from m_host.LocalId | ||||
* | Instead of constantly looking up unchanging self item in script code, pass ↵ | Justin Clark-Casey (justincc) | 2012-05-08 | 4 | -13/+13 |
| | | | | in self item on initialization. | ||||
* | Add regression test for teleporting an agent between separated regions on ↵ | Justin Clark-Casey (justincc) | 2012-04-27 | 4 | -5/+5 |
| | | | | | | | | 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. | ||||
* | Fix llGiveInventory() so that it checks the destination part for ↵ | Justin Clark-Casey (justincc) | 2012-03-22 | 1 | -1/+58 |
| | | | | | | | AllowInventoryDrop, not the source. This allows llAllowInventoryDrop() to work. Regression test added for this case. | ||||
* | Add llGiveInventory() test from object to object where both objects are ↵ | Justin Clark-Casey (justincc) | 2012-03-22 | 1 | -0/+111 |
| | | | | owned by the same user. | ||||
* | Get all test methods in OpenSim.Region.ScriptEngine.Tests.dll to report that ↵ | Justin Clark-Casey (justincc) | 2012-03-06 | 6 | -25/+127 |
| | | | | they're running | ||||
* | Add missing assert to confirm owner delete succeeded to the end of ↵ | Justin Clark-Casey (justincc) | 2012-01-12 | 1 | -0/+2 |
| | | | | TestOsNpcRemoveOwned() | ||||
* | Add api level test for removing an owned npc | Justin Clark-Casey (justincc) | 2012-01-12 | 1 | -2/+55 |
| |