Add additional tests and XML Conformance Test Suite

This commit is contained in:
Markus Rickert 2020-06-04 14:45:48 +02:00
parent e6ba4bd775
commit 270e165552

View File

@ -558,8 +558,13 @@ if(LIBXML2_WITH_TESTS)
foreach(TEST ${TESTS})
add_executable(${TEST} ${TEST}.c)
target_link_libraries(${TEST} LibXml2)
#add_test(NAME ${TEST} COMMAND ${TEST})
endforeach()
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/xmlconf/xmlconf.xml)
add_test(NAME runxmlconf COMMAND runxmlconf)
endif()
add_test(NAME testchar COMMAND testchar)
add_test(NAME testdict COMMAND testdict)
add_test(NAME testrecurse COMMAND testrecurse WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if(Threads_FOUND)
set(
TESTS_THREADS