/* * 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_006690, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006690 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int" "_compare.greaterThanEqual.lowp_ivec2_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_006690 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006690 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006691, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006691 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_" "compare.greaterThanEqual.lowp_ivec2_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_006691 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006691 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006692, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006692 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_c" "ompare.greaterThanEqual.mediump_ivec2_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_006692 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006692 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006693, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006693 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_co" "mpare.greaterThanEqual.mediump_ivec2_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_006693 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006693 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006694, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006694 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_" "compare.greaterThanEqual.highp_ivec2_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_006694 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006694 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006695, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006695 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_c" "ompare.greaterThanEqual.highp_ivec2_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_006695 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006695 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006696, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006696 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int" "_compare.greaterThanEqual.lowp_ivec3_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_006696 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006696 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006697, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006697 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_" "compare.greaterThanEqual.lowp_ivec3_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_006697 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006697 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006698, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006698 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_c" "ompare.greaterThanEqual.mediump_ivec3_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_006698 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006698 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006699, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006699 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_co" "mpare.greaterThanEqual.mediump_ivec3_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_006699 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006699 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006700, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006700 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_" "compare.greaterThanEqual.highp_ivec3_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_006700 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006700 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006701, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006701 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_c" "ompare.greaterThanEqual.highp_ivec3_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_006701 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006701 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006702, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006702 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int" "_compare.greaterThanEqual.lowp_ivec4_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_006702 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006702 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006703, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006703 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_" "compare.greaterThanEqual.lowp_ivec4_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_006703 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006703 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006704, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006704 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_c" "ompare.greaterThanEqual.mediump_ivec4_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_006704 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006704 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006705, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006705 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_co" "mpare.greaterThanEqual.mediump_ivec4_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_006705 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006705 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006706, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006706 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_" "compare.greaterThanEqual.highp_ivec4_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_006706 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006706 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006707, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006707 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int_c" "ompare.greaterThanEqual.highp_ivec4_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_006707 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006707 end"; }