From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_resetwal: Add more tests and test coverage
Date: Mon, 06 Nov 2023 08:17:21 +0000
Message-ID: <E1qzunR-0049hf-Cq@gemulon.postgresql.org> (raw)
pg_resetwal: Add more tests and test coverage
pg_resetwal had poor test coverage. There are some TAP tests, but
they all run with -n, so they don't actually test the full
functionality. (There is a non-dry-run call of pg_resetwal in the
recovery test suite, but that is incidental.)
This adds a bunch of more tests to test all the different options and
scenarios.
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://www.postgresql.org/message-id/flat/0f3ab4a1-ae80-56e8-3426-6b4a02507687@eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7b5275eec3a50d55f5750357b8a223cf5f0bb59f
Modified Files
--------------
src/bin/pg_resetwal/t/001_basic.pl | 204 +++++++++++++++++++++++++++++++++
src/bin/pg_resetwal/t/002_corrupted.pl | 8 ++
2 files changed, 212 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: pg_resetwal: Add more tests and test coverage
In-Reply-To: <E1qzunR-0049hf-Cq@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox