/* * 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 "../ActsDeqpgles20008TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007457, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007457 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matri" "x.negation.dynamic_lowp_mat2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007457 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007457 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007458, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007458 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_lowp_mat2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007458 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007458 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007459, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007459 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_mediump_mat2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007459 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007459 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007460, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007460 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "negation.dynamic_mediump_mat2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007460 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007460 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007461, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007461 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matri" "x.negation.dynamic_highp_mat2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007461 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007461 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007462, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007462 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_highp_mat2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007462 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007462 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007463, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007463 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matri" "x.negation.dynamic_lowp_mat3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007463 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007463 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007464, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007464 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_lowp_mat3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007464 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007464 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007465, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007465 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_mediump_mat3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007465 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007465 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007466, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007466 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "negation.dynamic_mediump_mat3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007466 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007466 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007467, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007467 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matri" "x.negation.dynamic_highp_mat3_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007467 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007467 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007468, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007468 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_highp_mat3_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007468 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007468 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007469, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007469 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matri" "x.negation.dynamic_lowp_mat4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007469 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007469 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007470, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007470 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_lowp_mat4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007470 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007470 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007471, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007471 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_mediump_mat4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007471 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007471 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007472, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007472 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix." "negation.dynamic_mediump_mat4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007472 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007472 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007473, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007473 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matri" "x.negation.dynamic_highp_mat4_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007473 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007473 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007474, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007474 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix" ".negation.dynamic_highp_mat4_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007474 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007474 end"; }