pgsql: Refactor and fix TAP tests of pg_rewind

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Refactor and fix TAP tests of pg_rewind
Дата
Msg-id E1Yhg1w-0004nj-Gc@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Don't archive bogus recycled or preallocated files after timelin
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix pg_rewind regression tests in VPATH builds