aboutsummaryrefslogtreecommitdiff
path: root/tests/_run_all_tests.ps1
diff options
context:
space:
mode:
authorCody Northrop <cnorthrop@google.com>2016-06-02 11:38:31 -0600
committerCody Northrop <cnorthrop@google.com>2016-06-03 11:41:26 -0600
commiteda6b6d57e8d482ae683abb495ba3fa115aa9517 (patch)
tree03410b2c0d02e843327a2aa10ab468d2529c4fd0 /tests/_run_all_tests.ps1
parent47a4a06592a57ca8b8e04b394000db21e830c748 (diff)
downloadvulkan-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-xtests/_run_all_tests.ps116
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