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:
@@ -384,21 +384,24 @@ int main(int argc, const char *argv[])
|
||||
error = ParseArgs(argc, argv);
|
||||
if (error) return error;
|
||||
|
||||
// This takes a while, so prevent the machine from going to sleep.
|
||||
PreventSleep();
|
||||
atexit(ResumeSleep);
|
||||
if (!gListTests)
|
||||
{
|
||||
// This takes a while, so prevent the machine from going to sleep.
|
||||
PreventSleep();
|
||||
atexit(ResumeSleep);
|
||||
|
||||
if (gSkipCorrectnessTesting)
|
||||
vlog("*** Skipping correctness testing! ***\n\n");
|
||||
else if (gStopOnError)
|
||||
vlog("Stopping at first error.\n");
|
||||
if (gSkipCorrectnessTesting)
|
||||
vlog("*** Skipping correctness testing! ***\n\n");
|
||||
else if (gStopOnError)
|
||||
vlog("Stopping at first error.\n");
|
||||
|
||||
vlog(" \t ");
|
||||
if (gWimpyMode) vlog(" ");
|
||||
if (!gSkipCorrectnessTesting) vlog("\t max_ulps");
|
||||
vlog(" \t ");
|
||||
if (gWimpyMode) vlog(" ");
|
||||
if (!gSkipCorrectnessTesting) vlog("\t max_ulps");
|
||||
|
||||
vlog("\n-------------------------------------------------------------------"
|
||||
"----------------------------------------\n");
|
||||
vlog("\n---------------------------------------------------------------"
|
||||
"--------------------------------------------\n");
|
||||
}
|
||||
|
||||
gMTdata = MTdataHolder(gRandomSeed);
|
||||
|
||||
@@ -425,6 +428,10 @@ int main(int argc, const char *argv[])
|
||||
|
||||
static int ParseArgs(int argc, const char **argv)
|
||||
{
|
||||
if (gListTests)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
// We only pass test names to runTestHarnessWithCheck, hence global command
|
||||
// line options defined by the harness cannot be used by the user.
|
||||
// To respect the implementation details of runTestHarnessWithCheck,
|
||||
|
||||
Reference in New Issue
Block a user