diff options
author | Cody Northrop <cnorthrop@google.com> | 2016-06-02 11:38:31 -0600 |
---|---|---|
committer | Cody Northrop <cnorthrop@google.com> | 2016-06-03 11:41:26 -0600 |
commit | eda6b6d57e8d482ae683abb495ba3fa115aa9517 (patch) | |
tree | 03410b2c0d02e843327a2aa10ab468d2529c4fd0 /tests/_run_all_tests.ps1 | |
parent | 47a4a06592a57ca8b8e04b394000db21e830c748 (diff) | |
download | vulkan-validation-layers-eda6b6d57e8d482ae683abb495ba3fa115aa9517.tar.gz |
windows: Allow run_all_tests.ps1 to skip tests
Use -TestExceptions to filter out tests with known problems.
Test list should follow a space, separated by a colon, i.e.
powershell -command .\run_all_tests.ps1 -TestExceptions ^
VkLayerTest.RequiredParameter:^
VkLayerTest.UnrecognizedValue
Diffstat (limited to 'tests/_run_all_tests.ps1')
-rwxr-xr-x | tests/_run_all_tests.ps1 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/_run_all_tests.ps1 b/tests/_run_all_tests.ps1 index 8ab630a62..f0a5059a2 100755 --- a/tests/_run_all_tests.ps1 +++ b/tests/_run_all_tests.ps1 @@ -1,6 +1,15 @@ # Be sure to run "Set-ExecutionPolicy RemoteSigned" before running powershell scripts
-Param([switch]$Debug)
+# Use TestExceptions to filter out tests with known problems, separated by a colon
+# i.e. run_all_tests.ps1 -TestExceptions VkLayerTest.RequiredParameter:VkLayerTest.UnrecognizedValue
+
+# To trigger Debug tests, specify the parameter with a hyphen
+# i.e run_all_tests.ps1 -Debug
+
+Param(
+ [switch]$Debug,
+ [string]$TestExceptions
+)
if ($Debug) {
$dPath = "Debug"
@@ -17,9 +26,10 @@ if ($lastexitcode -ne 0) { exit 1
}
-& $dPath\vk_layer_validation_tests
+& $dPath\vk_layer_validation_tests --gtest_filter=-$TestExceptions
if ($lastexitcode -ne 0) {
exit 1
}
+
.\vkvalidatelayerdoc.ps1
-exit $lastexitcode
\ No newline at end of file +exit $lastexitcode
|