summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:15:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:15:04 +0000
commit93dd2c875349967ac1960f33bcc3474136c9c984 (patch)
treef7ab4835dddac8310d782c698dede3b61af7c530 /testsuite
parentReleasing progress-linux version 259-0.0~progress7.99u1. (diff)
downloadpostgresql-common-93dd2c875349967ac1960f33bcc3474136c9c984.tar.xz
postgresql-common-93dd2c875349967ac1960f33bcc3474136c9c984.zip
Merging upstream version 260.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xtestsuite14
1 files changed, 12 insertions, 2 deletions
diff --git a/testsuite b/testsuite
index d3ff77d..22b934a 100755
--- a/testsuite
+++ b/testsuite
@@ -3,7 +3,7 @@
# Run integration tests (on the installed packages).
#
# (C) 2005-2012 Martin Pitt <mpitt@debian.org>
-# (C) 2012-2023 Christoph Berg <myon@debian.org>
+# (C) 2012-2024 Christoph Berg <myon@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -70,11 +70,21 @@ if [ "${INSTALL:-}" ] && [ -z "${UNSHARED:-}" ]; then
[ "$(perl -I. -le 'use PgCommon; print $PgCommon::have_python2')" = "1" ] && PYTHON2_PACKAGE=postgresql-plpython-$v${PG_FLAVOR:=}
;;
esac
+ case $v in
+ 8.*|9.0) ;;
+ 9.[1-6]) # plpython3 only for Python < 3.12
+ py3ver=$(apt-cache policy python3)
+ case $py3ver in
+ *3.[0-9].*|*3.1[01].*) PYTHON3_PACKAGE=postgresql-plpython3-$v${PG_FLAVOR:-} ;;
+ esac
+ ;;
+ *) PYTHON3_PACKAGE=postgresql-plpython3-$v${PG_FLAVOR:-} ;;
+ esac
apt-get install -y \
postgresql-contrib-$v${PG_FLAVOR:=} \
postgresql-plperl-$v$PG_FLAVOR \
${PYTHON2_PACKAGE:-} \
- $(dpkg --compare-versions $v ge 9.1 && echo postgresql-plpython3-$v$PG_FLAVOR) \
+ ${PYTHON3_PACKAGE:-} \
postgresql-pltcl-$v$PG_FLAVOR \
postgresql-server-dev-$v$PG_FLAVOR \
postgresql-doc-$v$PG_FLAVOR