| 1 |
# Copyright (c) 2021-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings FATAL => 'all'; |
| 5 |
use PostgreSQL::Test::Utils; |
| 6 |
use Test::More; |
| 7 |
|
| 8 |
my $tempdir = PostgreSQL::Test::Utils::tempdir; |
| 9 |
|
| 10 |
program_help_ok('pg_combinebackup'); |
| 11 |
program_version_ok('pg_combinebackup'); |
| 12 |
program_options_handling_ok('pg_combinebackup'); |
| 13 |
|
| 14 |
command_fails_like( |
| 15 |
['pg_combinebackup'], |
| 16 |
qr/no input directories specified/, |
| 17 |
'input directories must be specified'); |
| 18 |
command_fails_like( |
| 19 |
[ 'pg_combinebackup', $tempdir ], |
| 20 |
qr/no output directory specified/, |
| 21 |
'output directory must be specified'); |
| 22 |
|
| 23 |
done_testing(); |