Skip to content
Snippets Groups Projects
Verified Commit 033fa1ec authored by Lars Bilke's avatar Lars Bilke
Browse files

Use xsltproc to transform ctest error output (win).

parent c3b4e85b
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,19 @@
- cd $build_directory_full
- cmake --build . --target package | Tee-Object -FilePath make.output
- if($env:BUILD_TESTS -eq "true") { cmake --build . --target tests }
- if($env:BUILD_CTEST -eq "true") { cmake --build . --target ctest }
- |
if($env:BUILD_CTEST -eq "true")
{
ctest -T Test --no-compress-output --exclude-regex LARGE --timeout 900
$ctest_exit=$?
if(!$ctest_exit)
{
Write-Output "ctests failed (showing the last $env:NUM_CTEST_ERROR_LINES lines):"
xsltproc $env:CI_PROJECT_DIR/scripts/test/ctest-error-output.xsl (Get-ChildItem Testing/*/Test.xml | Select-Object -Expand FullName) > ./ctest-error-ouput.txt
Get-Content -Path ./ctest-error-ouput.txt -Tail $env:NUM_CTEST_ERROR_LINES
exit $ctest_exit
}
}
- if($env:BUILD_CTEST -eq "true") { cp Testing/**/Test.xml Tests/ctest.xml }
- |
if($env:CHECK_WARNINGS -eq "true" -and (cat make.output | Select-String -Pattern ': warning') )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment