Clean up some pg_dump tests
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 18 Oct 2023 06:03:39 +0000 (08:03 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 18 Oct 2023 06:08:17 +0000 (08:08 +0200)
commit41a284411e09a3c0a401cd5ab81fbf1802fe8021
treea374469b961bfa7de13004328b4a4e71f7b389c9
parentd17ffc734dad8c231ad3deee0b3670ecb99b713d
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
src/bin/pg_dump/t/002_pg_dump.pl