Test postmaster with program_options_handling_ok() et al.
authorNoah Misch <[email protected]>
Sun, 26 Jan 2025 17:39:05 +0000 (09:39 -0800)
committerNoah Misch <[email protected]>
Sun, 26 Jan 2025 17:39:05 +0000 (09:39 -0800)
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[email protected]

src/test/postmaster/meson.build
src/test/postmaster/t/001_basic.pl [new file with mode: 0644]
src/test/postmaster/t/002_connection_limits.pl [moved from src/test/postmaster/t/001_connection_limits.pl with 100% similarity]
src/test/postmaster/t/003_start_stop.pl [moved from src/test/postmaster/t/002_start_stop.pl with 100% similarity]

index 07c09e496cbcd8fce2cd7cd2a247d548be701653..0ab32b42f2e0e4ae97eb01a9ba2adb82f20e9d4c 100644 (file)
@@ -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 (file)
index 0000000..fb3984b
--- /dev/null
@@ -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();