CMake: Enable tests
This PR includes the required patches to CMake and runtest.c from libxslt#40 (closed) for enabling the libxml2 tests via CTest:
- The tests runxmlconf, testapi, testchar, testdict, testrecurse, runtest, and testThreads are enabled
- A
.gitattributes
is added to set the line endings for the test files to LF in caseautocrlf
is used -
runtest.c
now has a command-line option--out
for specifying the temp directory via to enable out-of-source builds - The working directory of the XML Conformance Test Suite can be set via
LIBXML2_XMLCONF_WORKING_DIR
- The file
config.h.cmake.in
is updated to match the current autotools version in order to support building on MSYS2 - The CMake project language is set to C