1 $env:PIGLIT_NO_FAST_SKIP = 1 2 3 Copy-Item -Path _install\bin\opengl32.dll -Destination C:\Piglit\lib\piglit\bin\opengl32.dll 4 Copy-Item -Path _install\bin\libgallium_wgl.dll -Destination C:\Piglit\lib\piglit\bin\libgallium_wgl.dll 5 Copy-Item -Path _install\bin\libglapi.dll -Destination C:\Piglit\lib\piglit\bin\libglapi.dll 6 7 # Run this using VsDevCmd.bat to ensure DXIL.dll is in %PATH% 8 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" 9 10 py -3 C:\Piglit\bin\piglit.py summary console .\results | Select -SkipLast 1 | Select-String -NotMatch -Pattern ': pass' | Set-Content -Path .\result.txt 11 12 $reference = Get-Content ".\_install\$env:PIGLIT_PROFILE.txt" 13 $result = Get-Content .\result.txt 14 if (-Not ($reference -And $result)) { 15 Exit 1 16 } 17 18 $diff = Compare-Object -ReferenceObject $reference -DifferenceObject $result 19 if (-Not $diff) { 20 Exit 0 21 } 22 23 py -3 C:\Piglit\bin\piglit.py summary html --exclude-details=pass .\summary .\results 24 25 Write-Host "Unexpected change in results:" 26 Write-Output $diff | Format-Table -Property SideIndicator,InputObject -Wrap 27 28 Exit 1 29