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:
11
unit_tests/preproc.suite/metadata-passing-gcpp.lsl
Normal file
11
unit_tests/preproc.suite/metadata-passing-gcpp.lsl
Normal file
@@ -0,0 +1,11 @@
|
||||
#define VERBATIM_STRINGIFY(x) #x
|
||||
#define STRINGIFY(x) VERBATIM_STRINGIFY(x)
|
||||
default{state_entry(){
|
||||
__AGENTID__;
|
||||
__AGENTKEY__;
|
||||
STRINGIFY(__AGENTIDRAW__);
|
||||
__LINE__;
|
||||
__SHORTFILE__;
|
||||
__AGENTNAME__;
|
||||
STRINGIFY(__ASSETID__);
|
||||
}}
|
||||
13
unit_tests/preproc.suite/metadata-passing-gcpp.out
Normal file
13
unit_tests/preproc.suite/metadata-passing-gcpp.out
Normal file
@@ -0,0 +1,13 @@
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
"3c5aaad5-8c66-46a3-b574-cad02acf520d";
|
||||
"3c5aaad5-8c66-46a3-b574-cad02acf520d";
|
||||
"3c5aaad5-8c66-46a3-b574-cad02acf520d";
|
||||
7;
|
||||
"-";
|
||||
"Sei Lisa";
|
||||
"\"12345678-9abc-def0-fedc-ba9876543210\"";
|
||||
}
|
||||
}
|
||||
3
unit_tests/preproc.suite/metadata-passing-gcpp.run
Normal file
3
unit_tests/preproc.suite/metadata-passing-gcpp.run
Normal file
@@ -0,0 +1,3 @@
|
||||
main.py -O clear,processpre \
|
||||
--avid=3c5aaad5-8c66-46a3-b574-cad02acf520d --avname=Sei\ Lisa \
|
||||
--assetid='"12345678-9abc-def0-fedc-ba9876543210"' -p gcpp -
|
||||
11
unit_tests/preproc.suite/metadata-passing-mcpp.lsl
Normal file
11
unit_tests/preproc.suite/metadata-passing-mcpp.lsl
Normal file
@@ -0,0 +1,11 @@
|
||||
#define VERBATIM_STRINGIFY(x) #x
|
||||
#define STRINGIFY(x) VERBATIM_STRINGIFY(x)
|
||||
default{state_entry(){
|
||||
__AGENTID__;
|
||||
__AGENTKEY__;
|
||||
STRINGIFY(__AGENTIDRAW__);
|
||||
__LINE__;
|
||||
__SHORTFILE__;
|
||||
__AGENTNAME__;
|
||||
STRINGIFY(__ASSETID__);
|
||||
}}
|
||||
13
unit_tests/preproc.suite/metadata-passing-mcpp.out
Normal file
13
unit_tests/preproc.suite/metadata-passing-mcpp.out
Normal file
@@ -0,0 +1,13 @@
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
"3c5aaad5-8c66-46a3-b574-cad02acf520d";
|
||||
"3c5aaad5-8c66-46a3-b574-cad02acf520d";
|
||||
"3c5aaad5-8c66-46a3-b574-cad02acf520d";
|
||||
7;
|
||||
"-";
|
||||
"Sei Lisa";
|
||||
"\"12345678-9abc-def0-fedc-ba9876543210\"";
|
||||
}
|
||||
}
|
||||
3
unit_tests/preproc.suite/metadata-passing-mcpp.run
Normal file
3
unit_tests/preproc.suite/metadata-passing-mcpp.run
Normal file
@@ -0,0 +1,3 @@
|
||||
main.py -O clear,processpre \
|
||||
--avid=3c5aaad5-8c66-46a3-b574-cad02acf520d --avname=Sei\ Lisa \
|
||||
--assetid='"12345678-9abc-def0-fedc-ba9876543210"' -p mcpp -
|
||||
Reference in New Issue
Block a user