1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <climits>
17 #include <gtest/gtest.h>
18 #include "../Deqpgles31BaseFunc.h"
19 #include "../ActsDeqpgles310005TestSuite.h"
20 #include "shrinkdefine.h"
21 
22 using namespace std;
23 using namespace testing::ext;
24 using namespace OHOS;
25 
26 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004493,
27         "dEQP-GLES31.functional.shaders.linkage.es",
28         "31.geometry.uniform.rules.type_mismatch_1");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004494,
31         "dEQP-GLES31.functional.shaders.linkage.es",
32         "31.geometry.uniform.rules.type_mismatch_2");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004495,
35         "dEQP-GLES31.functional.shaders.linkage.es",
36         "31.geometry.uniform.rules.type_mismatch_3");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004496,
39         "dEQP-GLES31.functional.shaders.linkage.es3",
40         "1.geometry.uniform.rules.precision_mismatch");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004497,
43         "dEQP-GLES31.functional.shaders.linkage.es31",
44         ".geometry.uniform.rules.struct_partial_usage");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004580,
47         "dEQP-GLES31.functional.shaders.linkage.es31",
48         ".tessellation.uniform.rules.type_mismatch_1");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004581,
51         "dEQP-GLES31.functional.shaders.linkage.es31",
52         ".tessellation.uniform.rules.type_mismatch_2");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004582,
55         "dEQP-GLES31.functional.shaders.linkage.es31",
56         ".tessellation.uniform.rules.type_mismatch_3");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004583,
59         "dEQP-GLES31.functional.shaders.linkage.es31",
60         ".tessellation.uniform.rules.type_mismatch_4");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004584,
63         "dEQP-GLES31.functional.shaders.linkage.es31",
64         ".tessellation.uniform.rules.type_mismatch_5");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004585,
67         "dEQP-GLES31.functional.shaders.linkage.es31.t",
68         "essellation.uniform.rules.precision_mismatch_1");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004586,
71         "dEQP-GLES31.functional.shaders.linkage.es31.t",
72         "essellation.uniform.rules.precision_mismatch_2");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004587,
75         "dEQP-GLES31.functional.shaders.linkage.es31.t",
76         "essellation.uniform.rules.struct_partial_usage");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004647,
79         "dEQP-GLES31.functional.shaders.linkage.es31.tes",
80         "sellation_geometry.uniform.rules.type_mismatch_1");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004648,
83         "dEQP-GLES31.functional.shaders.linkage.es31.tessel",
84         "lation_geometry.uniform.rules.precision_mismatch_1");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004649,
87         "dEQP-GLES31.functional.shaders.linkage.es31.tessel",
88         "lation_geometry.uniform.rules.struct_partial_usage");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004764,
91         "dEQP-GLES31.functional.shaders.linkage.es",
92         "32.geometry.uniform.rules.type_mismatch_1");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004765,
95         "dEQP-GLES31.functional.shaders.linkage.es",
96         "32.geometry.uniform.rules.type_mismatch_2");
97 
98 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004766,
99         "dEQP-GLES31.functional.shaders.linkage.es",
100         "32.geometry.uniform.rules.type_mismatch_3");
101 
102 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004767,
103         "dEQP-GLES31.functional.shaders.linkage.es3",
104         "2.geometry.uniform.rules.precision_mismatch");
105 
106 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004768,
107         "dEQP-GLES31.functional.shaders.linkage.es32",
108         ".geometry.uniform.rules.struct_partial_usage");
109 
110 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004846,
111         "dEQP-GLES31.functional.shaders.linkage.es32",
112         ".tessellation.uniform.rules.type_mismatch_1");
113 
114 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004847,
115         "dEQP-GLES31.functional.shaders.linkage.es32",
116         ".tessellation.uniform.rules.type_mismatch_2");
117 
118 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004848,
119         "dEQP-GLES31.functional.shaders.linkage.es32",
120         ".tessellation.uniform.rules.type_mismatch_3");
121 
122 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004849,
123         "dEQP-GLES31.functional.shaders.linkage.es32",
124         ".tessellation.uniform.rules.type_mismatch_4");
125 
126 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004850,
127         "dEQP-GLES31.functional.shaders.linkage.es32",
128         ".tessellation.uniform.rules.type_mismatch_5");
129 
130 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004851,
131         "dEQP-GLES31.functional.shaders.linkage.es32.t",
132         "essellation.uniform.rules.precision_mismatch_1");
133 
134 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004852,
135         "dEQP-GLES31.functional.shaders.linkage.es32.t",
136         "essellation.uniform.rules.precision_mismatch_2");
137 
138 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004853,
139         "dEQP-GLES31.functional.shaders.linkage.es32.t",
140         "essellation.uniform.rules.struct_partial_usage");
141 
142 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004907,
143         "dEQP-GLES31.functional.shaders.linkage.es32.tes",
144         "sellation_geometry.uniform.rules.type_mismatch_1");
145 
146 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004908,
147         "dEQP-GLES31.functional.shaders.linkage.es32.tessel",
148         "lation_geometry.uniform.rules.precision_mismatch_1");
149 
150 static SHRINK_HWTEST_F(ActsDeqpgles310005TestSuite, TestCase_004909,
151         "dEQP-GLES31.functional.shaders.linkage.es32.tessel",
152         "lation_geometry.uniform.rules.struct_partial_usage");
153