2 # Copyright (c) 2021, PostgreSQL Global Development Group
9 use Test
::More tests
=> 12;
11 #########################################
14 program_help_ok
('pg_test_fsync');
15 program_version_ok
('pg_test_fsync');
16 program_options_handling_ok
('pg_test_fsync');
18 #########################################
19 # Test invalid option combinations
22 [ 'pg_test_fsync', '--secs-per-test', 'a' ],
23 qr/\Qpg_test_fsync: error: invalid argument for option --secs-per-test\E/,
24 'pg_test_fsync: invalid argument for option --secs-per-test');
26 [ 'pg_test_fsync', '--secs-per-test', '0' ],
27 qr/\Qpg_test_fsync: error: --secs-per-test must be in range 1..4294967295\E/,
28 'pg_test_fsync: --secs-per-test must be in range');