git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6ceec8a) | patch
pg_resetwal: Add more tests and test coverage
Mon, 6 Nov 2023 08:05:17 +0000 (09:05 +0100)
Mon, 6 Nov 2023 08:16:00 +0000 (09:16 +0100)
commit 7b5275eec3a50d55f5750357b8a223cf5f0bb59f
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
src/bin/pg_resetwal/t/001_basic.pl diff | blob | blame | history
src/bin/pg_resetwal/t/002_corrupted.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /