summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-test/slang-test-main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp
index da03d67fe..8b3fda9dd 100644
--- a/tools/slang-test/slang-test-main.cpp
+++ b/tools/slang-test/slang-test-main.cpp
@@ -3105,6 +3105,7 @@ SlangResult innerMain(int argc, char** argv)
auto vulkanTestCategory = categorySet.add("vulkan", fullTestCategory);
auto unitTestCatagory = categorySet.add("unit-test", fullTestCategory);
auto cudaTestCategory = categorySet.add("cuda", fullTestCategory);
+ auto optixTestCategory = categorySet.add("optix", cudaTestCategory);
auto compatibilityIssueCategory = categorySet.add("compatibility-issue", fullTestCategory);
@@ -3206,6 +3207,12 @@ SlangResult innerMain(int argc, char** argv)
options.includeCategories.Add(fullTestCategory, fullTestCategory);
}
+ // Don't include OptiX tests unless the client has explicit opted into them.
+ if( !options.includeCategories.ContainsKey(optixTestCategory) )
+ {
+ options.excludeCategories.Add(optixTestCategory, optixTestCategory);
+ }
+
// Exclude rendering tests when building under AppVeyor.
//
// TODO: this is very ad hoc, and we should do something cleaner.