[libxslt] tests: Enable runtest.exe under MSVC
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] tests: Enable runtest.exe under MSVC
- Date: Wed, 7 Sep 2022 23:25:23 +0000 (UTC)
commit 8d519c86c3a4166db5020935fecc88132b90bc83
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Wed Sep 7 22:45:45 2022 +0200
tests: Enable runtest.exe under MSVC
CMakeLists.txt | 53 ++++++++++++++++++++++++-----------------------------
1 file changed, 24 insertions(+), 29 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index acb34341..57d5d445 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -357,36 +357,31 @@ install(TARGETS xsltproc EXPORT LibXslt RUNTIME DESTINATION ${CMAKE_INSTALL_BIND
if(LIBXSLT_WITH_TESTS)
enable_testing()
- if (NOT MSVC)
- # TODO:
- # - Unsupported encoding windows-1251
- # - Segfault in exslt dynamic tests
-
- add_executable(runtest tests/runtest.c)
- target_link_libraries(runtest LibXslt LibExslt)
- add_test(
- NAME runtest COMMAND runtest
- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests"
- )
+ add_executable(runtest tests/runtest.c)
+ target_link_libraries(runtest LibXslt LibExslt)
+ add_test(
+ NAME runtest COMMAND runtest
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tests"
+ )
- if (LIBXSLT_WITH_MODULES)
- add_library(testplugin SHARED tests/testplugin.c)
- target_link_libraries(testplugin LibExslt LibXslt)
- set_target_properties(
- testplugin PROPERTIES
- PREFIX ""
- OUTPUT_NAME xmlsoft_org_xslt_testplugin
- )
- # There must be an easier way...
- get_cmake_property(MULTI_CONFIG GENERATOR_IS_MULTI_CONFIG)
- if (MULTI_CONFIG)
- set(PLUGINS_PATH ${PROJECT_BINARY_DIR}/$<CONFIG>)
- else()
- set(PLUGINS_PATH ${PROJECT_BINARY_DIR})
- endif()
- set_tests_properties(
- runtest PROPERTIES
- ENVIRONMENT LIBXSLT_PLUGINS_PATH=${PLUGINS_PATH}
+ if (LIBXSLT_WITH_MODULES)
+ add_library(testplugin SHARED tests/testplugin.c)
+ target_link_libraries(testplugin LibExslt LibXslt)
+ set_target_properties(
+ testplugin PROPERTIES
+ PREFIX ""
+ OUTPUT_NAME xmlsoft_org_xslt_testplugin
+ )
+ # There must be an easier way...
+ get_cmake_property(MULTI_CONFIG GENERATOR_IS_MULTI_CONFIG)
+ if (MULTI_CONFIG)
+ set(PLUGINS_PATH ${PROJECT_BINARY_DIR}/$<CONFIG>)
+ else()
+ set(PLUGINS_PATH ${PROJECT_BINARY_DIR})
+ endif()
+ set_tests_properties(
+ runtest PROPERTIES
+ ENVIRONMENT LIBXSLT_PLUGINS_PATH=${PLUGINS_PATH}
)
endif()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]