DirectXShaderCompiler/utils/lit/tests
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
..
Inputs Write lit xml output as utf-8 (#6130) 2024-01-05 11:32:49 -08:00
.coveragerc Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
discovery.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
googletest-format.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
lit.cfg Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
progress-bar.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
shell-parsing.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
shtest-encoding.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
shtest-format.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
shtest-if-else.py [lit] Port Support %if ... %else syntax for RUN lines from upstream (#5227) 2023-05-26 14:10:34 -07:00
shtest-shell.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
test-data.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
test-output.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
unittest-adaptor.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
usage.py Restore LLVM Testing Infrastructure (#4012) 2021-10-19 15:24:11 -05:00
xunit-output.py Write lit xml output as utf-8 (#6130) 2024-01-05 11:32:49 -08:00