diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-05-11 08:13:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-11 08:13:25 +0000 |
| commit | b46c342f47b61119a0dc517ce6eb75eab3398504 (patch) | |
| tree | b298a229eaca41fd8ea37461f774788f005f9c12 /tools/slang-test/options.cpp | |
| parent | 7cd502256dde2fc32a1dd77462a69b6f8e84c288 (diff) | |
Add a new option "-capability" to slang-test and render-test (#7054)
Diffstat (limited to 'tools/slang-test/options.cpp')
| -rw-r--r-- | tools/slang-test/options.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 <name> 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) |
