/* * 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_006672, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006672 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.greaterThan.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_006672 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006672 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006673, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006673 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006673 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006673 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006674, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006674 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006674 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006674 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006675, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006675 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int" "_compare.greaterThan.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_006675 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006675 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006676, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006676 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.greaterThan.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_006676 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006676 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006677, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006677 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006677 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006677 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006678, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006678 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.greaterThan.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_006678 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006678 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006679, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006679 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006679 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006679 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006680, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006680 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006680 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006680 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006681, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006681 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int" "_compare.greaterThan.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_006681 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006681 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006682, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006682 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.greaterThan.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_006682 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006682 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006683, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006683 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006683 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006683 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006684, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006684 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.greaterThan.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_006684 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006684 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006685, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006685 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006685 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006685 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006686, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006686 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006686 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006686 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006687, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006687 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.int" "_compare.greaterThan.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_006687 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006687 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006688, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006688 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.greaterThan.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_006688 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006688 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006689, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006689 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.greaterThan.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_006689 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006689 end"; }