From: Michael Palimaka Date: Sat, 18 May 2019 02:11:21 +0000 (+1000) Subject: kde-plasma/discover: fix tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1d88b903b943e4f5569afeb0bfea74edddc49cb1;p=gentoo.git kde-plasma/discover: fix tests Closes: https://bugs.gentoo.org/678916 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Michael Palimaka --- diff --git a/kde-plasma/discover/discover-5.15.5.ebuild b/kde-plasma/discover/discover-5.15.5.ebuild index 6317798c5182..bd62c7d5af33 100644 --- a/kde-plasma/discover/discover-5.15.5.ebuild +++ b/kde-plasma/discover/discover-5.15.5.ebuild @@ -42,6 +42,8 @@ RDEPEND="${DEPEND} $(add_frameworks_dep kirigami) " +PATCHES=( "${FILESDIR}/${PN}-5.15.5-tests.patch" ) + src_prepare() { kde5_src_prepare # we don't need it with PackageKitBackend off diff --git a/kde-plasma/discover/files/discover-5.15.5-tests.patch b/kde-plasma/discover/files/discover-5.15.5-tests.patch new file mode 100644 index 000000000000..131a63b1e942 --- /dev/null +++ b/kde-plasma/discover/files/discover-5.15.5-tests.patch @@ -0,0 +1,38 @@ +From 03653a7d75ba8b24e28bc3adf5348ea3d0faf2b0 Mon Sep 17 00:00:00 2001 +From: Michael Palimaka +Date: Thu, 16 May 2019 19:39:44 +1000 +Subject: [PATCH] Port knsbackendtest to ecm_add_test + +Reviewers: #plasma, apol + +Reviewed By: apol + +Subscribers: asturmlechner, plasma-devel + +Tags: #plasma + +Differential Revision: https://phabricator.kde.org/D21239 +--- + libdiscover/backends/KNSBackend/tests/CMakeLists.txt | 10 +--------- + 1 file changed, 1 insertion(+), 9 deletions(-) + +diff --git a/libdiscover/backends/KNSBackend/tests/CMakeLists.txt b/libdiscover/backends/KNSBackend/tests/CMakeLists.txt +index 4fabe5ec..e64eb8ca 100644 +--- a/libdiscover/backends/KNSBackend/tests/CMakeLists.txt ++++ b/libdiscover/backends/KNSBackend/tests/CMakeLists.txt +@@ -1,11 +1,3 @@ + include_directories(..) + +-add_executable(knsbackendtest KNSBackendTest.cpp) +-add_test(knsbackendtest knsbackendtest) +-ecm_mark_as_test(knsbackendtest) +-target_link_libraries(knsbackendtest +- Discover::Common +- +- Qt5::Test Qt5::Core +- KF5::NewStuff KF5::Attica +-) ++ecm_add_test(KNSBackendTest.cpp TEST_NAME knsbackendtest LINK_LIBRARIES Discover::Common Qt5::Core Qt5::Test KF5::Attica KF5::NewStuff) +-- +2.21.0 +