Package: webp-pixbuf-loader
Version: 0.0.5-2
Severity: normal
Tags: patch
X-Debbugs-Cc: nathan.teodo...@canonical.com

I'm forwarding a debdiff uploaded to Ubuntu[1] with autopkgtests for this
package.

Best regards!
Nathan

[1]: https://bugs.launchpad.net/ubuntu/+source/webp-pixbuf-loader/+bug/1979121


-- System Information:
Debian Release: bookworm/sid
  APT prefers kinetic
  APT policy: (500, 'kinetic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-33-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages webp-pixbuf-loader depends on:
ii  libc6                2.35-0ubuntu3
ii  libgdk-pixbuf-2.0-0  2.42.8+dfsg-1
ii  libglib2.0-0         2.72.2-2
ii  libwebp7             1.2.2-2
ii  libwebpdemux2        1.2.2-2

webp-pixbuf-loader recommends no packages.

webp-pixbuf-loader suggests no packages.

-- no debconf information
diff -Nru webp-pixbuf-loader-0.0.5/debian/changelog 
webp-pixbuf-loader-0.0.5/debian/changelog
--- webp-pixbuf-loader-0.0.5/debian/changelog   2022-06-07 07:10:27.000000000 
-0300
+++ webp-pixbuf-loader-0.0.5/debian/changelog   2022-06-27 15:21:11.000000000 
-0300
@@ -1,3 +1,9 @@
+webp-pixbuf-loader (0.0.5-2ubuntu1) kinetic; urgency=medium
+
+  * Add autopkgtests to debian/tests (lp: #1979121)
+
+ -- Nathan Pratta Teodosio <nathan.teodo...@canonical.com>  Mon, 27 Jun 2022 
15:21:11 -0300
+
 webp-pixbuf-loader (0.0.5-2) unstable; urgency=medium
 
   * d/copyright: add Alan Hawrelak as a copyright owner.
diff -Nru webp-pixbuf-loader-0.0.5/debian/control 
webp-pixbuf-loader-0.0.5/debian/control
--- webp-pixbuf-loader-0.0.5/debian/control     2022-06-07 07:10:27.000000000 
-0300
+++ webp-pixbuf-loader-0.0.5/debian/control     2022-06-27 15:21:11.000000000 
-0300
@@ -1,5 +1,6 @@
 Source: webp-pixbuf-loader
-Maintainer: David Heidelberg <da...@ixit.cz>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: David Heidelberg <da...@ixit.cz>
 Uploaders: Debian Multimedia Maintainers <debian-multime...@lists.debian.org>
 Section: gnome
 Priority: optional
diff -Nru webp-pixbuf-loader-0.0.5/debian/tests/control 
webp-pixbuf-loader-0.0.5/debian/tests/control
--- webp-pixbuf-loader-0.0.5/debian/tests/control       1969-12-31 
21:00:00.000000000 -0300
+++ webp-pixbuf-loader-0.0.5/debian/tests/control       2022-06-27 
15:21:11.000000000 -0300
@@ -0,0 +1,6 @@
+Tests: upstream-tests
+Depends: @builddeps@,webp-pixbuf-loader
+Restrictions: allow-stderr
+
+Tests: determinism-test
+Depends: @builddeps@,webp-pixbuf-loader
diff -Nru webp-pixbuf-loader-0.0.5/debian/tests/determinism-test 
webp-pixbuf-loader-0.0.5/debian/tests/determinism-test
--- webp-pixbuf-loader-0.0.5/debian/tests/determinism-test      1969-12-31 
21:00:00.000000000 -0300
+++ webp-pixbuf-loader-0.0.5/debian/tests/determinism-test      2022-06-27 
15:21:11.000000000 -0300
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Author: Nathan Teodosio <nathan.teodo...@canonical.com>
+# Adapted from Christian Ehrhardt's suggestion at LP: 1979121
+
+set -eu
+
+gdk-pixbuf-thumbnailer -s 128 tests/t1.webp test1.png
+file -i test1.png | grep -qFw image/png
+gdk-pixbuf-thumbnailer -s 128 tests/t1.webp test2.png
+cmp -s test1.png test2.png
diff -Nru webp-pixbuf-loader-0.0.5/debian/tests/upstream-tests 
webp-pixbuf-loader-0.0.5/debian/tests/upstream-tests
--- webp-pixbuf-loader-0.0.5/debian/tests/upstream-tests        1969-12-31 
21:00:00.000000000 -0300
+++ webp-pixbuf-loader-0.0.5/debian/tests/upstream-tests        2022-06-27 
15:21:11.000000000 -0300
@@ -0,0 +1,15 @@
+#!/bin/sh
+# autopkgtest check: Run upstream tests
+# Author: Nathan Teodosio <nathan.teodo...@canonical.com>
+
+set -ex
+
+debian/rules override_dh_auto_configure
+dh_auto_build
+
+TEST_FILE="./tests/t1.webp" ./obj*/tests/t1
+TEST_FILE="./tests/t2.webp" ./obj*/tests/t2
+TEST_FILE="./tests/t3.webp" ./obj*/tests/t3
+TEST_FILE="./tests/t3.webp" ./obj*/tests/t4
+TEST_FILE="./tests/t5.webp" ./obj*/tests/t5
+TEST_FILE="./tests/t1.webp" ./obj*/tests/t6

Reply via email to