blob: 05c2141efd4a0b39834dd123d19c6ccad2fcb308 [file] [log] [blame]
Mark Lobodzinski9bb255b2016-06-09 13:25:20 -06001# Be sure to run "Set-ExecutionPolicy RemoteSigned" before running powershell scripts
2
3# Use TestExceptions to filter out tests with known problems, separated by a colon
4# i.e. run_all_tests.ps1 -TestExceptions VkLayerTest.RequiredParameter:VkLayerTest.UnrecognizedValue
5
6# To trigger Debug tests, specify the parameter with a hyphen
7# i.e run_all_tests.ps1 -Debug
8
9Param(
10 [switch]$Debug,
Cody Northrop49d42b92017-05-11 10:16:02 -060011 [string]$LoaderTestExceptions,
Mark Lobodzinski9bb255b2016-06-09 13:25:20 -060012 [string]$TestExceptions
13)
14
15if ($Debug) {
16 $dPath = "Debug"
17} else {
18 $dPath = "Release"
19}
20
Mark Youngbb3a29c2017-05-19 12:29:43 -060021$AboveDir = (Get-Item -Path ".." -Verbose).FullName
22Write-Host "Using Vulkan run-time=$AboveDir\loader\$dPath"
23Set-Item -path env:Path -value ("$AboveDir\loader\$dPath;$AboveDir\tests\gtest-1.7.0\$dPath;" + $env:Path)
24Write-Host "Using VK_LAYER_PATH=$AboveDir\layers\$dPath"
25$env:VK_LAYER_PATH = "$AboveDir\layers\$dPath"
Mark Lobodzinski9bb255b2016-06-09 13:25:20 -060026
Cody Northrop49d42b92017-05-11 10:16:02 -060027& $dPath\vk_loader_validation_tests --gtest_filter=-$LoaderTestExceptions
Mark Lobodzinski9bb255b2016-06-09 13:25:20 -060028if ($lastexitcode -ne 0) {
29 exit 1
30}
31
32& $dPath\vk_layer_validation_tests --gtest_filter=-$TestExceptions
Cody Northropa50f8502017-07-25 13:17:02 -060033if ($lastexitcode -ne 0) {
34 exit 1
35}
Mark Lobodzinski9bb255b2016-06-09 13:25:20 -060036
Tobin Ehlisb8fe10d2017-06-20 14:16:15 -060037& .\vkvalidatelayerdoc.ps1 terse_mode
Mark Lobodzinski3201e9b2017-06-12 12:04:40 -060038
Mark Lobodzinski9bb255b2016-06-09 13:25:20 -060039exit $lastexitcode