Skip to content

Commit 2f12df7

Browse files
committed
Test postmaster with program_options_handling_ok() et al.
Most executables already get that testing. To occupy the customary 001_basic.pl name, this renumbers the new-in-October tests of src/test/postmaster/t. Reviewed by Thomas Munro. Discussion: https://postgr.es/m/20241215022701.a1.nmisch@google.com
1 parent 0a16c83 commit 2f12df7

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

src/test/postmaster/meson.build

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ tests += {
66
'bd': meson.current_build_dir(),
77
'tap': {
88
'tests': [
9-
't/001_connection_limits.pl',
10-
't/002_start_stop.pl',
9+
't/001_basic.pl',
10+
't/002_connection_limits.pl',
11+
't/003_start_stop.pl',
1112
],
1213
},
1314
}

src/test/postmaster/t/001_basic.pl

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# Copyright (c) 2021-2025, PostgreSQL Global Development Group
3+
4+
use strict;
5+
use warnings FATAL => 'all';
6+
use PostgreSQL::Test::Utils;
7+
use Test::More;
8+
9+
program_help_ok('postgres');
10+
program_version_ok('postgres');
11+
program_options_handling_ok('postgres');
12+
13+
done_testing();

0 commit comments

Comments
 (0)