blob: 42df3c09f3c99d76b981a911012e623b1fc55c1d [file] [log] [blame]
# VK_ICD_FILENAMES environment variable is not used when running with
# elevated privileges. Add a key to the registry instead.
$hkey_path = "HKLM:\SOFTWARE\Khronos\Vulkan\Drivers\"
$hkey_name = Join-Path -Path $pwd -ChildPath "_install\share\vulkan\icd.d\dzn_icd.x86_64.json"
New-Item -Path $hkey_path -force
New-ItemProperty -Path $hkey_path -Name $hkey_name -Value 0 -PropertyType DWORD
$results = New-Item -ItemType Directory results
$baseline = ".\_install\warp-fails.txt"
$suite = ".\_install\deqp-dozen.toml"
$jobs = ""
if ($null -ne $env:FDO_CI_CONCURRENT) {
$jobs = "--jobs", "$($env:FDO_CI_CONCURRENT)"
}
if ($env:DEQP_FRACTION -eq $null) {
$env:DEQP_FRACTION = 1
}
$env:DZN_DEBUG = "warp"
$env:MESA_VK_IGNORE_CONFORMANCE_WARNING = "true"
deqp-runner suite --suite $($suite) `
--output $($results) `
--baseline $($baseline) `
--testlog-to-xml C:\deqp\executor\testlog-to-xml.exe `
--fraction $env:DEQP_FRACTION `
$jobs
$deqpstatus = $?
$template = "See https://$($env:CI_PROJECT_ROOT_NAMESPACE).pages.freedesktop.org/-/$($env:CI_PROJECT_NAME)/-/jobs/$($env:CI_JOB_ID)/artifacts/results/{{testcase}}.xml"
deqp-runner junit --testsuite dEQP --results "$($results)/failures.csv" --output "$($results)/junit.xml" --limit 50 --template $template
Copy-Item -Path "C:\deqp\testlog.css" -Destination $($results)
Copy-Item -Path "C:\deqp\testlog.xsl" -Destination $($results)
if (!$deqpstatus) {
Exit 1
}