[neon/qt/pyside2/Neon/release] debian: Test WebEngine only on architectures where it is available.

Dmitry Shachnev null at kde.org
Mon Oct 9 15:37:19 BST 2023


Git commit 265b281877c88abf751cb4b03921be85977ea1e8 by Dmitry Shachnev.
Committed on 25/06/2023 at 18:33.
Pushed by jriddell into branch 'Neon/release'.

Test WebEngine only on architectures where it is available.

M  +1    -0    debian/changelog
M  +3    -0    debian/tests/control
M  +6    -2    debian/tests/control.gen

https://invent.kde.org/neon/qt/pyside2/-/commit/265b281877c88abf751cb4b03921be85977ea1e8

diff --git a/debian/changelog b/debian/changelog
index a7c8fa6b..0db7429d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ pyside2 (5.15.10-2) UNRELEASED; urgency=medium
   * Regenerate debian/tests/control using debian/tests/control.gen.
   * Enable the Qt WebEngine packages on mips64el.
   * Enable the Qt Data Visualization package on all architectures.
+  * Test WebEngine only on architectures where it is available.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Sun, 25 Jun 2023 19:11:04 +0300
 
diff --git a/debian/tests/control b/debian/tests/control
index 46371b72..c19f9f21 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -37,6 +37,7 @@ Restrictions: allow-stderr, superficial
 Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebenginecore PySide2.QtWebEngineCore
 Depends: python3-pyside2.qtwebenginecore, python3
 Restrictions: allow-stderr, superficial
+Architecture: amd64 arm64 armhf i386 mips64el mipsel
 
 Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qttexttospeech PySide2.QtTextToSpeech
 Depends: python3-pyside2.qttexttospeech, python3
@@ -109,6 +110,7 @@ Restrictions: allow-stderr, superficial
 Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebenginewidgets PySide2.QtWebEngineWidgets
 Depends: python3-pyside2.qtwebenginewidgets, python3
 Restrictions: allow-stderr, superficial
+Architecture: amd64 arm64 armhf i386 mips64el mipsel
 
 Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtconcurrent PySide2.QtConcurrent
 Depends: python3-pyside2.qtconcurrent, python3
@@ -173,3 +175,4 @@ Restrictions: allow-stderr, superficial
 Test-Command: debian/tests/test_install_python3.sh python3-pyside2.qtwebengine PySide2.QtWebEngine
 Depends: python3-pyside2.qtwebengine, python3
 Restrictions: allow-stderr, superficial
+Architecture: amd64 arm64 armhf i386 mips64el mipsel
diff --git a/debian/tests/control.gen b/debian/tests/control.gen
index 6aa70a5f..c3a41403 100755
--- a/debian/tests/control.gen
+++ b/debian/tests/control.gen
@@ -10,8 +10,12 @@ for binary_package in $(dh_listpackages|grep "python3-pyside2.qt"); do
     import_name=$(find sources/pyside2/PySide2/ -maxdepth 1 -type d| xargs -n 1 basename|grep -i ^$module_name$)
     echo "Test-Command: debian/tests/test_install_python3.sh $binary_package PySide2.$import_name
 Depends: $binary_package, python3
-Restrictions: allow-stderr, superficial
-" >>debian/tests/control
+Restrictions: allow-stderr, superficial" >>debian/tests/control
+    architecture=$(sed -n "/^Package: ${binary_package}$/{n; p}" debian/control)
+    if [ "$architecture" != 'Architecture: any' ]; then
+        echo "$architecture" >>debian/tests/control
+    fi
+    echo "" >>debian/tests/control
 done
 
 sed -i '$d' debian/tests/control



More information about the Neon-commits mailing list