[pgpool-committers: 8689] pgpool: Allow pgpool_setup to test sample scripts and sample config fil

Bo Peng pengbo at sraoss.co.jp
Sun Jun 19 18:53:42 JST 2022


Allow pgpool_setup to test sample scripts and sample config files contained in RPMs.

Currently, pgpool_setup generates scripts (e.g. failover.sh, follow_primary.sh) to test pgpool.

This commit addes a new option "-c" in src/test/regression/regress.sh
and a new environment variables TEST_SAMPLES in pgpool_setup.
Option "-c" enables TEST_SAMPLES and allows pgpool_setup to test sample scripts and
sample config files contained in RPMs.

This commit also changes "backend_hostnameX = '/tmp'" to "backend_hostnameX = 'localhost'".

Branch
------
V4_2_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=5760a81d35b28b1a80c7d1a6c0c83527563513ab

Modified Files
--------------
doc.ja/src/sgml/ref/pgpool_setup.sgml              |  35 ++++
doc/src/sgml/ref/pgpool_setup.sgml                 |  24 +++
src/sample/scripts/recovery_2nd_stage.sample       |  14 +-
src/test/pgpool_setup.in                           | 220 +++++++++++++++++++--
src/test/regression/regress.sh                     |   7 +-
.../tests/003.failover/create_expected.sql         |   8 +-
.../tests/003.failover/create_expected_node0.sql   |   8 +-
src/test/regression/tests/003.failover/test.sh     |   4 +-
.../regression/tests/055.backend_all_down/test.sh  |   2 +-
9 files changed, 281 insertions(+), 41 deletions(-)



More information about the pgpool-committers mailing list