Changeset 60896 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 9, 2016 2:50:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/usb/UsbTest.cpp
r60860 r60896 167 167 {"--help", 'h', RTGETOPT_REQ_NOTHING}, 168 168 {"--exclude", 'e', RTGETOPT_REQ_UINT32}, 169 {"--exclude-all", 'a', RTGETOPT_REQ_NOTHING}, 170 {"--include", 'i', RTGETOPT_REQ_UINT32}, 169 171 {"--expected-speed", 's', RTGETOPT_REQ_STRING } 170 172 }; … … 271 273 pszHelp = "Exclude the given test id from the list"; 272 274 break; 275 case 'a': 276 pszHelp = "Exclude all tests from the list (useful to enable single tests later with --include)"; 277 break; 278 case 'i': 279 pszHelp = "Include the given test id in the list"; 280 break; 273 281 case 's': 274 282 pszHelp = "The device speed to expect"; … … 569 577 } 570 578 break; 579 case 'a': 580 for (unsigned i = 0; i < RT_ELEMENTS(g_aTests); i++) 581 g_aTests[i].fExcluded = true; 582 break; 583 case 'i': 584 if (ValueUnion.u32 < RT_ELEMENTS(g_aTests)) 585 g_aTests[ValueUnion.u32].fExcluded = false; 586 else 587 { 588 RTTestPrintf(g_hTest, RTTESTLVL_FAILURE, "Invalid test number passed to --include\n"); 589 RTTestErrorInc(g_hTest); 590 return RTGetOptPrintError(VERR_INVALID_PARAMETER, &ValueUnion); 591 } 592 break; 571 593 default: 572 594 return RTGetOptPrintError(rc, &ValueUnion);
Note:
See TracChangeset
for help on using the changeset viewer.