From: Noah Misch Date: Sun, 26 Jan 2025 17:39:05 +0000 (-0800) Subject: Test postmaster with program_options_handling_ok() et al. X-Git-Tag: REL_18_BETA1~998 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=2f12df7eb46d5eb428a77a8aa5dc951011418935;p=postgresql.git 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 --- 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 similarity index 100% rename from src/test/postmaster/t/001_connection_limits.pl rename to 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 similarity index 100% rename from src/test/postmaster/t/002_start_stop.pl rename to src/test/postmaster/t/003_start_stop.pl