Mark Lobodzinski | 9bb255b | 2016-06-09 13:25:20 -0600 | [diff] [blame] | 1 | # 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 | |
| 9 | Param( |
| 10 | [switch]$Debug, |
Cody Northrop | 49d42b9 | 2017-05-11 10:16:02 -0600 | [diff] [blame] | 11 | [string]$LoaderTestExceptions, |
Mark Lobodzinski | 9bb255b | 2016-06-09 13:25:20 -0600 | [diff] [blame] | 12 | [string]$TestExceptions |
| 13 | ) |
| 14 | |
| 15 | if ($Debug) { |
| 16 | $dPath = "Debug" |
| 17 | } else { |
| 18 | $dPath = "Release" |
| 19 | } |
| 20 | |
Mark Young | bb3a29c | 2017-05-19 12:29:43 -0600 | [diff] [blame] | 21 | $AboveDir = (Get-Item -Path ".." -Verbose).FullName |
| 22 | Write-Host "Using Vulkan run-time=$AboveDir\loader\$dPath" |
| 23 | Set-Item -path env:Path -value ("$AboveDir\loader\$dPath;$AboveDir\tests\gtest-1.7.0\$dPath;" + $env:Path) |
| 24 | Write-Host "Using VK_LAYER_PATH=$AboveDir\layers\$dPath" |
| 25 | $env:VK_LAYER_PATH = "$AboveDir\layers\$dPath" |
Mark Lobodzinski | 9bb255b | 2016-06-09 13:25:20 -0600 | [diff] [blame] | 26 | |
Cody Northrop | 49d42b9 | 2017-05-11 10:16:02 -0600 | [diff] [blame] | 27 | & $dPath\vk_loader_validation_tests --gtest_filter=-$LoaderTestExceptions |
Mark Lobodzinski | 9bb255b | 2016-06-09 13:25:20 -0600 | [diff] [blame] | 28 | if ($lastexitcode -ne 0) { |
| 29 | exit 1 |
| 30 | } |
| 31 | |
| 32 | & $dPath\vk_layer_validation_tests --gtest_filter=-$TestExceptions |
Cody Northrop | a50f850 | 2017-07-25 13:17:02 -0600 | [diff] [blame] | 33 | if ($lastexitcode -ne 0) { |
| 34 | exit 1 |
| 35 | } |
Mark Lobodzinski | 9bb255b | 2016-06-09 13:25:20 -0600 | [diff] [blame] | 36 | |
Tobin Ehlis | b8fe10d | 2017-06-20 14:16:15 -0600 | [diff] [blame] | 37 | & .\vkvalidatelayerdoc.ps1 terse_mode |
Mark Lobodzinski | 3201e9b | 2017-06-12 12:04:40 -0600 | [diff] [blame] | 38 | |
Mark Lobodzinski | 9bb255b | 2016-06-09 13:25:20 -0600 | [diff] [blame] | 39 | exit $lastexitcode |