2 # Copyright (c) 2024, PostgreSQL Global Development Group
5 # Verify that required Perl modules are available,
6 # in at least the required minimum versions.
7 # (The required minimum versions are all quite ancient now,
8 # but specify them anyway for documentation's sake.)
11 use warnings FATAL
=> 'all';
16 # Test::More and Time::HiRes are supposed to be part of core Perl,
17 # but some distros omit them in a minimal installation.
21 # While here, we might as well report exactly what versions we found.
22 diag
("IPC::Run::VERSION: $IPC::Run::VERSION");
23 diag
("Test::More::VERSION: $Test::More::VERSION");
24 diag
("Time::HiRes::VERSION: $Time::HiRes::VERSION");
26 # Check that if prove is using msys perl it is for an msys target
27 ok
( ($ENV{__CONFIG_HOST_OS__
} || "") eq 'msys',
28 "Msys perl used for correct target") if $Config{osname
} eq 'msys';