vcpkg/ports/freetds/skip-unit-tests.patch

90 lines
2.7 KiB
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3840ae..19a22bb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,9 +64,9 @@ math(EXPR BUILD_NUMBER "${BUILD_NUMBER}")
set(FREETDS_TOPDIR ${CMAKE_CURRENT_LIST_DIR})
-enable_testing()
-set(CMAKE_CTEST_COMMAND ctest)
-add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
+#enable_testing()
+#set(CMAKE_CTEST_COMMAND ctest)
+#add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
# TODO depends on configure
add_definitions(-D_REENTRANT -D_THREAD_SAFE)
@@ -464,7 +464,7 @@ add_subdirectory(src/dblib)
add_subdirectory(src/odbc)
add_subdirectory(src/apps)
add_subdirectory(src/server)
-add_subdirectory(src/pool)
+#add_subdirectory(src/pool)
configure_file(${CMAKE_BINARY_DIR}/include/config.h.in ${CMAKE_BINARY_DIR}/include/config.h)
configure_file(${CMAKE_SOURCE_DIR}/include/tds_sysdep_public.h.in ${CMAKE_BINARY_DIR}/include/tds_sysdep_public.h)
diff --git a/src/ctlib/CMakeLists.txt b/src/ctlib/CMakeLists.txt
index e83b0b1..017d571 100644
--- a/src/ctlib/CMakeLists.txt
+++ b/src/ctlib/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_subdirectory(unittests)
+#add_subdirectory(unittests)
set(static_lib_name ct)
if(WIN32)
diff --git a/src/dblib/CMakeLists.txt b/src/dblib/CMakeLists.txt
index aa8a179..b626000 100644
--- a/src/dblib/CMakeLists.txt
+++ b/src/dblib/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_subdirectory(unittests)
+#add_subdirectory(unittests)
if(WIN32)
set(win_SRCS winmain.c dblib.def dbopen.c)
diff --git a/src/odbc/CMakeLists.txt b/src/odbc/CMakeLists.txt
index 7fad8db..3d90456 100644
--- a/src/odbc/CMakeLists.txt
+++ b/src/odbc/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_subdirectory(unittests)
+#add_subdirectory(unittests)
# TODO checks
add_definitions(-DUNIXODBC -DHAVE_SQLGETPRIVATEPROFILESTRING)
diff --git a/src/replacements/CMakeLists.txt b/src/replacements/CMakeLists.txt
index 37b47e3..ba17bed 100644
--- a/src/replacements/CMakeLists.txt
+++ b/src/replacements/CMakeLists.txt
@@ -35,7 +35,7 @@ if (NOT WIN32)
set_target_properties(replacements PROPERTIES POSITION_INDEPENDENT_CODE ON)
endif()
-add_subdirectory(unittests)
+#add_subdirectory(unittests)
INSTALL(TARGETS replacements
diff --git a/src/tds/CMakeLists.txt b/src/tds/CMakeLists.txt
index fee56b3..e7a71f0 100644
--- a/src/tds/CMakeLists.txt
+++ b/src/tds/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_subdirectory(unittests)
+#add_subdirectory(unittests)
if(PERL_FOUND AND NOT EXISTS "${CMAKE_SOURCE_DIR}/configure")
# get name of null device
diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt
index 2a1935c..a46483e 100644
--- a/src/utils/CMakeLists.txt
+++ b/src/utils/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_subdirectory(unittests)
+#add_subdirectory(unittests)
if(WIN32)
set(add_SRCS md5.c)