public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/kde:master commit in: kde-plasma/discover/files/, kde-plasma/discover/
@ 2019-05-18  2:12 Michael Palimaka
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Palimaka @ 2019-05-18  2:12 UTC (permalink / raw
  To: gentoo-commits

commit:     123bc00710c5a4724dd126fadcd2f24690574c56
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sat May 18 02:11:37 2019 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sat May 18 02:11:48 2019 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=123bc007

kde-plasma/discover: fix tests

Bug: https://bugs.gentoo.org/678916
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>

 kde-plasma/discover/discover-5.15.90.ebuild        |  2 ++
 kde-plasma/discover/discover-5.16.49.9999.ebuild   |  2 ++
 .../discover/files/discover-5.15.5-tests.patch     | 38 ++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/kde-plasma/discover/discover-5.15.90.ebuild b/kde-plasma/discover/discover-5.15.90.ebuild
index 6317798c51..bd62c7d5af 100644
--- a/kde-plasma/discover/discover-5.15.90.ebuild
+++ b/kde-plasma/discover/discover-5.15.90.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/discover-5.16.49.9999.ebuild b/kde-plasma/discover/discover-5.16.49.9999.ebuild
index ae6b410e05..4b2533e516 100644
--- a/kde-plasma/discover/discover-5.16.49.9999.ebuild
+++ b/kde-plasma/discover/discover-5.16.49.9999.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 0000000000..131a63b1e9
--- /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 <kensington@gentoo.org>
+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
+


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/kde:master commit in: kde-plasma/discover/files/, kde-plasma/discover/
@ 2019-06-05 19:06 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2019-06-05 19:06 UTC (permalink / raw
  To: gentoo-commits

commit:     3697c46930646b08e6bf13fe7ec5879f16e5b06f
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  5 17:21:20 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jun  5 17:21:20 2019 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=3697c469

kde-plasma/discover: Disable knsbackendtest, needs network connection

Closes: https://bugs.gentoo.org/686392
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-plasma/discover/discover-5.15.90.ebuild        | 11 +++++--
 kde-plasma/discover/discover-5.16.49.9999.ebuild   | 11 +++++--
 kde-plasma/discover/discover-9999.ebuild           |  9 +++++
 .../discover/files/discover-5.15.5-tests.patch     | 38 ----------------------
 4 files changed, 27 insertions(+), 42 deletions(-)

diff --git a/kde-plasma/discover/discover-5.15.90.ebuild b/kde-plasma/discover/discover-5.15.90.ebuild
index bd62c7d5af..858302509e 100644
--- a/kde-plasma/discover/discover-5.15.90.ebuild
+++ b/kde-plasma/discover/discover-5.15.90.ebuild
@@ -42,8 +42,6 @@ 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
@@ -61,3 +59,12 @@ src_configure() {
 
 	kde5_src_configure
 }
+
+src_test() {
+	# bug 686392: needs network connection
+	local myctestargs=(
+		-E "(knsbackendtest)"
+	)
+
+	kde5_src_test
+}

diff --git a/kde-plasma/discover/discover-5.16.49.9999.ebuild b/kde-plasma/discover/discover-5.16.49.9999.ebuild
index 4b2533e516..0bd40267c0 100644
--- a/kde-plasma/discover/discover-5.16.49.9999.ebuild
+++ b/kde-plasma/discover/discover-5.16.49.9999.ebuild
@@ -42,8 +42,6 @@ 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
@@ -61,3 +59,12 @@ src_configure() {
 
 	kde5_src_configure
 }
+
+src_test() {
+	# bug 686392: needs network connection
+	local myctestargs=(
+		-E "(knsbackendtest)"
+	)
+
+	kde5_src_test
+}

diff --git a/kde-plasma/discover/discover-9999.ebuild b/kde-plasma/discover/discover-9999.ebuild
index ae6b410e05..0bd40267c0 100644
--- a/kde-plasma/discover/discover-9999.ebuild
+++ b/kde-plasma/discover/discover-9999.ebuild
@@ -59,3 +59,12 @@ src_configure() {
 
 	kde5_src_configure
 }
+
+src_test() {
+	# bug 686392: needs network connection
+	local myctestargs=(
+		-E "(knsbackendtest)"
+	)
+
+	kde5_src_test
+}

diff --git a/kde-plasma/discover/files/discover-5.15.5-tests.patch b/kde-plasma/discover/files/discover-5.15.5-tests.patch
deleted file mode 100644
index 131a63b1e9..0000000000
--- a/kde-plasma/discover/files/discover-5.15.5-tests.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 03653a7d75ba8b24e28bc3adf5348ea3d0faf2b0 Mon Sep 17 00:00:00 2001
-From: Michael Palimaka <kensington@gentoo.org>
-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
-


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/kde:master commit in: kde-plasma/discover/files/, kde-plasma/discover/
@ 2022-09-17 12:00 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2022-09-17 12:00 UTC (permalink / raw
  To: gentoo-commits

commit:     0990b1569434d047125d1ddc4a54ca1c7a40b2dc
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 17 11:59:09 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 17 12:00:34 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=0990b156

kde-plasma/discover: Rebase tests-optional.patch

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-plasma/discover/discover-5.25.90.ebuild        |  2 +-
 kde-plasma/discover/discover-5.26.49.9999.ebuild   |  2 +-
 kde-plasma/discover/discover-9999.ebuild           |  2 +-
 ...patch => discover-5.25.90-tests-optional.patch} | 22 +++++++++++-----------
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/kde-plasma/discover/discover-5.25.90.ebuild b/kde-plasma/discover/discover-5.25.90.ebuild
index be798a7185..a7aa853225 100644
--- a/kde-plasma/discover/discover-5.25.90.ebuild
+++ b/kde-plasma/discover/discover-5.25.90.ebuild
@@ -55,7 +55,7 @@ RDEPEND="${DEPEND}
 	>=dev-qt/qtquickcontrols2-${QTMIN}:5
 "
 
-PATCHES=( "${FILESDIR}/${PN}-5.25.1-tests-optional.patch" )
+PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" )
 
 src_prepare() {
 	ecm_src_prepare

diff --git a/kde-plasma/discover/discover-5.26.49.9999.ebuild b/kde-plasma/discover/discover-5.26.49.9999.ebuild
index 28ffa33928..b1f9e2848c 100644
--- a/kde-plasma/discover/discover-5.26.49.9999.ebuild
+++ b/kde-plasma/discover/discover-5.26.49.9999.ebuild
@@ -55,7 +55,7 @@ RDEPEND="${DEPEND}
 	>=dev-qt/qtquickcontrols2-${QTMIN}:5
 "
 
-PATCHES=( "${FILESDIR}/${PN}-5.25.1-tests-optional.patch" )
+PATCHES=( "${FILESDIR}/${PN}-5.25.90-tests-optional.patch" )
 
 src_prepare() {
 	ecm_src_prepare

diff --git a/kde-plasma/discover/discover-9999.ebuild b/kde-plasma/discover/discover-9999.ebuild
index 3b629cdbcd..e7a86646e9 100644
--- a/kde-plasma/discover/discover-9999.ebuild
+++ b/kde-plasma/discover/discover-9999.ebuild
@@ -55,7 +55,7 @@ RDEPEND="${DEPEND}
 	>=dev-qt/qtquickcontrols2-${QTMIN}:5
 "
 
-PATCHES=( "${FILESDIR}/${PN}-5.25.1-tests-optional.patch" )
+PATCHES=( "${FILESDIR}/${PN}-5.25.90-tests-optional.patch" )
 
 src_prepare() {
 	ecm_src_prepare

diff --git a/kde-plasma/discover/files/discover-5.25.1-tests-optional.patch b/kde-plasma/discover/files/discover-5.25.90-tests-optional.patch
similarity index 83%
rename from kde-plasma/discover/files/discover-5.25.1-tests-optional.patch
rename to kde-plasma/discover/files/discover-5.25.90-tests-optional.patch
index fc01ca3214..188f7d5b9e 100644
--- a/kde-plasma/discover/files/discover-5.25.1-tests-optional.patch
+++ b/kde-plasma/discover/files/discover-5.25.90-tests-optional.patch
@@ -1,4 +1,4 @@
-From 608e1dc8232002bc4cff600eae7571a100856334 Mon Sep 17 00:00:00 2001
+From e7ff50753b17ba97c3abfe08dfe2eb43f264ab6b Mon Sep 17 00:00:00 2001
 From: Andreas Sturmlechner <asturm@gentoo.org>
 Date: Fri, 14 May 2021 12:38:57 +0200
 Subject: [PATCH] Use BUILD_TESTING to make tests optional
@@ -15,24 +15,24 @@ Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
  5 files changed, 17 insertions(+), 5 deletions(-)
 
 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index cd8c61aa..8ce3fa8c 100644
+index 3127d0e92..4fac1c926 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -22,7 +22,11 @@
+@@ -22,7 +22,11 @@ include(GenerateExportHeader)
  include(ECMQtDeclareLoggingCategory)
  include(KDEClangFormat)
  include(KDEGitCommitHooks)
--find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS Widgets Test Network Xml Concurrent DBus Quick)
-+find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS Widgets Network Xml Concurrent DBus Quick)
+-find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS Widgets Test Network Xml Concurrent DBus Quick WebView)
++find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS Widgets Network Xml Concurrent DBus Quick WebView)
 +
 +if(BUILD_TESTING)
-+    find_package(Qt${QT_MAJOR_VERSION}Test ${QT_MIN_VERSION} CONFIG REQUIRED)
++    find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED)
 +endif()
  
  find_package(PkgConfig REQUIRED)
  
 diff --git a/libdiscover/CMakeLists.txt b/libdiscover/CMakeLists.txt
