Changeset 104173 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Apr 5, 2024 9:38:49 AM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 162601
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstIEMAImpl.cpp
r104156 r104173 256 256 257 257 static unsigned g_cVerbosity = 0; 258 static bool g_fVerboseSkipping = true; 258 259 259 260 … … 1246 1247 static bool SubTestAndCheckIfEnabled(const char *pszName) 1247 1248 { 1248 RTTestSub(g_hTest, pszName); 1249 if (IsTestEnabled(pszName)) 1250 return true; 1251 RTTestSkipped(g_hTest, g_cVerbosity > 0 ? "excluded" : NULL); 1249 bool const fEnabled = IsTestEnabled(pszName); 1250 if (g_fVerboseSkipping || fEnabled) 1251 { 1252 RTTestSub(g_hTest, pszName); 1253 if (fEnabled) 1254 return true; 1255 RTTestSkipped(g_hTest, g_cVerbosity > 0 ? "excluded" : NULL); 1256 } 1252 1257 return false; 1253 1258 } … … 10009 10014 uint32_t const cDefaultTests = 96; 10010 10015 uint32_t cTests = cDefaultTests; 10016 10011 10017 RTGETOPTDEF const s_aOptions[] = 10012 10018 { … … 10037 10043 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 10038 10044 { "--quiet", 'q', RTGETOPT_REQ_NOTHING }, 10045 { "--quiet-skipping", 'Q', RTGETOPT_REQ_NOTHING }, 10039 10046 }; 10040 10047 … … 10130 10137 g_cVerbosity++; 10131 10138 break; 10139 case 'Q': 10140 g_fVerboseSkipping = false; 10141 break; 10132 10142 10133 10143 case 'h': 10134 RTPrintf("usage: % s<-g|-t> [options]\n"10144 RTPrintf("usage: %Rbn <-g|-t> [options]\n" 10135 10145 "\n" 10136 10146 "Mode:\n" … … 10181 10191 " -q, --quiet\n" 10182 10192 " Noise level. Default: --quiet\n" 10183 , argv[0], cDefaultTests); 10193 " -Q, --quiet-skipping\n" 10194 " Don't display skipped tests.\n" 10195 "\n" 10196 "Tip! When working on a single instruction, use the the -I and -Q options to\n" 10197 " restrict the testing: %Rbn -tiQI \"shr_*\"\n" 10198 , argv[0], cDefaultTests, argv[0]); 10184 10199 return RTEXITCODE_SUCCESS; 10185 10200 default:
Note:
See TracChangeset
for help on using the changeset viewer.