You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
Coverage testing always enabled on Debian-based containers.
* Full coverage is verified when specified. * Modules marked with partial coverage will error if they are actually fully covered. * Simplified test representation is DefineTest. * Added new representation for queries in DefineTest and added API functions. * Update modules using DefineTest to use new API.
This commit is contained in:
@@ -275,4 +275,29 @@ sub vmGet
|
||||
|
||||
push @EXPORT, qw(vmGet);
|
||||
|
||||
####################################################################################################################################
|
||||
# vmBaseTest
|
||||
####################################################################################################################################
|
||||
sub vmBaseTest
|
||||
{
|
||||
my $strVm = shift;
|
||||
my $strDistroTest = shift;
|
||||
|
||||
return $oyVm->{$strVm}{&VM_OS_BASE} eq $strDistroTest ? true : false;
|
||||
}
|
||||
|
||||
push @EXPORT, qw(vmBaseTest);
|
||||
|
||||
####################################################################################################################################
|
||||
# vmCoverage
|
||||
####################################################################################################################################
|
||||
sub vmCoverage
|
||||
{
|
||||
my $strVm = shift;
|
||||
|
||||
return $strVm eq VM_ALL ? false : vmBaseTest($strVm, VM_OS_BASE_DEBIAN);
|
||||
}
|
||||
|
||||
push @EXPORT, qw(vmCoverage);
|
||||
|
||||
1;
|
||||
|
Reference in New Issue
Block a user