int bitsPerPixel;
bool verbose;
int minTime;
+ bool listTests;
std::list<std::string> includedTests;
std::list<std::string> excludedTests;
} options;
int64_t minTime = options.minTime * 1000 * 1000 * 1000LL;
struct timespec res, start, end;
+ if (options.listTests)
+ {
+ printf("%s\n", test.name().c_str());
+ return;
+ }
+
if (!shouldRunTest(test.name()))
{
return;
"Options:\n"
" -h This text\n"
" -v Verbose mode\n"
+ " -l List all tests without running them\n"
" -i TEST Include a specific test (full name or substring)\n"
" -e TEST Exclude a specific test (full name or substring)\n"
" -t SECS Minimum time to run each test\n"
options.verbose = false;
options.minTime = 1;
options.bitsPerPixel = 16;
+ options.listTests = false;
for (i = args.begin(), i++; i != args.end(); ++i)
{
{
options.verbose = true;
}
+ else if (*i == "-l")
+ {
+ options.listTests = true;
+ }
else
{
std::cerr << "Invalid option: " << *i << std::endl;