Add the new test suite.

This test suite has been in use for a long time now, in place of the obsolete and unmanageable testparser.py and testfuncs.py. It verifies the complete optimizer output to stdout and stderr, to ensure that the output matches the expectations.

See unit_tests/README.txt for more info.
This commit is contained in:
Sei Lisa 2019-01-04 20:26:26 +01:00
parent 7fbde0269c
commit 1867dc78e7
547 changed files with 11680 additions and 0 deletions

View file

@ -0,0 +1,34 @@
default
{
state_entry()
{
integer i = 0;
{
while (i < 10)
{
integer j = 0;
{
while (j < 10)
{
if (j == 5)
jump J_autoGen00001;
if (j == 6)
jump J_autoGen00002;
if (j == 7)
jump J_autoGen00003;
if (j == 8)
jump J_autoGen00004;
++j;
@J_autoGen00004;
}
@J_autoGen00003;
}
++i;
if (llFrand(5) < 3)
jump J_autoGen00001;
@J_autoGen00002;
}
@J_autoGen00001;
}
}
}