pgsql: Add TAP tests for pg_basebackup with compression

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add TAP tests for pg_basebackup with compression
Date: 2022-01-07 05:14:04
Message-ID: E1n5hZk-0006uC-Fp@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/50e144193c779f3da3b4836fa00cf1ce64953543

Modified Files
--------------
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 37 +++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2022-01-07 06:33:23 pgsql: postgres_fdw: Add regression test for postgres_fdw.application_n
Previous Message Michael Paquier 2022-01-07 04:49:48 pgsql: Refactor tar method of walmethods.c to rely on the compression m