You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-12-01 22:30:09 +02:00
Improvements to page checksum module and tests:
* Page checksum module uses new C error handler. * Convert page checksum tests into C unit tests.
This commit is contained in:
@@ -174,6 +174,25 @@ my $oTestDef =
|
||||
},
|
||||
]
|
||||
},
|
||||
# PostgreSQL tests
|
||||
{
|
||||
&TESTDEF_NAME => 'postgres',
|
||||
&TESTDEF_CONTAINER => true,
|
||||
|
||||
&TESTDEF_TEST =>
|
||||
[
|
||||
{
|
||||
&TESTDEF_NAME => 'page-checksum',
|
||||
&TESTDEF_TOTAL => 3,
|
||||
&TESTDEF_C => true,
|
||||
|
||||
&TESTDEF_COVERAGE =>
|
||||
{
|
||||
'postgres/pageChecksum' => TESTDEF_COVERAGE_FULL,
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
# Help tests
|
||||
{
|
||||
&TESTDEF_NAME => 'help',
|
||||
|
||||
@@ -246,9 +246,6 @@ sub run
|
||||
# Skip all files except .c files (including .auto.c)
|
||||
next if $strFile !~ /(?<!\.auto)\.c$/;
|
||||
|
||||
# ??? Temporarily skip because it has Perl includes which will be removed in a later commit
|
||||
next if $strFile =~ /pageChecksum.c$/;
|
||||
|
||||
if (!defined($hTestCoverage->{substr($strFile, 0, length($strFile) - 2)}))
|
||||
{
|
||||
push(@stryCFile, "${strCSrcPath}/${strFile}");
|
||||
|
||||
Reference in New Issue
Block a user