pgsql: Clean up some pg_dump tests - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Clean up some pg_dump tests
Date
Msg-id E1qsznj-0017Fj-QM@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Clean up some pg_dump tests

1) Remove useless entries from "unlike" lists.  Runs that are not
   listed in "like" don't need to be excluded in "unlike".

2) Ensure there is always a "like" list, even if it is empty.  This
   makes the test more self-documenting.

3) Use predefined lists such as %full_runs where appropriate, instead
   of listing all runs separately.

Also add code that checks 1 and 2 automatically and dies with an error
for violations.

Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://www.postgresql.org/message-id/flat/1f8cb371-e84e-434e-0367-6b716fb16fa1@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/41a284411e09a3c0a401cd5ab81fbf1802fe8021

Modified Files
--------------
src/bin/pg_dump/t/002_pg_dump.pl | 78 +++++++++++-----------------------------
1 file changed, 21 insertions(+), 57 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Count write times when extending relation files for shared buffe
Next
From: Michael Paquier
Date:
Subject: pgsql: pg_upgrade: Fix test name in 002_pg_upgrade.pl