mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 20:27:19 +02:00
In particular, perl with $Config{osname} = msys should only be used if the build target is msys (which is currently buildable but not usable). For builds targeted at native Windows, perl from the ucrt64 toolchain is suitable. Discussion: https://postgr.es/m/20220216210141.5glt5isg5qtwty4c@alap3.anarazel.de
29 lines
869 B
Perl
29 lines
869 B
Perl
#
|
|
# Verify that required Perl modules are available,
|
|
# in at least the required minimum versions.
|
|
# (The required minimum versions are all quite ancient now,
|
|
# but specify them anyway for documentation's sake.)
|
|
#
|
|
use strict;
|
|
use warnings;
|
|
use Config;
|
|
|
|
use IPC::Run 0.79;
|
|
|
|
# Test::More and Time::HiRes are supposed to be part of core Perl,
|
|
# but some distros omit them in a minimal installation.
|
|
use Test::More 0.98;
|
|
use Time::HiRes 1.52;
|
|
|
|
# While here, we might as well report exactly what versions we found.
|
|
diag("IPC::Run::VERSION: $IPC::Run::VERSION");
|
|
diag("Test::More::VERSION: $Test::More::VERSION");
|
|
diag("Time::HiRes::VERSION: $Time::HiRes::VERSION");
|
|
|
|
# Check that if prove is using msys perl it is for an msys target
|
|
ok(($ENV{__CONFIG_HOST_OS__} || "") eq 'msys',
|
|
"Msys perl used for correct target")
|
|
if $Config{osname} eq 'msys';
|
|
ok(1);
|
|
done_testing();
|