tame/tamer/tests/xmli
Mike Gerwitz 9cb6195046 tamer: asg: Add basic Doc support (for @desc)
This introduces a new `Doc` object that can be owned by `Expr` (only atm)
and contain what it describes as a concise independent clause.  This
construction is not enforced, and is only really obvious today via the
Summary Pages.

There's a lot of latent and unrealized potential in TAME's documentation
philosophy that was never realized, so this will certainly evolve over
time.  But for now, the primary purpose was to get `@desc` working on things
like classifications so that `xmli` output can compile for certain
packages.

DEV-13708
2023-04-12 11:59:48 -04:00
..
classify tamer: asg: Add basic Doc support (for @desc) 2023-04-12 11:59:48 -04:00
combined tamer: tests/xmli: Break apart single test case 2023-03-10 14:27:59 -05:00
empty tamer: tests/xmli: Break apart single test case 2023-03-10 14:27:59 -05:00
package tamer: NIR->xmli: Represent package imports 2023-04-07 09:44:16 -04:00
rate tamer: NIR->xmli: Ceil, Floor expressions 2023-03-10 14:28:00 -05:00
template tamer: NIR->xmli: Basic match support 2023-04-06 22:40:18 -04:00
.gitignore tamer: tests/xmli: Formatted and more informative output 2023-03-10 14:27:59 -05:00
README.md tamer: tests/xmli: Break apart single test case 2023-03-10 14:27:59 -05:00
test-xmli tamer: tests/xmli: Estimate tamec time in milliseconds 2023-03-10 14:27:59 -05:00

README.md

XMLI System Test

The xmli file is an intermediate file that serves as a handoff between TAMER and the XSLT-based compiler:

xml -> (TAMER) -> xmli -> (TAME XSLT) -> xmlo

TAMER gets the first shot at processing, and then the compilation process continues with the XSLT-based compiler. This allows TAMER to incrementally augment and manipulate the source file and remove responsibilities from TAME XSLT.

Tests in this directory ensure that this process is working as intended. TAMER's failure to perform a proper handoff will cause TAME XSLT to compile sources incorrectly, since TAMER will have rewritten them to something else.

This handoff is more than just echoing tokens back into a file---it derives a new program from the state of the ASG. This program may have a slightly different representation than the original sources, but it must express an equivalent program, and the program must be at least as performant when emitted by TAME XSLT.

Running Tests

Test are prefixed with test-* and are executable. They must be invoked with the environment variable PATH_TAMEC set to the path of tamec relative to the working directory.

Test cases are organized into sub-directories with src.xml and expected.xml files. src.xml will be compiled with tamec, its output formatted with xmllint --format, and diff'd against the xmllint-formatted output of expected.xml.