[neon/extras/kstars/Neon/release] debian: run tests with xvfb

Pino Toscano null at kde.org
Tue Nov 1 11:10:31 GMT 2022


Git commit 1d6331e9696b096b5dfdc2277b22297a420a2ee6 by Pino Toscano.
Committed on 12/12/2021 at 10:13.
Pushed by jriddell into branch 'Neon/release'.

run tests with xvfb

some indi tests require a display

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

https://invent.kde.org/neon/extras/kstars/commit/1d6331e9696b096b5dfdc2277b22297a420a2ee6

diff --git a/debian/changelog b/debian/changelog
index b452bde..606e19f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ kstars (5:3.5.6-2) UNRELEASED; urgency=medium
     Debian:
     - uncomment the libindi-dev build dependency
     - add the libstellarsolver-dev build dependency
+  * There are INDI unit tests that require a display, so:
+    - add the xauth, and xvfb build dependencies
+    - run dh_auto_test with xvfb-run
   * Set field Upstream-Contact in debian/copyright.
   * Remove obsolete field Contact from debian/upstream/metadata (already present
     in machine-readable debian/copyright).
diff --git a/debian/control b/debian/control
index 6642707..3f61b16 100644
--- a/debian/control
+++ b/debian/control
@@ -47,6 +47,8 @@ Build-Depends: cmake (>= 3.10.0~),
                qtbase5-dev (>= 5.9.0~),
                qtdeclarative5-dev (>= 5.9.0~),
                qtmultimedia5-dev (>= 5.9.0~),
+               xauth <!nocheck>,
+               xvfb <!nocheck>,
                wcslib-dev,
                zlib1g-dev
 Standards-Version: 4.6.0
diff --git a/debian/rules b/debian/rules
index 96b0dd1..5009408 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,6 @@ endif
 execute_after_dh_auto_install:
 	# remove development stuff
 	find debian/tmp -name '*.a' -delete
+
+override_dh_auto_test:
+	xvfb-run -a dh_auto_test



More information about the Neon-commits mailing list