mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
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
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user