mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
The five modules in our TAP test framework all had names in the top level namespace. This is unwise because, even though we're not exporting them to CPAN, the names can leak, for example if they are exported by the RPM build process. We therefore move the modules to the PostgreSQL::Test namespace. In the process PostgresNode is renamed to Cluster, and TestLib is renamed to Utils. PostgresVersion becomes simply PostgreSQL::Version, to avoid possible confusion about what it's the version of. Discussion: https://postgr.es/m/aede93a4-7d92-ef26-398f-5094944c2504@dunslane.net Reviewed by Erik Rijkers and Michael Paquier
23 lines
497 B
Perl
23 lines
497 B
Perl
|
|
# Copyright (c) 2021, PostgreSQL Global Development Group
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use PostgreSQL::Test::Cluster;
|
|
use PostgreSQL::Test::Utils;
|
|
use Test::More tests => 2;
|
|
|
|
my $node = PostgreSQL::Test::Cluster->new('main');
|
|
$node->init;
|
|
$node->start;
|
|
|
|
# clusterdb -a is not compatible with -d, hence enforce environment variable
|
|
# correctly.
|
|
$ENV{PGDATABASE} = 'postgres';
|
|
|
|
$node->issues_sql_like(
|
|
[ 'clusterdb', '-a' ],
|
|
qr/statement: CLUSTER.*statement: CLUSTER/s,
|
|
'cluster all databases');
|