[neon/qt/qtdatavis3d/Neon/unstable] debian: Make tests non-fatal on mips64el and mipsel.

Dmitry Shachnev null at kde.org
Mon Apr 29 17:44:05 BST 2024


Git commit 6e8aea1cdf262bfe4ce3f77559e081f068223291 by Dmitry Shachnev.
Committed on 27/11/2022 at 12:26.
Pushed by jriddell into branch 'Neon/unstable'.

Make tests non-fatal on mips64el and mipsel.

M  +2    -0    debian/changelog
M  +8    -0    debian/rules

https://invent.kde.org/neon/qt/qtdatavis3d/-/commit/6e8aea1cdf262bfe4ce3f77559e081f068223291

diff --git a/debian/changelog b/debian/changelog
index 4107566..a680699 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 qtdatavis3d-everywhere-src (5.15.6-3) UNRELEASED; urgency=medium
 
+  [ Dmitry Shachnev ]
+  * Make tests non-fatal on mips64el and mipsel.
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sun, 27 Nov 2022 15:21:16 +0300
 
diff --git a/debian/rules b/debian/rules
index 98e6c62..0d6177b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 export QT_SELECT := qt5
@@ -18,8 +19,15 @@ override_dh_auto_build-indep:
 
 override_dh_auto_test-arch:
 	$(MAKE) install -Csrc INSTALL_ROOT=$(CURDIR)/test_root
+ifneq (,$(filter $(DEB_HOST_ARCH),mips64el mipsel))
+	# Segfaults almost always on mips*, and I did not manage to obtain a
+	# meaningful stacktrace with gdb and valgrind.
+	-xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX" \
+		dh_auto_test -- LD_LIBRARY_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH) QML2_IMPORT_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/qml
+else
 	xvfb-run -a -s "-screen 0 1024x768x24 +extension RANDR +extension RENDER +extension GLX" \
 		dh_auto_test -- LD_LIBRARY_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH) QML2_IMPORT_PATH=$(CURDIR)/test_root/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/qml
+endif
 
 override_dh_auto_test-indep:
 



More information about the Neon-commits mailing list