]> granicus.if.org Git - postgresql/commit
Add TAP tests for pg_verify_checksums
authorMichael Paquier <michael@paquier.xyz>
Fri, 12 Oct 2018 00:12:31 +0000 (09:12 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 12 Oct 2018 00:12:31 +0000 (09:12 +0900)
commitb34e84f160a47d9070b304bfc1baf17596d71865
tree8ca6381b1d5eaffd2ac2f0c7a7c0bd03222cde21
parentcda6a8d01d391eab45c4b3e0043a1b2b31072f5f
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
src/bin/initdb/t/001_initdb.pl
src/bin/pg_verify_checksums/.gitignore
src/bin/pg_verify_checksums/Makefile
src/bin/pg_verify_checksums/t/001_basic.pl [new file with mode: 0644]
src/bin/pg_verify_checksums/t/002_actions.pl [new file with mode: 0644]