[neon/extras/qca2/Neon/stable] debian: make sure unit tests can use the built plugins

Pino Toscano null at kde.org
Tue Dec 13 14:39:26 GMT 2022


Git commit 17f66da86de01a323c858a0b564ed7d05ade8c5a by Pino Toscano.
Committed on 22/10/2022 at 12:10.
Pushed by carlosdem into branch 'Neon/stable'.

make sure unit tests can use the built plugins

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

https://invent.kde.org/neon/extras/qca2/commit/17f66da86de01a323c858a0b564ed7d05ade8c5a

diff --git a/debian/changelog b/debian/changelog
index 2838015..25a8e7c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,8 @@ qca2 (2.3.5-0r1) UNRELEASED; urgency=medium
     a crash in hashunittest; patch
     upstream_hashunittest-run-sha384longtest-only-for-providers-t.patch.
   * Update lintian overrides.
+  * Export QT_PLUGIN_PATH with the build location of the plugin when running
+    dh_auto_test: this way, the unit tests can use the plugins.
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sat, 22 Oct 2022 12:29:54 +0200
 
diff --git a/debian/rules b/debian/rules
index b9d2fb2..70069c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,9 @@ override_dh_auto_build-indep:
 
 override_dh_auto_install-indep:
 
+override_dh_auto_test-arch:
+	QT_PLUGIN_PATH=$(CURDIR)/build/lib/qca-qt5/ dh_auto_test -a
+
 override_dh_auto_test-indep:
 
 override_dh_gencontrol-arch: libpkgs_gen_strict_local_shlibs



More information about the Neon-commits mailing list