mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Update '-list' option (#2457)
'-list' option is used to print all sub-tests. But some test do not support it at all. And all test do not display it the same way, making it quite complicated for external tools to extract them. That CL clean the usage so that tests: - Print the sub-tests list with either '-list' (to prevent breaking legacy usage) or '--list' (to match other options) - Do not print anything else when the option is used
This commit is contained in:
@@ -83,13 +83,6 @@ int main (int argc, const char **argv )
|
||||
if( (error = ParseArgs( argc, argv )) )
|
||||
goto exit;
|
||||
|
||||
if (gIsEmbedded) {
|
||||
vlog( "\tProfile: Embedded\n" );
|
||||
}else
|
||||
{
|
||||
vlog( "\tProfile: Full\n" );
|
||||
}
|
||||
|
||||
fflush( stdout );
|
||||
error = runTestHarnessWithCheck(
|
||||
argCount, argList, test_registry::getInstance().num_tests(),
|
||||
@@ -114,6 +107,10 @@ exit:
|
||||
|
||||
static int ParseArgs( int argc, const char **argv )
|
||||
{
|
||||
if (gListTests)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
int i;
|
||||
argList = (const char **)calloc(argc, sizeof(char *));
|
||||
if( NULL == argList )
|
||||
@@ -217,6 +214,16 @@ static int ParseArgs( int argc, const char **argv )
|
||||
vlog( "*** It gives warm fuzzy feelings and then nevers calls. ***\n\n" );
|
||||
vlog( "*** Wimpy Reduction Factor: %-27u ***\n\n", gWimpyReductionFactor);
|
||||
}
|
||||
|
||||
if (gIsEmbedded)
|
||||
{
|
||||
vlog("\tProfile: Embedded\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
vlog("\tProfile: Full\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user