[neon/extras/tellico/Neon/release] debian: use dbus for tests

Pino Toscano null at kde.org
Thu Sep 8 17:48:54 BST 2022


Git commit 5f749777f93d113926a74ea1bd9d82d9e7d03723 by Pino Toscano.
Committed on 21/08/2021 at 07:41.
Pushed by jriddell into branch 'Neon/release'.

use dbus for tests

M  +3    -0    debian/changelog
M  +1    -0    debian/control
M  +1    -1    debian/rules

https://invent.kde.org/neon/extras/tellico/commit/5f749777f93d113926a74ea1bd9d82d9e7d03723

diff --git a/debian/changelog b/debian/changelog
index 9c51e0e..da261c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,9 @@ tellico (3.4.1-0r1) UNRELEASED; urgency=medium
     manually.
   * Unregister tellico-script.knsrc, and tellico-template.knsrc as conffiles,
     as they are no more in /etc.
+  * Few tests require a D-Bus session, so:
+    - add the dbus build dependency
+    - run dh_auto_test with dbus-run-session
 
  -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Sat, 21 Aug 2021 08:35:05 +0200
 
diff --git a/debian/control b/debian/control
index acb9e43..406197c 100644
--- a/debian/control
+++ b/debian/control
@@ -39,6 +39,7 @@ Build-Depends: debhelper-compat (= 13),
  , gettext
  , xvfb, xauth, kio
  , python3:any, dh-python
+ , dbus
 Build-Conflicts: libqimageblitz-dev
 Standards-Version: 4.6.0
 Rules-Requires-Root: no
diff --git a/debian/rules b/debian/rules
index 2d1d75a..f72e776 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	$(eval TESTS_HOME := $(shell mktemp -d --tmpdir tellico-home.XXXXXX))
 	mkdir -p "$(TESTS_HOME)/tmp"
 	mkdir -p -m 700 "$(TESTS_HOME)/runtime"
-	xvfb-run -a --server-args="-screen 0 1024x768x24+32" dh_auto_test --no-parallel -- XDG_DATA_DIRS=$(CURDIR)/test_root/usr/share:/usr/local/share:/usr/share HOME="$(TESTS_HOME)" TMPDIR="$(TESTS_HOME)/tmp" XDG_RUNTIME_DIR="$(TESTS_HOME)/runtime"
+	xvfb-run -a --server-args="-screen 0 1024x768x24+32" dbus-run-session dh_auto_test --no-parallel -- XDG_DATA_DIRS=$(CURDIR)/test_root/usr/share:/usr/local/share:/usr/share HOME="$(TESTS_HOME)" TMPDIR="$(TESTS_HOME)/tmp" XDG_RUNTIME_DIR="$(TESTS_HOME)/runtime"
 	rm -rf "$(TESTS_HOME)"
 endif
 



More information about the Neon-commits mailing list