summaryrefslogtreecommitdiffstats
path: root/tests/test-package-show-info
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:08:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:08:06 +0000
commitba6d96469df143b52295f8e79da648bf8a597407 (patch)
tree5ea0c3374f5c53209ad02008dcdddfc8ccae92e5 /tests/test-package-show-info
parentInitial commit. (diff)
downloaddh-python-upstream.tar.xz
dh-python-upstream.zip
Adding upstream version 5.20230130+deb12u1.upstream/5.20230130+deb12u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test-package-show-info')
-rwxr-xr-xtests/test-package-show-info16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test-package-show-info b/tests/test-package-show-info
new file mode 100755
index 0000000..bdea2b4
--- /dev/null
+++ b/tests/test-package-show-info
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -ue
+
+changes=$1
+testname=$(basename $PWD)
+basedir=$(dirname $changes)
+
+echo "--------------------------------------------------"
+echo "Test $testname has created the following packages:"
+for deb in $(sed -nr 's/.* ([^ ]*\.deb)$/\1/p' $changes | sort -u); do
+ echo "--------------------------------------------------"
+ echo "PACKAGE $deb:"
+ dpkg-deb --info "$basedir/$deb"
+done
+echo "--------------------------------------------------"