summaryrefslogtreecommitdiffstats
path: root/debian/tests/run-installed
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:08:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:08:07 +0000
commitd43c39132dfcb97f8ad0e6c4830d8dd4334c6380 (patch)
tree4ce258fe97564cfc903499fa487401dcc451ce85 /debian/tests/run-installed
parentAdding upstream version 5.20230130+deb12u1. (diff)
downloaddh-python-266ac93e57ed44d395c1fbf03efb0f31db1e6f52.tar.xz
dh-python-266ac93e57ed44d395c1fbf03efb0f31db1e6f52.zip
Adding debian version 5.20230130+deb12u1.debian/5.20230130+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/run-installed')
-rwxr-xr-xdebian/tests/run-installed13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/run-installed b/debian/tests/run-installed
new file mode 100755
index 0000000..fe0ffb2
--- /dev/null
+++ b/debian/tests/run-installed
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+cp -r tests "$AUTOPKGTEST_TMP"
+cd "$AUTOPKGTEST_TMP/tests"
+sed -i "s/\.\.\/\.\.\/debian/\/usr\/share\/python3/g" common.mk
+sed -i "s/\.\.\/\.\.\/dhpython/\/usr\/share\/dh-python\/dhpython/g" common.mk
+sed -i "s/PYTHONPATH=\.\.\/\.\.\//PYTHONPATH=\/usr\/share\/python3/g" t*/debian/rules
+sed -i "s/\.\.\/\.\.\/debian\///g" t*/debian/rules
+sed -i "s/\.\.\/\.\.\/dh_py/\/usr\/share\/dh-python\/dh_py/g" t*/debian/rules
+sed -i "s/\.\.\/\.\.\///g" t*/debian/rules
+
+make "$@"