Source: pkgconf Version: 1.8.1-1 tags: patch Hello, I copy-pasted the testsuite from old src:pkg-config, and it looks still useful to catch some regressions. Would it be possible to include it to make the package safer w.r.t. regressions and better?
And also to make it migrate in 2 days instead of 5! diff -Nru pkgconf-1.8.1/debian/changelog pkgconf-1.8.1/debian/changelog --- pkgconf-1.8.1/debian/changelog 2023-01-22 12:06:42.000000000 +0100 +++ pkgconf-1.8.1/debian/changelog 2023-01-25 17:28:03.000000000 +0100 @@ -1,3 +1,9 @@ +pkgconf (1.8.1-1.1) unstable; urgency=medium + + * Add testsuite from pkg-config (See LP: #1998095, Closes: #-1) + + -- Gianfranco Costamagna <locutusofb...@debian.org> Wed, 25 Jan 2023 17:28:03 +0100 + pkgconf (1.8.1-1) unstable; urgency=high* New upstream release.
diff -Nru pkgconf-1.8.1/debian/tests/control pkgconf-1.8.1/debian/tests/control --- pkgconf-1.8.1/debian/tests/control 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/control 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,2 @@ +Tests: crosswrapper foreign-arch invalid-arch +Restrictions: needs-root, allow-stderr diff -Nru pkgconf-1.8.1/debian/tests/crosswrapper pkgconf-1.8.1/debian/tests/crosswrapper --- pkgconf-1.8.1/debian/tests/crosswrapper 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/crosswrapper 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,7 @@ +#! /bin/sh + +set -e + +ln -s /usr/share/pkg-config-crosswrapper $AUTOPKGTEST_TMP/i686-linux-gnu-pkg-config +[ "$($AUTOPKGTEST_TMP/i686-linux-gnu-pkg-config --modversion pkg-config)" = "$(pkg-config --modversion pkg-config)" ] +exit $? diff -Nru pkgconf-1.8.1/debian/tests/foreign-arch pkgconf-1.8.1/debian/tests/foreign-arch --- pkgconf-1.8.1/debian/tests/foreign-arch 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/foreign-arch 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,12 @@ +#! /bin/sh + +set -e + +dpkg --add-architecture i386 + +if [ ! -x /usr/bin/i686-linux-gnu-pkg-config ]; then + echo "cross symlink missing" + echo "pkg-config symlinks found: $(find /usr/bin/ -name \*pkg-config)" + exit 1 +fi +exit 0 diff -Nru pkgconf-1.8.1/debian/tests/invalid-arch pkgconf-1.8.1/debian/tests/invalid-arch --- pkgconf-1.8.1/debian/tests/invalid-arch 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/invalid-arch 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,12 @@ +#! /bin/sh + +# Test that the dpkg hook does not error for invalid dpkg archictures. +# Regression test for 920553. + +set -e + +# This is an intentionally invalid architecture. +dpkg --add-architecture x86 +apt-get install sash + +exit 0 G.
diff -Nru pkgconf-1.8.1/debian/changelog pkgconf-1.8.1/debian/changelog --- pkgconf-1.8.1/debian/changelog 2023-01-22 12:06:42.000000000 +0100 +++ pkgconf-1.8.1/debian/changelog 2023-01-25 17:28:03.000000000 +0100 @@ -1,3 +1,9 @@ +pkgconf (1.8.1-1.1) unstable; urgency=medium + + * Add testsuite from pkg-config (See LP: #1998095, Closes: #-1) + + -- Gianfranco Costamagna <locutusofb...@debian.org> Wed, 25 Jan 2023 17:28:03 +0100 + pkgconf (1.8.1-1) unstable; urgency=high * New upstream release. diff -Nru pkgconf-1.8.1/debian/tests/control pkgconf-1.8.1/debian/tests/control --- pkgconf-1.8.1/debian/tests/control 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/control 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,2 @@ +Tests: crosswrapper foreign-arch invalid-arch +Restrictions: needs-root, allow-stderr diff -Nru pkgconf-1.8.1/debian/tests/crosswrapper pkgconf-1.8.1/debian/tests/crosswrapper --- pkgconf-1.8.1/debian/tests/crosswrapper 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/crosswrapper 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,7 @@ +#! /bin/sh + +set -e + +ln -s /usr/share/pkg-config-crosswrapper $AUTOPKGTEST_TMP/i686-linux-gnu-pkg-config +[ "$($AUTOPKGTEST_TMP/i686-linux-gnu-pkg-config --modversion pkg-config)" = "$(pkg-config --modversion pkg-config)" ] +exit $? diff -Nru pkgconf-1.8.1/debian/tests/foreign-arch pkgconf-1.8.1/debian/tests/foreign-arch --- pkgconf-1.8.1/debian/tests/foreign-arch 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/foreign-arch 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,12 @@ +#! /bin/sh + +set -e + +dpkg --add-architecture i386 + +if [ ! -x /usr/bin/i686-linux-gnu-pkg-config ]; then + echo "cross symlink missing" + echo "pkg-config symlinks found: $(find /usr/bin/ -name \*pkg-config)" + exit 1 +fi +exit 0 diff -Nru pkgconf-1.8.1/debian/tests/invalid-arch pkgconf-1.8.1/debian/tests/invalid-arch --- pkgconf-1.8.1/debian/tests/invalid-arch 1970-01-01 01:00:00.000000000 +0100 +++ pkgconf-1.8.1/debian/tests/invalid-arch 2023-01-25 17:27:59.000000000 +0100 @@ -0,0 +1,12 @@ +#! /bin/sh + +# Test that the dpkg hook does not error for invalid dpkg archictures. +# Regression test for 920553. + +set -e + +# This is an intentionally invalid architecture. +dpkg --add-architecture x86 +apt-get install sash + +exit 0
OpenPGP_signature
Description: OpenPGP digital signature