From b5bda9b3d155234be079debe6997cbc900773cf2 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 21 Dec 2018 09:28:05 -0500 Subject: * Made 'sub command' git-like - with parameters before going to slang-test and after going to the tool (#764) * Document some of the changes to command line invocation * Make -v option display the effective command that is being used to run the test --- tools/slang-test/options.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools/slang-test/options.h') diff --git a/tools/slang-test/options.h b/tools/slang-test/options.h index ccbd9aede..4858ffd03 100644 --- a/tools/slang-test/options.h +++ b/tools/slang-test/options.h @@ -43,7 +43,7 @@ struct Options // Directory to use when looking for binaries to run char const* binDir = ""; - // only run test cases with names that have this prefix + // only run test cases with names that have this prefix. char const* testPrefix = nullptr; // generate extra output (notably: command lines we run) @@ -72,6 +72,12 @@ struct Options // By default we can test against all apis RenderApiFlags enabledApis = RenderApiFlag::AllOf; + // The subCommand to execute. Will be empty if there is no subCommand + Slang::String subCommand; + + // Arguments to the sub command. Note that if there is a subCommand the first parameter is always the subCommand itself. + Slang::List subCommandArgs; + // By default we potentially synthesize test for all // TODO: Vulkan is disabled by default for now as the majority as vulkan synthesized tests fail RenderApiFlags synthesizedTestApis = RenderApiFlag::AllOf & ~RenderApiFlag::Vulkan; -- cgit v1.2.3