summaryrefslogtreecommitdiff
path: root/tools/slang-test/slang-test-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-test/slang-test-main.cpp')
-rw-r--r--tools/slang-test/slang-test-main.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp
index 14c9b52ef..4eab84340 100644
--- a/tools/slang-test/slang-test-main.cpp
+++ b/tools/slang-test/slang-test-main.cpp
@@ -782,7 +782,7 @@ Result spawnAndWaitExe(
const auto& options = context->options;
- if (options.shouldBeVerbose)
+ if (options.verbosity == VerbosityLevel::Verbose)
{
String commandLine = cmdLine.toString();
context->getTestReporter()->messageFormat(
@@ -815,7 +815,7 @@ Result spawnAndWaitSharedLibrary(
const auto& options = context->options;
String exeName = Path::getFileNameWithoutExt(cmdLine.m_executableLocation.m_pathOrName);
- if (options.shouldBeVerbose)
+ if (options.verbosity == VerbosityLevel::Verbose)
{
CommandLine testCmdLine;
@@ -908,7 +908,7 @@ Result spawnAndWaitProxy(
cmdLine.setExecutableLocation(ExecutableLocation(context->exeDirectoryPath, "test-proxy"));
const auto& options = context->options;
- if (options.shouldBeVerbose)
+ if (options.verbosity == VerbosityLevel::Verbose)
{
String commandLine = cmdLine.toString();
context->getTestReporter()->messageFormat(
@@ -4624,7 +4624,10 @@ void runTestsInDirectory(TestContext* context)
{
if (shouldRunTest(context, file))
{
- printf("found test: '%s'\n", file.getBuffer());
+ if (context->options.verbosity >= VerbosityLevel::Info)
+ {
+ printf("found test: '%s'\n", file.getBuffer());
+ }
if (SLANG_FAILED(_runTestsOnFile(context, file)))
{
{
@@ -5071,7 +5074,7 @@ SlangResult innerMain(int argc, char** argv)
context.setTestReporter(&reporter);
reporter.m_dumpOutputOnFailure = options.dumpOutputOnFailure;
- reporter.m_isVerbose = options.shouldBeVerbose;
+ reporter.m_verbosity = options.verbosity;
reporter.m_hideIgnored = options.hideIgnored;
{