postgres.git / summary / log / commit / refs
commit 2f12df7eb46d5eb428a77a8aa5dc951011418935
Author: Noah Misch <noah@leadboat.com>
Date: Sun Jan 26 17:39:05 2025 +0000
First released in: 18.0
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
src/test/postmaster/meson.build | 5 +++--
src/test/postmaster/t/001_basic.pl | 13 +++++++++++++
002_connection_limits.pl} | 0
003_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
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
[parent: 0a16c8326c5a]