aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Simplify compilation result tests by factoring out common code.Justin Clark-Casey (justincc)2014-08-021-71/+45
|
* In compiler regression tests, setup and teardown structures for each test to ↵Justin Clark-Casey (justincc)2014-08-021-1/+5
| | | | avoid any possibility of inter-test inter-ference
* Fix issue with LSL jumps screwing up the C# compiler error -> LSL code ↵Justin Clark-Casey (justincc)2014-08-021-5/+52
| | | | | | | | position map and leading to invalid error line numbers/columns This is because jump statement generation was mistakenly inserting its own line without updating the csharp positions in CSCodeGenerator. This is Aleric Inglewood's patch in http://opensimulator.org/mantis/view.php?id=7195 but applied to opensim itself rather than the defunct code generation in opensim-libs. Thanks! This patch also adds a regression test for this case from myself.
* In compiler tests, remove the ResolveEventHandlers after test exitJustin Clark-Casey (justincc)2014-05-271-3/+6
|
* Make CompilerTest add same AssemblyResolver as XEngine to see if this solves ↵Justin Clark-Casey (justincc)2014-05-271-1/+7
| | | | the issue with different AppDomain BaseDirectory in local and Jenkins test runs
* Temporarily print regression TestCastAndConcatString() script compile errors ↵Justin Clark-Casey (justincc)2014-05-271-4/+5
| | | | | | out to console to get a handle on what's going wrong. Does not fail for me locally and I failed to notice this test was failing on Jenkins.
* Fix issues where reported LSL compiler error line numbers do not match the ↵Justin Clark-Casey (justincc)2014-05-241-15/+15
| | | | | | | script. This is probably due to changes in the layout of the generated script preamble (using statements etc, ) in c8afc852 (Jan 17 2013). Re-enabled existing regression test that exercises at least one case of this.
* Get regression test TestUseUndeclaredVariable() functional again, though not ↵Justin Clark-Casey (justincc)2014-05-231-8/+19
| | | | | | yet enabled. This reveals the position map problems and will make the fix (and subsequent continual checking) easier.
* Reactivate regression test TestCastAndConcatString() in CompilerTests.Justin Clark-Casey (justincc)2014-05-231-8/+16
|
* Add lsl arg syntax checking for control eventJustin Clark-Casey (justincc)2013-12-211-0/+17
|
* Add arg checking for at_target lsl eventJustin Clark-Casey (justincc)2013-12-211-0/+17
|
* Add lsl event arg checking for at_rot_targetJustin Clark-Casey (justincc)2013-12-211-0/+16
|
* Add lsl event argument checking for attach and on_rezJustin Clark-Casey (justincc)2013-12-211-0/+26
|
* Add parameter checking for land_collision, land_collision_start and ↵Justin Clark-Casey (justincc)2013-11-291-1/+37
| | | | | | land_collision_end lsl events Wrong number of parmeters now generates syntax error on compile, as seen on LL grid
* Add regression test to check that specifying a non-existent event raise a ↵Justin Clark-Casey (justincc)2013-11-161-0/+9
| | | | | | syntax error This was the case before any of the recent changes
* Add syntax checking for no_sensor() no-arg eventJustin Clark-Casey (justincc)2013-11-161-0/+9
|
* refactor common code out of no argument LSL event regression testsJustin Clark-Casey (justincc)2013-11-161-14/+13
|
* If anything other than a single integer is specified for events that only ↵Justin Clark-Casey (justincc)2013-11-161-2/+105
| | | | | | take a single integer, generate a syntax error on LSL script compile rather than an exception later on. This applies to events changed, collision, collision_start, collision_end, on_rez, run_time_permissions, sensor, touch, touch_start, touch_end
* Make state_exit, moving_end, moving_start, not_at_rot_target, not_at_target ↵Justin Clark-Casey (justincc)2013-11-161-0/+60
| | | | | | | and timer LSL events generate a syntax error if inappropriately given arguments. This matches behaviour seen on the LL grid and a previous change for state_entry. These are all the events which should take no arguments
* refactor LSL_EventTests.TestStateEntryEvent into single method to test compileJustin Clark-Casey (justincc)2013-11-161-14/+17
|
* Add initial test for checking that specifying a parameter in LSL ↵Justin Clark-Casey (justincc)2013-11-091-0/+64
| | | | | | state_entry() generates a syntax error. Same for other events to follow at a later date.
* If the LSL state_entry() event definition contains any parameters, then ↵Justin Clark-Casey (justincc)2013-11-021-0/+1
| | | | | | | | generate syntax error as seen on the LL grid This is done through the parser and so generates the same syntax error message if any parameters are wrongly specified for this event. We were already enforcing event names in the parser. This is only for state_entry so far as an initial test of the approach - appears to work correctly.
* Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)2012-11-242-2/+2
| | | | automatically turns off any logging enabled between tests
* Fix TestSyntaxError() and TestSyntaxErrorDeclaringVariableInForLoop()Justin Clark-Casey (justincc)2012-03-061-8/+14
| | | | | | | They were all failing assertions but the exceptions these threw were caught as expected Exceptions. I don't think we can easily distinguish these from the Exceptions that we're expecting. So for now we'll do some messy manually checking with boolean setting instead. This patch also corrects the assertions themselves.
* Get all test methods in OpenSim.Region.ScriptEngine.Tests.dll to report that ↵Justin Clark-Casey (justincc)2012-03-062-1/+101
| | | | they're running
* FINALLY! Script compile errors now appear in the script error pane,Melanie2009-12-221-2/+2
| | | | not in a funky debug window.
* Formatting cleanup. Ignore some generated files.Jeff Ames2009-06-091-3/+3
|
* Skip lone ident statments or for-loop assignmentsMike Mazur2009-06-071-0/+51
| | | | | | | | | | | | | | | | | SL's LSL supports lone idents: integer x; x; as well as lone idents in for-loop assignments: for (x; x < 10; x++) { ... } while those are errors in C# (MONO at least). This patch skips lone idents in such places. Fixes Mantis #3042.
* Allow empty assignment in for-loopMike Mazur2009-06-071-0/+25
| | | | | | | | | | | | For loops with no assignment are no longer syntax errors. For example, this is now valid: for ( ; i < 10; i++) { ... } Corresponding changes to lsl.{lexer,parser} in r99 in opensim-libs. Fixes Mantis #2501. Fixes Mantis #2884.
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-012-2/+2
| | | | LICENSE.txt.
* Remove chained tests in BasicGridTest.cs.Mike Mazur2009-03-111-1/+1
| | | | | | | | | | It's good practice to isolate unit tests so their outcome (pass/fail) does not depend on whether another test has been run/passed/failed. A method is used to populate the DB independently for each test, and a TearDown method cleans up the database after each test. Also adding extra comment in C-style comment test.
* Allow /* C-style comments */ in LSL scripts.Mike Mazur2009-02-251-0/+29
| | | | | | This fixes Mantis #3199. opensim-libs SVN r87 contains the corresponding changes.
* Thanks DoranZemlja for a patch implementing non-shortcircuiting inMike Mazur2009-02-201-8/+12
| | | | | logical and and logical or in LSL. Fixes Mantis #3174.
* * Fix test failure in CSCodeGeneratorTest.TestJumps()Justin Clarke Casey2008-11-061-1/+1
| | | | | | | * Need new NoOp(); generated part * Not Homer's fault - this test ain't running under Windows! (needs fixing!)
* Adapt tests to new friendly errors and correct line numbersMelanie Thielker2008-10-071-2/+2
|
* Update unit testsMelanie Thielker2008-09-271-13/+6
|
* Refactor XEngine parser as per suggestions from mikemMelanie Thielker2008-09-231-14/+14
|
* changes to Test directory structure per opensim-dev conversationSean Dague2008-09-082-0/+1758