2016-01-11 02:30:51 +02:00
|
|
|
####################################################################################################################################
|
|
|
|
# VmTest.pm - Vm constants and data
|
|
|
|
####################################################################################################################################
|
2016-04-14 15:30:54 +02:00
|
|
|
package pgBackRestTest::Common::VmTest;
|
2016-01-11 02:30:51 +02:00
|
|
|
|
|
|
|
####################################################################################################################################
|
|
|
|
# Perl includes
|
|
|
|
####################################################################################################################################
|
|
|
|
use strict;
|
|
|
|
use warnings FATAL => qw(all);
|
|
|
|
use Carp qw(confess);
|
|
|
|
|
2016-05-14 16:33:12 +02:00
|
|
|
use File::Basename qw(dirname);
|
|
|
|
|
|
|
|
use lib dirname($0) . '/../lib';
|
|
|
|
use pgBackRest::Db;
|
|
|
|
|
2016-01-11 02:30:51 +02:00
|
|
|
use Exporter qw(import);
|
|
|
|
our @EXPORT = qw();
|
|
|
|
|
|
|
|
####################################################################################################################################
|
|
|
|
# Valid OS list
|
|
|
|
####################################################################################################################################
|
|
|
|
use constant OS_CO6 => 'co6';
|
|
|
|
push @EXPORT, qw(OS_CO6);
|
|
|
|
use constant OS_CO7 => 'co7';
|
|
|
|
push @EXPORT, qw(OS_CO7);
|
|
|
|
use constant OS_U12 => 'u12';
|
|
|
|
push @EXPORT, qw(OS_U12);
|
|
|
|
use constant OS_U14 => 'u14';
|
|
|
|
push @EXPORT, qw(OS_U14);
|
|
|
|
|
|
|
|
my $oyVm =
|
|
|
|
{
|
|
|
|
# CentOS 6
|
|
|
|
&OS_CO6 =>
|
|
|
|
{
|
2016-05-14 16:33:12 +02:00
|
|
|
db =>
|
|
|
|
[
|
|
|
|
PG_VERSION_90,
|
|
|
|
PG_VERSION_91,
|
|
|
|
PG_VERSION_92,
|
|
|
|
PG_VERSION_93,
|
|
|
|
PG_VERSION_94,
|
|
|
|
PG_VERSION_95,
|
|
|
|
],
|
|
|
|
|
|
|
|
db_minimal =>
|
|
|
|
[
|
|
|
|
PG_VERSION_90,
|
|
|
|
PG_VERSION_91,
|
|
|
|
],
|
2016-01-11 02:30:51 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
# CentOS 7
|
|
|
|
&OS_CO7 =>
|
|
|
|
{
|
2016-05-14 16:33:12 +02:00
|
|
|
db =>
|
|
|
|
[
|
|
|
|
PG_VERSION_93,
|
|
|
|
PG_VERSION_94,
|
|
|
|
PG_VERSION_95,
|
|
|
|
],
|
|
|
|
|
|
|
|
db_minimal =>
|
|
|
|
[
|
|
|
|
PG_VERSION_93,
|
|
|
|
PG_VERSION_95,
|
|
|
|
],
|
2016-01-11 02:30:51 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
# Ubuntu 12.04
|
|
|
|
&OS_U12 =>
|
|
|
|
{
|
2016-05-14 16:33:12 +02:00
|
|
|
db =>
|
|
|
|
[
|
|
|
|
PG_VERSION_83,
|
|
|
|
PG_VERSION_84,
|
|
|
|
PG_VERSION_90,
|
|
|
|
PG_VERSION_91,
|
|
|
|
PG_VERSION_92,
|
|
|
|
PG_VERSION_93,
|
|
|
|
PG_VERSION_94,
|
|
|
|
PG_VERSION_95,
|
|
|
|
],
|
|
|
|
|
|
|
|
db_minimal =>
|
|
|
|
[
|
|
|
|
PG_VERSION_83,
|
|
|
|
PG_VERSION_84,
|
|
|
|
],
|
2016-01-11 02:30:51 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
# Ubuntu 14.04
|
|
|
|
&OS_U14 =>
|
|
|
|
{
|
2016-05-14 16:33:12 +02:00
|
|
|
db =>
|
|
|
|
[
|
|
|
|
PG_VERSION_90,
|
|
|
|
PG_VERSION_91,
|
|
|
|
PG_VERSION_92,
|
|
|
|
PG_VERSION_93,
|
|
|
|
PG_VERSION_94,
|
|
|
|
PG_VERSION_95,
|
|
|
|
],
|
|
|
|
|
|
|
|
db_minimal =>
|
|
|
|
[
|
|
|
|
PG_VERSION_92,
|
|
|
|
PG_VERSION_94,
|
|
|
|
],
|
|
|
|
},
|
2016-01-11 02:30:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
####################################################################################################################################
|
|
|
|
# vmGet
|
|
|
|
####################################################################################################################################
|
|
|
|
sub vmGet
|
|
|
|
{
|
|
|
|
return $oyVm;
|
|
|
|
}
|
|
|
|
|
|
|
|
push @EXPORT, qw(vmGet);
|
|
|
|
|
|
|
|
1;
|