diff options
author | Noah Misch <noah@leadboat.com> | 2025-01-26 09:39:05 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2025-01-26 09:39:05 -0800 |
commit | 2f12df7eb46d5eb428a77a8aa5dc951011418935 (patch) | |
tree | ecd2fef4bd9f20e0b7a9c29b20b162905e33f2d7 /src | |
parent | 0a16c8326c5a14abd180eeefe5e5ee4263513c2a (diff) | |
download | postgresql-2f12df7eb46d5eb428a77a8aa5dc951011418935.tar.gz postgresql-2f12df7eb46d5eb428a77a8aa5dc951011418935.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/test/postmaster/meson.build | 5 | ||||
-rw-r--r-- | src/test/postmaster/t/001_basic.pl | 13 | ||||
-rw-r--r-- | src/test/postmaster/t/002_connection_limits.pl (renamed from src/test/postmaster/t/001_connection_limits.pl) | 0 | ||||
-rw-r--r-- | src/test/postmaster/t/003_start_stop.pl (renamed from src/test/postmaster/t/002_start_stop.pl) | 0 |
4 files changed, 16 insertions, 2 deletions
diff --git a/src/test/postmaster/meson.build b/src/test/postmaster/meson.build index 07c09e496cb..0ab32b42f2e 100644 --- a/src/test/postmaster/meson.build +++ b/src/test/postmaster/meson.build @@ -6,8 +6,9 @@ tests += { 'bd': meson.current_build_dir(), 'tap': { 'tests': [ - 't/001_connection_limits.pl', - 't/002_start_stop.pl', + 't/001_basic.pl', + 't/002_connection_limits.pl', + 't/003_start_stop.pl', ], }, } diff --git a/src/test/postmaster/t/001_basic.pl b/src/test/postmaster/t/001_basic.pl new file mode 100644 index 00000000000..fb3984bb287 --- /dev/null +++ b/src/test/postmaster/t/001_basic.pl @@ -0,0 +1,13 @@ + +# Copyright (c) 2021-2025, PostgreSQL Global Development Group + +use strict; +use warnings FATAL => 'all'; +use PostgreSQL::Test::Utils; +use Test::More; + +program_help_ok('postgres'); +program_version_ok('postgres'); +program_options_handling_ok('postgres'); + +done_testing(); diff --git a/src/test/postmaster/t/001_connection_limits.pl b/src/test/postmaster/t/002_connection_limits.pl index 8cfa6e0ced5..8cfa6e0ced5 100644 --- a/src/test/postmaster/t/001_connection_limits.pl +++ b/src/test/postmaster/t/002_connection_limits.pl diff --git a/src/test/postmaster/t/002_start_stop.pl b/src/test/postmaster/t/003_start_stop.pl index 036b296f72b..036b296f72b 100644 --- a/src/test/postmaster/t/002_start_stop.pl +++ b/src/test/postmaster/t/003_start_stop.pl |