Commit 33363276 authored by Christoph Berg's avatar Christoph Berg

t/003_package_checks.t: Ensure psql is linked against libedit.

parent 4bed2958
......@@ -12,6 +12,7 @@ postgresql-common (140) UNRELEASED; urgency=low
[ Christoph Berg ]
* testsuite: The default list of umasks to test (022 077) can be overridden
by setting the environment variable PG_UMASKS.
* t/003_package_checks.t: Ensure psql is linked against libedit.
* t/005_PgCommon.t: Increase sleep time after netcat launch to 200ms.
* t/020_create_sql_remove.t: Test process title update.
* pg_createcluster: Allow passing of initdb arguments on the command line.
# Check properties of the installed packages/binaries
use strict;
use lib 't';
use TestLib;
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.
my ($want_lib, $avoid_lib) = $ENV{PG_READLINE} ? qw(libreadline libedit) : qw(libedit libreadline);
foreach my $v (@MAJORS) {
like_program_out (0, "ldd /usr/lib/postgresql/$v/bin/psql", 0, qr/$want_lib\.so\./,
"psql is linked against $want_lib");
unlike_program_out (0, "ldd /usr/lib/postgresql/$v/bin/psql", 0, qr/$avoid_lib\.so\./,
"psql is not linked against $avoid_lib");
# vim: filetype=perl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment