pgbench: Use standard option handling test routines

Run program_XXX tests instead of its own tests.  This ensures
consistency with the test suites of other programs and enforces common
policies, such as help line length.

Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
Discussion: https://www.postgresql.org/message-id/flat/OSCPR01MB14966247015B7E3D8D340D022F56FA@OSCPR01MB14966.jpnprd01.prod.outlook.com
pull/235/head
Peter Eisentraut 2 months ago
parent 2e640a0fa2
commit 3431e3e4aa
  1. 18
      src/bin/pgbench/t/002_pgbench_no_server.pl

@ -233,21 +233,9 @@ for my $o (@options)
'pgbench option error: ' . $name);
}
# Help
pgbench(
'--help', 0,
[
qr{benchmarking tool for PostgreSQL},
qr{Usage},
qr{Initialization options:},
qr{Common options:},
qr{Report bugs to}
],
[qr{^$}],
'pgbench help');
# Version
pgbench('-V', 0, [qr{^pgbench .PostgreSQL. }], [qr{^$}], 'pgbench version');
program_help_ok('pgbench');
program_version_ok('pgbench');
program_options_handling_ok('pgbench');
# list of builtins
pgbench(

Loading…
Cancel
Save