1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-04 03:49:14 +02:00

Auto-generate code before building test binary.

Errors in code generation can cause the test binary build to fail and then it is not possible to see the generated code.

Instead, generate code first so any errors can be seen and analyzed.
This commit is contained in:
David Steele 2024-07-09 10:48:27 +07:00
parent 66d3cd42b5
commit b71d4b53d6

View File

@ -578,11 +578,12 @@ eval
# Setup build if it does not exist
my $strGenerateCommand =
"ninja -C ${strBuildPath} src/build-code test/src/test-pgbackrest" .
"ninja -C ${strBuildPath} src/build-code" .
($bMinGen ? '' : " && \\\n${strBuildPath}/src/build-code config ${strBackRestBase}/src") .
($bMinGen ? '' : " && \\\n${strBuildPath}/src/build-code error ${strBackRestBase}/src") .
($bMinGen ? '' : " && \\\n${strBuildPath}/src/build-code postgres-version ${strBackRestBase}/src") .
" && \\\n${strBuildPath}/src/build-code postgres ${strBackRestBase}/src ${strRepoCachePath}";
" && \\\n${strBuildPath}/src/build-code postgres ${strBackRestBase}/src ${strRepoCachePath}" .
" && \\\nninja -C ${strBuildPath} test/src/test-pgbackrest";
if (!-e $strBuildNinja)
{