DirectXShaderCompiler/utils/lit
David Peixotto d936753d6a
Write lit xml output as utf-8 (#6130)
This commit modifies the xml output of lit so that we always open the
file as utf-8 and also encode any invalid characters with the xml
character reference.

I was hitting an encoding error on windows for some test output because
the xml file was using the windows cp1252 encoding and it ran into some
characters that could not be encoded.

In order to test the change I added a new flag to lit
`--xml-include-test-output` which will include all test output in the
xml. That way we can still expect the lit run to pass and also validate
that the xml file is properly encoded.
2024-01-05 11:32:49 -08:00
..
examples Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
lit Write lit xml output as utf-8 (#6130) 2024-01-05 11:32:49 -08:00
tests Write lit xml output as utf-8 (#6130) 2024-01-05 11:32:49 -08:00
utils Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
MANIFEST.in Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
README.txt Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
TODO Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
lit.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
setup.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00

README.txt

===============================
 lit - A Software Testing Tool
===============================

lit is a portable tool for executing LLVM and Clang style test suites,
summarizing their results, and providing indication of failures. lit is designed
to be a lightweight testing tool with as simple a user interface as possible.