2024-01-05 14:15:50 +01:00
|
|
|
|
|
|
|
# Copyright (c) 2024, PostgreSQL Global Development Group
|
|
|
|
|
2021-11-22 18:54:52 +01:00
|
|
|
#
|
|
|
|
# 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.)
|
|
|
|
#
|
2021-11-22 21:57:31 +01:00
|
|
|
use strict;
|
2023-12-29 18:01:53 +01:00
|
|
|
use warnings FATAL => 'all';
|
2022-02-18 22:59:30 +01:00
|
|
|
use Config;
|
2021-11-22 21:57:31 +01:00
|
|
|
|
2021-11-22 18:54:52 +01:00
|
|
|
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");
|
|
|
|
|
2022-02-18 22:59:30 +01:00
|
|
|
# Check that if prove is using msys perl it is for an msys target
|
2022-05-12 21:17:30 +02:00
|
|
|
ok( ($ENV{__CONFIG_HOST_OS__} || "") eq 'msys',
|
|
|
|
"Msys perl used for correct target") if $Config{osname} eq 'msys';
|
2021-11-22 18:54:52 +01:00
|
|
|
ok(1);
|
|
|
|
done_testing();
|