diff options
author | Peter Eisentraut | 2025-06-30 08:45:08 +0000 |
---|---|---|
committer | Peter Eisentraut | 2025-06-30 08:47:42 +0000 |
commit | 3431e3e4aa3a33e8411f15e76c284cdd4c54ca28 (patch) | |
tree | f550ebbed18234e23921c70c33b6b78b730cec8f | |
parent | 2e640a0fa224e4233220252b360efd33c98b3e90 (diff) |
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 <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/OSCPR01MB14966247015B7E3D8D340D022F56FA@OSCPR01MB14966.jpnprd01.prod.outlook.com
-rw-r--r-- | src/bin/pgbench/t/002_pgbench_no_server.pl | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl index f975c73dd75..2cc59cc8140 100644 --- a/src/bin/pgbench/t/002_pgbench_no_server.pl +++ b/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( |