pgsql: Refactor and fix TAP tests of pg_rewind - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Refactor and fix TAP tests of pg_rewind
Date
Msg-id E1Yhg1w-0004nj-Gc@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Refactor and fix TAP tests of pg_rewind

* Don't pass arguments to prove, since that's not supported on perl 5.8
which is the minimum version supported by the TAP tests. Refactor the
test files themselves to run the tests twice, in both local and remote mode.

* Use eq rather than == for string comparison. This thinko caused the remote
versions of the tests to never run.

* Add "use strict" and "use warnings", and fix warnings that that produced.

* Increase the delay after standby promotion, to make the tests more robust.

* In remote mode, the connection string to the promoted standby was
incorrect, leading to connection errors.

Patch by Michael Paquier, to address Peter Eisentraut's report.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/53ba10770a315361770efdc17d2c01f6a30e3e3d

Modified Files
--------------
src/bin/pg_rewind/Makefile            |    5 +-
src/bin/pg_rewind/RewindTest.pm       |   24 +++++---
src/bin/pg_rewind/t/001_basic.pl      |  105 +++++++++++++++++---------------
src/bin/pg_rewind/t/002_databases.pl  |   46 ++++++++------
src/bin/pg_rewind/t/003_extrafiles.pl |  108 ++++++++++++++++++---------------
5 files changed, 159 insertions(+), 129 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't archive bogus recycled or preallocated files after timelin
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix pg_rewind regression tests in VPATH builds