From cb0a08b55f3d1be44b36fc4fc5f34405c2b1516e Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 24 Jul 2020 11:12:58 -0400 Subject: Test frame work improvements (#1452) * Add -hide-ignored Made API filter when enbled filter out non API tests. * Add ability to set categories at file level. Added wave, wave-mask and wave-active categories. * Added -api-only flag. * Don't synthesize tests from only CPU tests. Co-authored-by: Tim Foley --- tools/slang-test/test-reporter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/slang-test/test-reporter.cpp') diff --git a/tools/slang-test/test-reporter.cpp b/tools/slang-test/test-reporter.cpp index 9dd34739b..fd9748b28 100644 --- a/tools/slang-test/test-reporter.cpp +++ b/tools/slang-test/test-reporter.cpp @@ -286,6 +286,11 @@ static void _appendTime(double timeInSec, StringBuilder& out) void TestReporter::_addResult(const TestInfo& info) { + if (info.testResult == TestResult::Ignored && m_hideIgnored) + { + return; + } + m_totalTestCount++; switch (info.testResult) -- cgit v1.2.3