aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_combinebackup/t/001_basic.pl
blob: a2b7f30d59e5553b7b76cab620320edc8c7713e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2021-2024, PostgreSQL Global Development Group

use strict;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

my $tempdir = PostgreSQL::Test::Utils::tempdir;

program_help_ok('pg_combinebackup');
program_version_ok('pg_combinebackup');
program_options_handling_ok('pg_combinebackup');

command_fails_like(
	['pg_combinebackup'],
	qr/no input directories specified/,
	'input directories must be specified');
command_fails_like(
	[ 'pg_combinebackup', $tempdir ],
	qr/no output directory specified/,
	'output directory must be specified');

done_testing();