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,62 @@
default
{
state_entry()
{
{
llOwnerSay("f1");
}
{
llOwnerSay("f1");
}
{
{
llOwnerSay("f2:" + "3");
}
}
vector ___ret__00001 = <((float)0), ((float)0), ((float)0)>;
{
{
{
{
llOwnerSay("f2:" + "4");
}
}
{
jump ___lbl__00005;
}
@___lbl__00005;
{
___ret__00001 = <((float)1), ((float)1), ((float)1)>;
jump ___rtl__00004;
}
integer ___ret__00002;
{
{
___ret__00002 = llGetLinkNumber();
jump ___rtl__00007;
}
}
@___rtl__00007;
do
;
while (___ret__00002);
{
___ret__00001 = <((float)0), ((float)0), ((float)0)>;
jump ___rtl__00004;
}
}
}
@___rtl__00004;
if (___ret__00001 == <((float)0), ((float)0), ((float)0)>)
llOwnerSay("ok");
}
timer()
{
{
{
llOwnerSay("hi");
}
}
}
}