Add TAP tests for pg_basebackup with compression
authorMichael Paquier <michael@paquier.xyz>
Fri, 7 Jan 2022 05:13:35 +0000 (14:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 7 Jan 2022 05:13:35 +0000 (14:13 +0900)
commit50e144193c779f3da3b4836fa00cf1ce64953543
tree829e3d0979fe899a86ecdb434575f9713e9d011a
parent000f3adfdc4336df83777eba86ce48f36cb6c6e9
Add TAP tests for pg_basebackup with compression

pg_basebackup is able to use gzip to compress the contents of backups
with the tar format, but there were no tests for that.  This adds a
minimalistic set of tests to check the contents of such base backups,
including sanity checks on the contents generated with gzip commands.
The tests are skipped if Postgres is compiled --without-zlib, and the
checks based on the gzip command are skipped if nothing can be found,
following the same model as the existing tests for pg_receivewal.

Reviewed-by: Georgios Kokolatos
Discussion: https://postgr.es/m/Yb3GEgWwcu4wZDuA@paquier.xyz
src/bin/pg_basebackup/t/010_pg_basebackup.pl