aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-05-02fix LSL_ApiHttpTestsUbitUmarov1-5/+9
2017-01-25fix test setupUbitUmarov1-3/+10
2017-01-05Massive tab and trailing space cleanupMelanie Thielker11-39/+39
2016-11-05some types may already be native in MOD_Api ConvertFromLSLUbitUmarov1-1/+1
2016-11-05 Regression, really ???UbitUmarov1-0/+2
2015-11-18 work around some 'tests' errors: dont expect a particular http error responseUbitUmarov1-2/+3
2015-11-17 work around some 'tests' errors: suspend ↵UbitUmarov1-0/+2
TestllSetLinkPrimitiveParamsForAgent bc avatar sit math changed
2015-08-17Change the IScriptApi back to it's original form, removing XEngineMelanie Thielker12-44/+44
specific additions that should not have been there in the first place. Sleeping and time measurement are now completely internal to XEngine
2015-08-17Revert "When scripts are sleeping, don't count that as execution time"Melanie Thielker12-33/+33
The approach is good but the way it is written breaks the architecture. Rewrite follows. This reverts commit a568f06b7faea807149205d0e47454e4883e4836.
2015-08-11When scripts are sleeping, don't count that as execution timeOren Hurvitz12-33/+33
Sleeping doesn't use the CPU.
2015-03-22Allow setting hollow to 99% from scripts just like from viewer.Magnuz Binder1-3/+3
2015-02-25Reduce coupling in regression test task inventory creation methods to make ↵Justin Clark-Casey (justincc)6-19/+19
them usable in tests with no scene present
2014-11-25Fix compile error from previous 1d56029848e96016b5809f596619e32d0ebcc995Justin Clark-Casey (justincc)1-1/+1
2014-11-25Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey (justincc)1-0/+47
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-11-25Add some more llGiveInventory() regression testsJustin Clark-Casey (justincc)1-48/+1
2014-11-25refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)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
2014-11-11Fix issue where llRemoteLoadScriptPin() would treat 0 (the default) as a ↵Justin Clark-Casey1-0/+48
valid set pin in a destination prim rather than the unset no pin state Adds regression test for this case.
2014-10-16Add some more llGiveInventory() regression testsJustin Clark-Casey (justincc)1-0/+71
2014-04-11Actually add the llRequestAgentData() test class for commit 530c86Justin Clark-Casey (justincc)1-0/+157
2014-03-12Only allow llBreakAllLinks() to work if script has received ↵Justin Clark-Casey (justincc)1-0/+42
PERMISSION_CHANGE_LINKS As per http://wiki.secondlife.com/wiki/LlBreakAllLinks Same as existing llCreateLink() and llBreakLink()
2014-03-05If an avatar is sitting, send out position updates to clients for any ↵Justin Clark-Casey (justincc)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.
2014-03-03When positioning agent with PRIM_ROTATION in llSetLinkPrimitiveParams(), set ↵Justin Clark-Casey (justincc)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
2014-02-26Add some regression tests for previous commit 0e23374Justin Clark-Casey (justincc)1-0/+115
2013-12-14Extend TestLlGetNotecardLine() regression test to contain chars that are two ↵Justin Clark-Casey (justincc)1-1/+1
bytes in utf8
2013-09-16Fix bug where using PRIM_LINK_TARGET with only two remaining list items ↵Justin Clark-Casey (justincc)1-0/+14
(e.g. link number then PRIM_ROTATION) would not return the parameter Extended regression test for this case
2013-09-16Make llGetLinkPrimitiveParams() abort and return existing list of params ↵Justin Clark-Casey (justincc)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()
2013-07-26Fix NPC regression test failures.Justin Clark-Casey (justincc)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.
2013-03-11minor: Remove mono compiler warnings from LSL_ApiHttpTestsJustin Clark-Casey (justincc)1-1/+0
2013-02-28Add regression tests for llGetNotecardLine()Justin Clark-Casey (justincc)3-3/+273
2013-02-27minor: remove some mono compiler warnings in script regression testsJustin Clark-Casey (justincc)1-1/+1
2013-02-27Add regression test for llReleaseUrl() (and for llRequestUrl)Justin Clark-Casey (justincc)1-0/+250
Forgot to add file for llRequestUrl() test in commit b8a7c8b
2013-01-16JustinCC's core re-mergeMelanie7-24/+32
2013-01-16Implement co-operative script termination if termination comes during a ↵Justin Clark-Casey (justincc)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.
2013-01-15Instead of passing separate engine, part and item components to script APIs, ↵Justin Clark-Casey (justincc)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.
2012-12-05Remove some mono warnings in script tests, chiefly where SetUp() wasn't ↵Justin Clark-Casey (justincc)5-7/+13
properly calling to OpenSimTestCase.SetUp()
2012-11-24Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)9-9/+9
automatically turns off any logging enabled between tests
2012-11-15Revert "Merge master into teravuswork", it should have been avination, not ↵teravus3-316/+72
master. This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
2012-10-25Get osNpcCreate() and osNpcLoadAppearance() to generate a script error if ↵Justin Clark-Casey (justincc)1-6/+24
appearance notecard does not exist, rather than returning UUID.Zero or silently failing.
2012-10-25Make osNpcCreate() return UUID.Zero instead of throwing an exception if ↵Justin Clark-Casey (justincc)2-4/+56
notecard name is invalid. Make osNpcLoadAppearance() fail silently in same circumstance rather than throwing exception.
2012-10-25Add TestOsNpcLoadAppearance()Justin Clark-Casey (justincc)2-4/+45
2012-10-25Move npc creation tests involving appearance from OSSL_ApiAppearanceTest to ↵Justin Clark-Casey (justincc)2-70/+69
OSSL_ApiNpcTests This is a more intuitive location.
2012-09-22Fix llListFindList() returning no match when there is a match with a script ↵Justin Clark-Casey (justincc)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.
2012-07-10Disable logging in regression test in OSSL_ApiAttachmentTestsJustin Clark-Casey (justincc)1-1/+1
2012-07-09This script allows an object to be attached directly from prim inventory to ↵Justin Clark-Casey (justincc)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
2012-07-07minor: remove some recent mono compiler warningsJustin Clark-Casey (justincc)1-1/+1
2012-07-07Remove redundant SetScene() function in Scene.AddSceneObject()Justin Clark-Casey (justincc)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.
2012-07-05Add OSSL function osForceAttachToAvatarFromInventory()Justin Clark-Casey (justincc)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.
2012-05-08Add automated TestllBreakLink()Justin Clark-Casey (justincc)1-0/+27
2012-05-08Add automated TestllCreateLink()Justin Clark-Casey (justincc)1-0/+112
2012-05-08refactor: Eliminate local id parameter from api initialize.Justin Clark-Casey (justincc)4-13/+12
This is always available from m_host.LocalId