[pgpool-committers: 1173] pgpool: Enhance pgpool_setup and regression test suite.

Tatsuo Ishii ishii at postgresql.org
Fri Jul 26 14:54:16 JST 2013


Enhance pgpool_setup and regression test suite.

Patch contributed by Muhammad Usama. Below is the comment from him:

I tried to make some changes in the regression script, mainly because the
script uses lot of hard coded paths and regression starts reporting
failures if the pgpool-II or PostgreSQL are not found at the default path.

Please find the attached patch which enables the regress.sh script to
install the pgpool on fly in temp directory to run the tests on it
(optional), and now the regress script takes some additional arguments to
specify the paths of required components.

The list of all arguments accepted by regress.sh script as implemented by
the attached patch are
pgpool2/test/regression$ sh regress.sh -?
Usage:
  regress.sh: [Options]... [test_name]

Options:
  -p   DIRECTORY           Postgres installed directory
  -b   DIRECTORY           pgbench installed directory, if different from
Postgres installed directory
  -i   DIRECTORY           pgpool installed directory, if already installed
pgpool is to be used for tests
  -m   install/noinstall   make install pgpool to temp directory for
executing regression tests [Default: install]
  -j    FILE               Postgres jdbc jar file path
  -?                       print this help and then exit

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=79fdc6f709728e5b9e7ecf55665aa51a5cfa67af

Modified Files
--------------
test/pgpool_setup                                  |   19 ++-
test/regression/README                             |   15 ++-
test/regression/clean.sh                           |    1 +
test/regression/regress.sh                         |  122 +++++++++++++++++++-
test/regression/tests/001.load_balance/test.sh     |    5 +-
.../tests/002.native_replication/test.sh           |   13 ++-
test/regression/tests/003.failover/test.sh         |    8 +-
test/regression/tests/004.watchdog/test.sh         |    2 +-
test/regression/tests/050.bug58/test.sh            |    6 +-
test/regression/tests/051.bug60/test.sh            |    8 +-
test/regression/tests/052.do_query/test.sh         |    8 +-
.../regression/tests/053.insert_lock_hangs/test.sh |    8 +-
test/regression/tests/054.postgres_fdw/test.sh     |   10 +-
test/regression/tests/056.bug63/test.sh            |    6 +-
test/regression/tests/057.bug61/test.sh            |    5 +-
15 files changed, 190 insertions(+), 46 deletions(-)



More information about the pgpool-committers mailing list