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

Bo Peng pengbo at sraoss.co.jp
Mon Jun 13 23:06:46 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
------
master

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

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