summaryrefslogtreecommitdiff
path: root/src/bin/pg_validatebackup/t/001_basic.pl
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2020-04-12 11:26:05 -0400
committerRobert Haas <rhaas@postgresql.org>2020-04-12 11:26:05 -0400
commitdbc60c5593f26dc777a3be032bff4fb4eab1ddd1 (patch)
tree7b14954bf9f6ceace6c6f29da6adddba483c4aa6 /src/bin/pg_validatebackup/t/001_basic.pl
parent26640c40715c7f2045cf1b7c6753cac40b64d1e8 (diff)
Rename pg_validatebackup to pg_verifybackup.
Also, use "verify" rather than "validate" to refer to the process being undertaken here. Per discussion, that is a more appropriate term. Discussion: https://www.postgresql.org/message-id/172c9d9b-1d0a-1b94-1456-376b1e017322@2ndquadrant.com Discussion: http://postgr.es/m/CA+TgmobLgMh6p8FmLbj_rv9Uhd7tPrLnAyLgGd2SoSj=qD-bVg@mail.gmail.com
Diffstat (limited to 'src/bin/pg_validatebackup/t/001_basic.pl')
-rw-r--r--src/bin/pg_validatebackup/t/001_basic.pl30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/bin/pg_validatebackup/t/001_basic.pl b/src/bin/pg_validatebackup/t/001_basic.pl
deleted file mode 100644
index 6d4b8ea01a6..00000000000
--- a/src/bin/pg_validatebackup/t/001_basic.pl
+++ /dev/null
@@ -1,30 +0,0 @@
-use strict;
-use warnings;
-use TestLib;
-use Test::More tests => 16;
-
-my $tempdir = TestLib::tempdir;
-
-program_help_ok('pg_validatebackup');
-program_version_ok('pg_validatebackup');
-program_options_handling_ok('pg_validatebackup');
-
-command_fails_like(['pg_validatebackup'],
- qr/no backup directory specified/,
- 'target directory must be specified');
-command_fails_like(['pg_validatebackup', $tempdir],
- qr/could not open file.*\/backup_manifest\"/,
- 'pg_validatebackup requires a manifest');
-command_fails_like(['pg_validatebackup', $tempdir, $tempdir],
- qr/too many command-line arguments/,
- 'multiple target directories not allowed');
-
-# create fake manifest file
-open(my $fh, '>', "$tempdir/backup_manifest") || die "open: $!";
-close($fh);
-
-# but then try to use an alternate, nonexisting manifest
-command_fails_like(['pg_validatebackup', '-m', "$tempdir/not_the_manifest",
- $tempdir],
- qr/could not open file.*\/not_the_manifest\"/,
- 'pg_validatebackup respects -m flag');