Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refactor: Simplify compilation result tests by factoring out common code. | Justin Clark-Casey (justincc) | 2014-08-02 | 1 | -71/+45 |
| | |||||
* | In compiler regression tests, setup and teardown structures for each test to ↵ | Justin Clark-Casey (justincc) | 2014-08-02 | 1 | -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-02 | 1 | -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 exit | Justin Clark-Casey (justincc) | 2014-05-27 | 1 | -3/+6 |
| | |||||
* | Make CompilerTest add same AssemblyResolver as XEngine to see if this solves ↵ | Justin Clark-Casey (justincc) | 2014-05-27 | 1 | -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-27 | 1 | -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-24 | 1 | -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-23 | 1 | -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-23 | 1 | -8/+16 |
| | |||||
* | Add lsl arg syntax checking for control event | Justin Clark-Casey (justincc) | 2013-12-21 | 1 | -0/+17 |
| | |||||
* | Add arg checking for at_target lsl event | Justin Clark-Casey (justincc) | 2013-12-21 | 1 | -0/+17 |
| | |||||
* | Add lsl event arg checking for at_rot_target | Justin Clark-Casey (justincc) | 2013-12-21 | 1 | -0/+16 |
| | |||||
* | Add lsl event argument checking for attach and on_rez | Justin Clark-Casey (justincc) | 2013-12-21 | 1 | -0/+26 |
| | |||||
* | Add parameter checking for land_collision, land_collision_start and ↵ | Justin Clark-Casey (justincc) | 2013-11-29 | 1 | -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-16 | 1 | -0/+9 |
| | | | | | | syntax error This was the case before any of the recent changes | ||||
* | Add syntax checking for no_sensor() no-arg event | Justin Clark-Casey (justincc) | 2013-11-16 | 1 | -0/+9 |
| | |||||
* | refactor common code out of no argument LSL event regression tests | Justin Clark-Casey (justincc) | 2013-11-16 | 1 | -14/+13 |
| | |||||
* | If anything other than a single integer is specified for events that only ↵ | Justin Clark-Casey (justincc) | 2013-11-16 | 1 | -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-16 | 1 | -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 compile | Justin Clark-Casey (justincc) | 2013-11-16 | 1 | -14/+17 |
| | |||||
* | Add initial test for checking that specifying a parameter in LSL ↵ | Justin Clark-Casey (justincc) | 2013-11-09 | 1 | -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-02 | 1 | -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-24 | 2 | -2/+2 |
| | | | | automatically turns off any logging enabled between tests | ||||
* | Fix TestSyntaxError() and TestSyntaxErrorDeclaringVariableInForLoop() | Justin Clark-Casey (justincc) | 2012-03-06 | 1 | -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-06 | 2 | -1/+101 |
| | | | | they're running | ||||
* | FINALLY! Script compile errors now appear in the script error pane, | Melanie | 2009-12-22 | 1 | -2/+2 |
| | | | | not in a funky debug window. | ||||
* | Formatting cleanup. Ignore some generated files. | Jeff Ames | 2009-06-09 | 1 | -3/+3 |
| | |||||
* | Skip lone ident statments or for-loop assignments | Mike Mazur | 2009-06-07 | 1 | -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-loop | Mike Mazur | 2009-06-07 | 1 | -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 Ames | 2009-06-01 | 2 | -2/+2 |
| | | | | LICENSE.txt. | ||||
* | Remove chained tests in BasicGridTest.cs. | Mike Mazur | 2009-03-11 | 1 | -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 Mazur | 2009-02-25 | 1 | -0/+29 |
| | | | | | | This fixes Mantis #3199. opensim-libs SVN r87 contains the corresponding changes. | ||||
* | Thanks DoranZemlja for a patch implementing non-shortcircuiting in | Mike Mazur | 2009-02-20 | 1 | -8/+12 |
| | | | | | logical and and logical or in LSL. Fixes Mantis #3174. | ||||
* | * Fix test failure in CSCodeGeneratorTest.TestJumps() | Justin Clarke Casey | 2008-11-06 | 1 | -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 numbers | Melanie Thielker | 2008-10-07 | 1 | -2/+2 |
| | |||||
* | Update unit tests | Melanie Thielker | 2008-09-27 | 1 | -13/+6 |
| | |||||
* | Refactor XEngine parser as per suggestions from mikem | Melanie Thielker | 2008-09-23 | 1 | -14/+14 |
| | |||||
* | changes to Test directory structure per opensim-dev conversation | Sean Dague | 2008-09-08 | 2 | -0/+1758 |