/* * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include "../Deqpgles2BaseFunc.h" #include "../ActsDeqpgles20007TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006600, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006600 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operato" "r.float_compare.equal.lowp_vec2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006600 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006600 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006601, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006601 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".float_compare.equal.lowp_vec2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006601 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006601 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006602, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006602 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "float_compare.equal.mediump_vec2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006602 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006602 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006603, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006603 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.f" "loat_compare.equal.mediump_vec2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006603 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006603 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006604, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006604 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".float_compare.equal.highp_vec2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006604 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006604 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006605, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006605 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "float_compare.equal.highp_vec2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006605 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006605 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006606, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006606 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operato" "r.float_compare.equal.lowp_vec3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006606 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006606 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006607, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006607 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".float_compare.equal.lowp_vec3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006607 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006607 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006608, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006608 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "float_compare.equal.mediump_vec3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006608 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006608 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006609, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006609 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.f" "loat_compare.equal.mediump_vec3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006609 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006609 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006610, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006610 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".float_compare.equal.highp_vec3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006610 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006610 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006611, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006611 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "float_compare.equal.highp_vec3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006611 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006611 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006612, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006612 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operato" "r.float_compare.equal.lowp_vec4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006612 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006612 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006613, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006613 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".float_compare.equal.lowp_vec4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006613 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006613 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006614, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006614 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "float_compare.equal.mediump_vec4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006614 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006614 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006615, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006615 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.f" "loat_compare.equal.mediump_vec4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006615 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006615 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006616, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006616 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".float_compare.equal.highp_vec4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006616 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006616 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006617, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006617 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "float_compare.equal.highp_vec4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20007TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20007TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20007TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20007TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20007TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_006617 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006617 end"; }