Extend TAP tests of pg_dump to test for compression with gzip
authorMichael Paquier
Tue, 5 Apr 2022 10:10:10 +0000 (19:10 +0900)
committerMichael Paquier
Tue, 5 Apr 2022 10:10:10 +0000 (19:10 +0900)
commit98fe74218d97becb2a53581304c96091409fd929
treea98b1d093416d7752105e7729698ffa894fcc3f1
parent297daa9d43539fbf5fbb3c3a2cca190d0e3da471
Extend TAP tests of pg_dump to test for compression with gzip

The test logic is extended with two new concepts:
- Addition of a compression command called compress_cmd, executed
between restore_cmd and dump_cmd to control the contents of the dumps.
In the case of this commit, this is used to compress or decompress
elements of a dump to test new code paths.
- Addition of a new flag called compile_option, to check if a set of
tests can be executed depending on the ./configure options used in a
given build.

The tests introduced here are for gzip, but they are designed so as they
can easily be extended for new compression methods.

Author: Georgios Kokolatos, Rachel Heaton
Discussion: https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03TMm0fBEWveFF9wA1WizPuAgB7Ss=@protonmail.com
src/bin/pg_dump/Makefile
src/bin/pg_dump/t/002_pg_dump.pl