pgsql: Add TAP tests for pg_verify_checksums

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add TAP tests for pg_verify_checksums
Date: 2018-10-12 00:17:57
Message-ID: E1gAl9R-00015q-Nl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Add TAP tests for pg_verify_checksums

All options available in the utility get coverage:
- Tests with disabled page checksums.
- Tests with enabled test checksums.
- Emulation of corruption and broken checksums with a full scan and
single relfilenode scan.

This patch has been contributed mainly by Michael Banck and Magnus
Hagander with things presented on various threads, and I have gathered
all the contents into a single patch.

Author: Michael Banck, Magnus Hagander, Michael Paquier
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/20181005012645.GE1629@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b34e84f160a47d9070b304bfc1baf17596d71865

Modified Files
--------------
src/bin/initdb/t/001_initdb.pl | 14 +++++-
src/bin/pg_verify_checksums/.gitignore | 2 +
src/bin/pg_verify_checksums/Makefile | 6 +++
src/bin/pg_verify_checksums/t/001_basic.pl | 8 ++++
src/bin/pg_verify_checksums/t/002_actions.pl | 69 ++++++++++++++++++++++++++++
5 files changed, 98 insertions(+), 1 deletion(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2018-10-12 00:56:14 Re: pgsql: Add TAP tests for pg_verify_checksums
Previous Message Andres Freund 2018-10-11 20:57:44 Re: pgsql: Remove deprecated abstime, reltime, tinterval datatypes.

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-10-12 00:21:39 Re: TAP tests for pg_verify_checksums
Previous Message Bruce Momjian 2018-10-11 22:48:38 Re: Code of Conduct plan