[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#722718: qtsvg-opensource-src: Please enable tests



Package: qtsvg-opensource-src
Version: 5.0.2-3
Severity: wishlist
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu saucy ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to build and run tests during package build.  Thanks for considering it.


-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11.0-7-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru qtsvg-opensource-src-5.0.2/debian/changelog qtsvg-opensource-src-5.0.2/debian/changelog
diff -Nru qtsvg-opensource-src-5.0.2/debian/control qtsvg-opensource-src-5.0.2/debian/control
--- qtsvg-opensource-src-5.0.2/debian/control	2013-06-20 18:20:30.000000000 -0400
+++ qtsvg-opensource-src-5.0.2/debian/control	2013-09-13 12:37:53.000000000 -0400
@@ -9,12 +9,14 @@
            Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>,
            Felix Geyer <fgeyer@debian.org>,
            Timo Jyrinki <timo@debian.org>
-Build-Depends: debhelper (>= 9),
+Build-Depends: dbus,
+               debhelper (>= 9),
                qtbase5-dev (>= 5.0.2~),
                qtbase5-private-dev (>= 5.0.2~),
                libqt5opengl5-dev (>= 5.0.2~),
                zlib1g-dev,
                pkg-kde-tools,
+               xvfb,
 Build-Depends-Indep: libqt5sql5-sqlite,
                      qttools5-dev-tools (>= 5.0.2~)
 Standards-Version: 3.9.4
diff -Nru qtsvg-opensource-src-5.0.2/debian/rules qtsvg-opensource-src-5.0.2/debian/rules
--- qtsvg-opensource-src-5.0.2/debian/rules	2013-06-09 13:20:57.000000000 -0400
+++ qtsvg-opensource-src-5.0.2/debian/rules	2013-09-13 12:16:55.000000000 -0400
@@ -12,11 +12,14 @@
 	dh $@ --parallel --with pkgkde_symbolshelper --dbg-package=qtsvg5-dbg
 
 override_dh_auto_configure:
-	qmake 
+	qmake QT_BUILD_PARTS+=tests
 
 override_dh_auto_build-indep:
 	dh_auto_build -Smakefile -- docs
 
+override_dh_auto_test:
+	xvfb-run -a make check QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
+
 override_dh_auto_install-arch:
 	dh_auto_install
 

Reply to: