From b46c342f47b61119a0dc517ce6eb75eab3398504 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Sun, 11 May 2025 08:13:25 +0000 Subject: Add a new option "-capability" to slang-test and render-test (#7054) --- tools/slang-test/options.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/slang-test/options.cpp') diff --git a/tools/slang-test/options.cpp b/tools/slang-test/options.cpp index da8702031..6be590ef2 100644 --- a/tools/slang-test/options.cpp +++ b/tools/slang-test/options.cpp @@ -87,6 +87,7 @@ static bool _isSubCommand(const char* arg) " -use-shared-library Run tests in-process using shared library\n" " -use-test-server Run tests using test server\n" " -use-fully-isolated-test-server Run each test in isolated server\n" + " -capability Compile with the given capability\n" "\n" "Output modes:\n" " -appveyor Use AppVeyor output format\n" @@ -359,6 +360,16 @@ static bool _isSubCommand(const char* arg) { optionsOut->emitSPIRVDirectly = false; } + else if (strcmp(arg, "-capability") == 0) + { + if (argCursor == argEnd) + { + stdError.print("error: expected operand for '%s'\n", arg); + showHelp(stdError); + return SLANG_FAIL; + } + optionsOut->capabilities.add(*argCursor++); + } else if (strcmp(arg, "-expected-failure-list") == 0) { if (argCursor == argEnd) -- cgit v1.2.3