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

Bo Peng pengbo at sraoss.co.jp
Mon Jun 13 23:14:51 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_3_STABLE

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

Modified Files
--------------
doc.ja/src/sgml/ref/pgpool_setup.sgml              |  35 ++++
doc/src/sgml/ref/pgpool_setup.sgml                 |  24 +++
src/test/pgpool_setup.in                           | 221 ++++++++++++++++++---
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 +-
8 files changed, 273 insertions(+), 36 deletions(-)



More information about the pgpool-committers mailing list