mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 04:04:23 +08:00
745af88783
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11779>
17 lines
483 B
PowerShell
17 lines
483 B
PowerShell
. .\_install\spirv2dxil_check.ps1 2>&1 | Set-Content -Path .\spirv2dxil_results.txt
|
|
$reference = Get-Content .\_install\spirv2dxil_reference.txt
|
|
$result = Get-Content .\spirv2dxil_results.txt
|
|
if (-Not ($reference -And $result)) {
|
|
Exit 1
|
|
}
|
|
|
|
$diff = Compare-Object -ReferenceObject $reference -DifferenceObject $result
|
|
if (-Not $diff) {
|
|
Exit 0
|
|
}
|
|
|
|
Write-Host "Unexpected change in results:"
|
|
Write-Output $diff | Format-Table -Property SideIndicator, InputObject -Wrap
|
|
|
|
Exit 1
|