2020-06-04 00:06:56 +08:00
|
|
|
$env:PIGLIT_NO_FAST_SKIP = 1
|
|
|
|
|
|
|
|
Copy-Item -Path _install\bin\opengl32.dll -Destination C:\Piglit\lib\piglit\bin\opengl32.dll
|
2021-09-01 22:07:57 +08:00
|
|
|
Copy-Item -Path _install\bin\libgallium_wgl.dll -Destination C:\Piglit\lib\piglit\bin\libgallium_wgl.dll
|
2021-09-16 05:53:36 +08:00
|
|
|
Copy-Item -Path _install\bin\libglapi.dll -Destination C:\Piglit\lib\piglit\bin\libglapi.dll
|
2020-06-04 00:06:56 +08:00
|
|
|
|
|
|
|
# Run this using VsDevCmd.bat to ensure DXIL.dll is in %PATH%
|
2021-02-13 01:20:00 +08:00
|
|
|
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 $env:PIGLIT_TESTS .\results"
|
2020-06-04 00:06:56 +08:00
|
|
|
|
|
|
|
py -3 C:\Piglit\bin\piglit.py summary console .\results | Select -SkipLast 1 | Select-String -NotMatch -Pattern ': pass' | Set-Content -Path .\result.txt
|
|
|
|
|
2021-11-21 23:22:59 +08:00
|
|
|
$reference = Get-Content ".\_install\$env:PIGLIT_RESULTS.txt"
|
2020-12-11 17:22:03 +08:00
|
|
|
$result = Get-Content .\result.txt
|
|
|
|
if (-Not ($reference -And $result)) {
|
|
|
|
Exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
$diff = Compare-Object -ReferenceObject $reference -DifferenceObject $result
|
2020-06-04 00:06:56 +08:00
|
|
|
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
|