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 "../Deqpgles2BaseFunc.h"
19#include "../ActsDeqpgles20008TestSuite.h"
20#include "shrinkdefine.h"
21
22using namespace std;
23using namespace testing::ext;
24using namespace OHOS;
25
26static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007657,
27        "dEQP-GLES2.functional.sha",
28        "ders.discard.basic_always");
29
30static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007658,
31        "dEQP-GLES2.functional.sh",
32        "aders.discard.basic_never");
33
34static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007659,
35        "dEQP-GLES2.functional.sha",
36        "ders.discard.basic_uniform");
37
38static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007660,
39        "dEQP-GLES2.functional.sha",
40        "ders.discard.basic_dynamic");
41
42static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007661,
43        "dEQP-GLES2.functional.sha",
44        "ders.discard.basic_texture");
45
46static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007662,
47        "dEQP-GLES2.functional.shad",
48        "ers.discard.function_always");
49
50static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007663,
51        "dEQP-GLES2.functional.shad",
52        "ers.discard.function_never");
53
54static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007664,
55        "dEQP-GLES2.functional.shade",
56        "rs.discard.function_uniform");
57
58static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007665,
59        "dEQP-GLES2.functional.shade",
60        "rs.discard.function_dynamic");
61
62static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007666,
63        "dEQP-GLES2.functional.shade",
64        "rs.discard.function_texture");
65
66static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007667,
67        "dEQP-GLES2.functional.shader",
68        "s.discard.static_loop_always");
69
70static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007668,
71        "dEQP-GLES2.functional.shade",
72        "rs.discard.static_loop_never");
73
74static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007669,
75        "dEQP-GLES2.functional.shader",
76        "s.discard.static_loop_uniform");
77
78static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007670,
79        "dEQP-GLES2.functional.shader",
80        "s.discard.static_loop_dynamic");
81
82static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007671,
83        "dEQP-GLES2.functional.shader",
84        "s.discard.static_loop_texture");
85
86static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007672,
87        "dEQP-GLES2.functional.shader",
88        "s.discard.dynamic_loop_always");
89
90static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007673,
91        "dEQP-GLES2.functional.shader",
92        "s.discard.dynamic_loop_never");
93
94static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007674,
95        "dEQP-GLES2.functional.shaders",
96        ".discard.dynamic_loop_uniform");
97
98static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007675,
99        "dEQP-GLES2.functional.shaders",
100        ".discard.dynamic_loop_dynamic");
101
102static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007676,
103        "dEQP-GLES2.functional.shaders",
104        ".discard.dynamic_loop_texture");
105
106static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007677,
107        "dEQP-GLES2.functional.shaders.di",
108        "scard.function_static_loop_always");
109
110static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007678,
111        "dEQP-GLES2.functional.shaders.di",
112        "scard.function_static_loop_never");
113
114static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007679,
115        "dEQP-GLES2.functional.shaders.dis",
116        "card.function_static_loop_uniform");
117
118static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007680,
119        "dEQP-GLES2.functional.shaders.dis",
120        "card.function_static_loop_dynamic");
121
122static SHRINK_HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007681,
123        "dEQP-GLES2.functional.shaders.dis",
124        "card.function_static_loop_texture");
125