commit:     e4cc5a8427e5d028114a5aad19365b546ad95571
Author:     Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org>
AuthorDate: Fri Dec 15 20:48:24 2023 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Dec 15 20:49:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e4cc5a84

dev-cpp/cpprestsdk: disable failing tests

Bug: https://bugs.gentoo.org/920028
Closes: https://bugs.gentoo.org/920028
Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org>

 ...2.10.19.ebuild => cpprestsdk-2.10.19-r1.ebuild} | 12 +----------
 .../cpprestsdk-2.10.19-disabl-int-tests.patch      | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild 
b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild
similarity index 88%
rename from dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild
rename to dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild
index 2024e804e2..97aea7c69e 100644
--- a/dev-cpp/cpprestsdk/cpprestsdk-2.10.19.ebuild
+++ b/dev-cpp/cpprestsdk/cpprestsdk-2.10.19-r1.ebuild
@@ -26,21 +26,11 @@ BDEPEND=">=dev-util/cmake-3.23
 
 PATCHES=(
        "${FILESDIR}"/cpprestsdk-${PV}-warnings.patch
+       "${FILESDIR}"/cpprestsdk-${PV}-disabl-int-tests.patch
 )
 
-src_prepare(){
-       cmake_src_prepare
-}
-
 src_configure() {
        local mycmakeargs=( -DCMAKE_BUILD_TYPE=Release )
        cmake_src_configure
 }
 
-src_compile(){
-       cmake_src_compile
-}
-
-src_install(){
-       cmake_src_install
-}

diff --git a/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch 
b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch
new file mode 100644
index 0000000000..25a95cc9c5
--- /dev/null
+++ b/dev-cpp/cpprestsdk/files/cpprestsdk-2.10.19-disabl-int-tests.patch
@@ -0,0 +1,24 @@
+--- a/Release/tests/functional/http/CMakeLists.txt
++++ b/Release/tests/functional/http/CMakeLists.txt
+@@ -1,3 +1,3 @@
+ add_subdirectory(utilities)
+-add_subdirectory(client)
++#add_subdirectory(client)
+ add_subdirectory(listener)
+--- a/Release/tests/functional/websockets/CMakeLists.txt
++++ b/Release/tests/functional/websockets/CMakeLists.txt
+@@ -27,9 +27,9 @@ if (NOT CPPREST_EXCLUDE_WEBSOCKETS)
+     client/stdafx.cpp
+   )
+ 
+-  add_casablanca_test(websocketsclient_test SOURCES)
+-  if(NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT")
+-    target_link_libraries(websocketsclient_test PRIVATE 
websockettest_utilities)
+-  endif()
+-  target_include_directories(websocketsclient_test PRIVATE utilities)
++#  add_casablanca_test(websocketsclient_test SOURCES)
++#  if(NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT")
++#    target_link_libraries(websocketsclient_test PRIVATE 
websockettest_utilities)
++#  endif()
++#  target_include_directories(websocketsclient_test PRIVATE utilities)
+ endif()

Reply via email to