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 "../ActsDeqpgles20001TestSuite.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(ActsDeqpgles20001TestSuite, TestCase_000301,
27         "dEQP-GLES2.functional.shaders.preproc",
28         "essor.invalid_ops.invalid_op_1_vertex");
29 
30 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000302,
31         "dEQP-GLES2.functional.shaders.preproce",
32         "ssor.invalid_ops.invalid_op_1_fragment");
33 
34 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000303,
35         "dEQP-GLES2.functional.shaders.preproc",
36         "essor.invalid_ops.invalid_op_2_vertex");
37 
38 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000304,
39         "dEQP-GLES2.functional.shaders.preproce",
40         "ssor.invalid_ops.invalid_op_2_fragment");
41 
42 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000305,
43         "dEQP-GLES2.functional.shaders.preprocessor.invali",
44         "d_ops.invalid_defined_expected_identifier_1_vertex");
45 
46 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000306,
47         "dEQP-GLES2.functional.shaders.preprocessor.invalid",
48         "_ops.invalid_defined_expected_identifier_1_fragment");
49 
50 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000307,
51         "dEQP-GLES2.functional.shaders.preprocessor.invali",
52         "d_ops.invalid_defined_expected_identifier_2_vertex");
53 
54 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000308,
55         "dEQP-GLES2.functional.shaders.preprocessor.invalid",
56         "_ops.invalid_defined_expected_identifier_2_fragment");
57 
58 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000309,
59         "dEQP-GLES2.functional.shaders.preprocessor.invali",
60         "d_ops.invalid_defined_expected_identifier_3_vertex");
61 
62 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000310,
63         "dEQP-GLES2.functional.shaders.preprocessor.invalid",
64         "_ops.invalid_defined_expected_identifier_3_fragment");
65 
66 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000311,
67         "dEQP-GLES2.functional.shaders.preprocessor.invali",
68         "d_ops.invalid_defined_expected_identifier_4_vertex");
69 
70 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000312,
71         "dEQP-GLES2.functional.shaders.preprocessor.invalid",
72         "_ops.invalid_defined_expected_identifier_4_fragment");
73 
74 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000313,
75         "dEQP-GLES2.functional.shaders.preprocessor.invali",
76         "d_ops.invalid_defined_expected_identifier_5_vertex");
77 
78 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000314,
79         "dEQP-GLES2.functional.shaders.preprocessor.invalid",
80         "_ops.invalid_defined_expected_identifier_5_fragment");
81 
82 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000315,
83         "dEQP-GLES2.functional.shaders.preprocessor.inv",
84         "alid_ops.invalid_defined_expected_rparen_vertex");
85 
86 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000316,
87         "dEQP-GLES2.functional.shaders.preprocessor.inva",
88         "lid_ops.invalid_defined_expected_rparen_fragment");
89 
90 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000317,
91         "dEQP-GLES2.functional.shaders.preproce",
92         "ssor.invalid_ops.defined_define_vertex");
93 
94 static SHRINK_HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000318,
95         "dEQP-GLES2.functional.shaders.preproces",
96         "sor.invalid_ops.defined_define_fragment");
97