1
0
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:
David Steele
2017-10-16 11:03:06 -04:00
parent 80758f0023
commit 9d78948a14
8 changed files with 159 additions and 147 deletions

View File

@@ -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',

View File

@@ -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}");