diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:48:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:48:40 +0000 |
commit | 73e1fa4347d6c81c6e64054957ab436fa358ced1 (patch) | |
tree | f1cf86462dba1a85afd6005fca0a45b7e574c23c /t/003_package_checks.t | |
parent | Initial commit. (diff) | |
download | postgresql-common-73e1fa4347d6c81c6e64054957ab436fa358ced1.tar.xz postgresql-common-73e1fa4347d6c81c6e64054957ab436fa358ced1.zip |
Adding upstream version 200+deb10u5.upstream/200+deb10u5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/003_package_checks.t')
-rw-r--r-- | t/003_package_checks.t | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/003_package_checks.t b/t/003_package_checks.t new file mode 100644 index 0000000..e2cc04e --- /dev/null +++ b/t/003_package_checks.t @@ -0,0 +1,23 @@ +# Check properties of the installed packages/binaries + +use strict; + +use lib 't'; +use TestLib; +use PgCommon qw/$binroot/; + +use Test::More tests => (@MAJORS) * 4; + +# Debian/Ubuntu packages are linked against libedit. If your psql binaries are +# linked against libreadline, set PG_READLINE=1 when running this testsuite. +$ENV{PG_READLINE} = 1 if ($PgCommon::rpm); +my ($want_lib, $avoid_lib) = $ENV{PG_READLINE} ? qw(libreadline libedit) : qw(libedit libreadline); + +foreach my $v (@MAJORS) { + like_program_out (0, "ldd $binroot$v/bin/psql", 0, qr/$want_lib\.so\./, + "psql is linked against $want_lib"); + unlike_program_out (0, "ldd $binroot$v/bin/psql", 0, qr/$avoid_lib\.so\./, + "psql is not linked against $avoid_lib"); +} + +# vim: filetype=perl |