-index a26d6934..ca827f3b 100644
+index 023b110fd..7778fab0c 100644
 --- a/libdiscover/CMakeLists.txt
 +++ b/libdiscover/CMakeLists.txt
 @@ -4,7 +4,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-paths.h.cmake ${CMAKE_CURRENT_
@@ -47,7 +47,7 @@ index a26d6934..ca827f3b 100644
  set(discovercommon_SRCS
      Category/Category.cpp
 diff --git a/libdiscover/backends/DummyBackend/CMakeLists.txt b/libdiscover/backends/DummyBackend/CMakeLists.txt
-index 5b4aef10..38377d80 100644
+index 5b4aef10c..38377d808 100644
 --- a/libdiscover/backends/DummyBackend/CMakeLists.txt
 +++ b/libdiscover/backends/DummyBackend/CMakeLists.txt
 @@ -1,4 +1,6 @@
@@ -59,7 +59,7 @@ index 5b4aef10..38377d80 100644
  set(dummy-backend_SRCS
      DummyResource.cpp
 diff --git a/libdiscover/backends/FlatpakBackend/CMakeLists.txt b/libdiscover/backends/FlatpakBackend/CMakeLists.txt
-index 55e6b38e..e2d11b93 100644
+index a051a4a21..f228f1ec0 100644
 --- a/libdiscover/backends/FlatpakBackend/CMakeLists.txt
 +++ b/libdiscover/backends/FlatpakBackend/CMakeLists.txt
 @@ -1,4 +1,6 @@
@@ -71,7 +71,7 @@ index 55e6b38e..e2d11b93 100644
  set(flatpak-backend_SRCS
      FlatpakResource.cpp
 diff --git a/libdiscover/backends/KNSBackend/CMakeLists.txt b/libdiscover/backends/KNSBackend/CMakeLists.txt
-index 54f19e1f..ec3443e9 100644
+index d52bee9d0..7d5ba8dc9 100644
 --- a/libdiscover/backends/KNSBackend/CMakeLists.txt
 +++ b/libdiscover/backends/KNSBackend/CMakeLists.txt
 @@ -1,4 +1,6 @@
@@ -83,5 +83,5 @@ index 54f19e1f..ec3443e9 100644
  add_library(kns-backend MODULE
      KNSBackend.cpp
 -- 
-2.35.1
+2.37.3
 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] proj/kde:master commit in: kde-plasma/discover/files/, kde-plasma/discover/
@ 2024-03-27 21:59 Andreas Sturmlechner
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2024-03-27 21:59 UTC (permalink / raw
  To: gentoo-commits

commit:     52cdfcf21570afc0dddb68e554bb6bd6e6767759
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 27 21:58:36 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 27 21:58:36 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=52cdfcf2

kde-plasma/discover: Drop upstreamed patch

Bug: https://bugs.gentoo.org/927951
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-plasma/discover/discover-9999.ebuild           |   2 -
 .../files/discover-6.0.80-tests-optional.patch     | 111 ---------------------
 2 files changed, 113 deletions(-)

diff --git a/kde-plasma/discover/discover-9999.ebuild b/kde-plasma/discover/discover-9999.ebuild
index 340acd5629..1c4c11564a 100644
--- a/kde-plasma/discover/discover-9999.ebuild
+++ b/kde-plasma/discover/discover-9999.ebuild
@@ -51,8 +51,6 @@ RDEPEND="${DEPEND}
 "
 BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:6"
 
-PATCHES=( "${FILESDIR}/${PN}-6.0.80-tests-optional.patch" )
-
 src_prepare() {
 	ecm_src_prepare
 	# we don't need it with PackageKitBackend off

diff --git a/kde-plasma/discover/files/discover-6.0.80-tests-optional.patch b/kde-plasma/discover/files/discover-6.0.80-tests-optional.patch
deleted file mode 100644
index 2568efeaea..0000000000
--- a/kde-plasma/discover/files/discover-6.0.80-tests-optional.patch
+++ /dev/null
@@ -1,111 +0,0 @@
-From 45b61189358db327fe51872e060cdc590c4e1eb5 Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner <asturm@gentoo.org>
-Date: Fri, 14 May 2021 12:38:57 +0200
-Subject: [PATCH] Don't build tests unless requested by BUILD_TESTING
-
-Variable is provided by KDECMakeSettings and default enabled.
-
-Cleanup cmake a bit, Qt 6.6.0 is minimum by now.
-
-Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
----
- CMakeLists.txt                                     | 4 +++-
- appiumtests/CMakeLists.txt                         | 9 ---------
- libdiscover/CMakeLists.txt                         | 4 +++-
- libdiscover/backends/DummyBackend/CMakeLists.txt   | 4 +++-
- libdiscover/backends/FlatpakBackend/CMakeLists.txt | 4 +++-
- libdiscover/backends/KNSBackend/CMakeLists.txt     | 4 +++-
- 6 files changed, 15 insertions(+), 14 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 95c3bd7e7..4da1df6a1 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -63,7 +63,9 @@ add_definitions(-DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING)
- 
- configure_file(DiscoverVersion.h.in DiscoverVersion.h)
- 
--add_subdirectory(appiumtests)
-+if(BUILD_TESTING AND CMAKE_SYSTEM_NAME MATCHES "Linux")
-+    add_subdirectory(appiumtests)
-+endif()
- add_subdirectory(libdiscover)
- add_subdirectory(discover)
- add_subdirectory(exporter)
-diff --git a/appiumtests/CMakeLists.txt b/appiumtests/CMakeLists.txt
-index d0214ec5c..8e610d3a4 100644
---- a/appiumtests/CMakeLists.txt
-+++ b/appiumtests/CMakeLists.txt
-@@ -1,15 +1,6 @@
- # SPDX-License-Identifier: BSD-3-Clause
- # SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
- 
--if(NOT Qt6_VERSION VERSION_GREATER_EQUAL "6.5.0")
--    # Before Qt 6.5 the AbstractButtons didn't trigger properly at all.
--    return()
--endif()
--
--if(NOT BUILD_TESTING OR NOT CMAKE_SYSTEM_NAME MATCHES "Linux")
--    return()
--endif()
--
- find_package(SeleniumWebDriverATSPI)
- set_package_properties(SeleniumWebDriverATSPI PROPERTIES
-     DESCRIPTION "Server component for selenium tests using Linux accessibility infrastructure"
-diff --git a/libdiscover/CMakeLists.txt b/libdiscover/CMakeLists.txt
-index 6e23a2f10..ff7038878 100644
---- a/libdiscover/CMakeLists.txt
-+++ b/libdiscover/CMakeLists.txt
-@@ -4,7 +4,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-paths.h.cmake ${CMAKE_CURRENT_
- 
- add_subdirectory(backends)
- add_subdirectory(notifiers)
--add_subdirectory(tests)
-+if(BUILD_TESTING)
-+    add_subdirectory(tests)
-+endif()
- 
- if (TARGET AppStreamQt)
-     add_library(DiscoverAppStreamIntegration STATIC
-diff --git a/libdiscover/backends/DummyBackend/CMakeLists.txt b/libdiscover/backends/DummyBackend/CMakeLists.txt
-index 1c4fbea16..c8f2efeea 100644
---- a/libdiscover/backends/DummyBackend/CMakeLists.txt
-+++ b/libdiscover/backends/DummyBackend/CMakeLists.txt
-@@ -1,4 +1,6 @@
--add_subdirectory(tests)
-+if(BUILD_TESTING)
-+    add_subdirectory(tests)
-+endif()
- 
- set(dummy-backend_SRCS
-     DummyResource.cpp
-diff --git a/libdiscover/backends/FlatpakBackend/CMakeLists.txt b/libdiscover/backends/FlatpakBackend/CMakeLists.txt
-index 9190b49dc..d20a66fef 100644
---- a/libdiscover/backends/FlatpakBackend/CMakeLists.txt
-+++ b/libdiscover/backends/FlatpakBackend/CMakeLists.txt
-@@ -17,7 +17,9 @@ target_link_libraries(libdiscover-backend-flatpak-logging-category
-         Qt::Core
- )
- 
--add_subdirectory(tests)
-+if(BUILD_TESTING)
-+    add_subdirectory(tests)
-+endif()
- 
- set(flatpak-backend_SRCS
-     FlatpakResource.cpp
-diff --git a/libdiscover/backends/KNSBackend/CMakeLists.txt b/libdiscover/backends/KNSBackend/CMakeLists.txt
-index fe39611f5..4d0e59bf1 100644
---- a/libdiscover/backends/KNSBackend/CMakeLists.txt
-+++ b/libdiscover/backends/KNSBackend/CMakeLists.txt
-@@ -1,4 +1,6 @@
--add_subdirectory(tests)
-+if(BUILD_TESTING)
-+    add_subdirectory(tests)
-+endif()
- 
- add_library(kns-backend MODULE
-     KNSBackend.cpp
--- 
-2.44.0
-


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-27 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-05 19:06 [gentoo-commits] proj/kde:master commit in: kde-plasma/discover/files/, kde-plasma/discover/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2024-03-27 21:59 Andreas Sturmlechner
2022-09-17 12:00 Andreas Sturmlechner
2019-05-18  2:12 Michael Palimaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox