22 lines
931 B
PowerShell
22 lines
931 B
PowerShell
$env:PIGLIT_NO_FAST_SKIP = 1
|
|
|
|
Copy-Item -Path _install\bin\opengl32.dll -Destination C:\Piglit\lib\piglit\bin\opengl32.dll
|
|
|
|
# Run this using VsDevCmd.bat to ensure DXIL.dll is in %PATH%
|
|
cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && py -3 C:\Piglit\bin\piglit.py run `"$env:PIGLIT_PROFILE`" $env:PIGLIT_OPTIONS .\results"
|
|
|
|
py -3 C:\Piglit\bin\piglit.py summary console .\results | Select -SkipLast 1 | Select-String -NotMatch -Pattern ': pass' | Set-Content -Path .\result.txt
|
|
|
|
$diff = Compare-Object -ReferenceObject $(Get-Content ".gitlab-ci\windows\$env:PIGLIT_PROFILE.txt") `
|
|
-DifferenceObject $(Get-Content .\result.txt)
|
|
if (-Not $diff) {
|
|
Exit 0
|
|
}
|
|
|
|
py -3 C:\Piglit\bin\piglit.py summary html --exclude-details=pass .\summary .\results
|
|
|
|
Write-Host "Unexpected change in results:"
|
|
Write-Output $diff | Format-Table -Property SideIndicator,InputObject -Wrap
|
|
|
|
Exit 1
|