/* * 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_007439, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007439 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.u" "nary_addition.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_007439 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007439 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007440, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007440 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007440 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007440 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007441, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007441 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007441 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007441 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007442, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007442 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.una" "ry_addition.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_007442 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007442 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007443, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007443 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.u" "nary_addition.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_007443 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007443 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007444, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007444 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007444 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007444 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007445, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007445 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.u" "nary_addition.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_007445 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007445 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007446, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007446 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007446 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007446 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007447, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007447 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007447 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007447 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007448, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007448 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.una" "ry_addition.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_007448 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007448 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007449, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007449 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.u" "nary_addition.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_007449 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007449 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007450, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007450 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007450 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007450 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007451, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007451 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.u" "nary_addition.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_007451 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007451 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007452, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007452 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007452 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007452 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007453, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007453 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007453 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007453 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007454, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007454 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.una" "ry_addition.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_007454 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007454 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007455, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007455 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.u" "nary_addition.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_007455 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007455 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007456, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007456 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.matrix.un" "ary_addition.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_007456 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007456 end"; }