aboutsummaryrefslogtreecommitdiff
path: root/tests/_run_all_tests.ps1
blob: 8ab630a62afcb9344a17158a35e55db990aaa341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Be sure to run "Set-ExecutionPolicy RemoteSigned" before running powershell scripts

Param([switch]$Debug)

if ($Debug) {
    $dPath = "Debug"
} else {
    $dPath = "Release"
}

Set-Item -path env:Path -value ($env:Path + ";..\loader\$dPath")
Set-Item -path env:Path -value ($env:Path + ";gtest-1.7.0\$dPath")
$env:VK_LAYER_PATH = "..\layers\$dPath"

& $dPath\vk_loader_validation_tests
if ($lastexitcode -ne 0) {
   exit 1
}

& $dPath\vk_layer_validation_tests
if ($lastexitcode -ne 0) {
   exit 1
}
.\vkvalidatelayerdoc.ps1
exit $lastexitcode