worker_spi: Add tests for BGWORKER_BYPASS_ALLOWCONN
[pgsql.git] / config / check_modules.pl
blob611f3a673fdf9afafde85c8190f38886ff875b08
2 # Verify that required Perl modules are available,
3 # in at least the required minimum versions.
4 # (The required minimum versions are all quite ancient now,
5 # but specify them anyway for documentation's sake.)
7 use strict;
8 use warnings;
9 use Config;
11 use IPC::Run 0.79;
13 # Test::More and Time::HiRes are supposed to be part of core Perl,
14 # but some distros omit them in a minimal installation.
15 use Test::More 0.98;
16 use Time::HiRes 1.52;
18 # While here, we might as well report exactly what versions we found.
19 diag("IPC::Run::VERSION: $IPC::Run::VERSION");
20 diag("Test::More::VERSION: $Test::More::VERSION");
21 diag("Time::HiRes::VERSION: $Time::HiRes::VERSION");
23 # Check that if prove is using msys perl it is for an msys target
24 ok( ($ENV{__CONFIG_HOST_OS__} || "") eq 'msys',
25 "Msys perl used for correct target") if $Config{osname} eq 'msys';
26 ok(1);
27 done_testing();