/* * 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_006636, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006636 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".int_compare.lessThan.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_006636 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006636 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006637, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006637 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "int_compare.lessThan.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_006637 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006637 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006638, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006638 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.lessThan.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_006638 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006638 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006639, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006639 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.lessThan.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_006639 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006639 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006640, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006640 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "int_compare.lessThan.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_006640 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006640 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006641, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006641 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.lessThan.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_006641 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006641 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006642, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006642 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".int_compare.lessThan.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_006642 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006642 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006643, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006643 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "int_compare.lessThan.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_006643 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006643 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006644, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006644 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.lessThan.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_006644 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006644 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006645, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006645 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.lessThan.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_006645 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006645 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006646, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006646 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "int_compare.lessThan.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_006646 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006646 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006647, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006647 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.lessThan.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_006647 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006647 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006648, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006648 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator" ".int_compare.lessThan.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_006648 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006648 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006649, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006649 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "int_compare.lessThan.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_006649 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006649 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006650, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006650 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.lessThan.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_006650 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006650 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006651, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006651 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.in" "t_compare.lessThan.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_006651 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006651 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006652, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006652 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator." "int_compare.lessThan.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_006652 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006652 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006653, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006653 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.i" "nt_compare.lessThan.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_006653 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006653 end"; }