summaryrefslogtreecommitdiffstats
path: root/tests/test-package-show-info
diff options
context:
space:
mode:
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 "--------------------------------------------------"