summaryrefslogtreecommitdiffstats
path: root/src/bin/scripts/t/011_clusterdb_all.pl
blob: efd541bc4d65613f329b529fb5f14c7380e022e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;

use PostgresNode;
use TestLib;
use Test::More tests => 2;

my $node = get_new_node('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');