Add waived tests support for cts tools
authorCheryl Wei <cheryl.wei@arm.com>
Tue, 16 Mar 2021 07:43:48 +0000 (15:43 +0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 2 Apr 2021 07:53:13 +0000 (07:53 +0000)
Add TESTSTATUSCODE_WAIVER definition for cts tools to support waived tests.

Components: OpenGL ES
VK-GL-CTS issue: 2666

Change-Id: I99811c73bb96ec45cb0e5cbfab7d073bca4653db

executor/xeTestCaseResult.cpp
executor/xeTestCaseResult.hpp
executor/xeTestResultParser.cpp

index 5e56fa4..b4d93c2 100644 (file)
@@ -47,6 +47,7 @@ const char* getTestStatusCodeName (TestStatusCode code)
                case TESTSTATUSCODE_CRASH:                                      return "Crash";
                case TESTSTATUSCODE_DISABLED:                           return "Disabled";
                case TESTSTATUSCODE_TERMINATED:                         return "Terminated";
+               case TESTSTATUSCODE_WAIVER:                                     return "Waived";
                default:
                        DE_ASSERT(false);
                        return DE_NULL;
index 1f53607..79f0465 100644 (file)
@@ -49,6 +49,7 @@ enum TestStatusCode
        TESTSTATUSCODE_CRASH,                                   //!< Test executable crashed before finishing the test.
        TESTSTATUSCODE_DISABLED,                                //!< Test case disabled (for current target)
        TESTSTATUSCODE_TERMINATED,                              //!< Terminated for other reason.
+       TESTSTATUSCODE_WAIVER,                                  //!< Test case waived.
 
        TESTSTATUSCODE_LAST
 };
index b14e7b2..c21ddd5 100644 (file)
@@ -97,7 +97,8 @@ static const EnumMapEntry s_statusCodeMap[] =
        { 0x42b6efac,   "Timeout",                              TESTSTATUSCODE_TIMEOUT                                  },
        { 0x0cfb98f6,   "Crash",                                TESTSTATUSCODE_CRASH                                    },
        { 0xe326e01d,   "Disabled",                             TESTSTATUSCODE_DISABLED                                 },
-       { 0x77061af2,   "Terminated",                   TESTSTATUSCODE_TERMINATED                               }
+       { 0x77061af2,   "Terminated",                   TESTSTATUSCODE_TERMINATED                               },
+       { 0xd9e6b393,   "Waiver",                           TESTSTATUSCODE_WAIVER                                   }
 };
 
 static const EnumMapEntry s_resultItemMap[] =