/* * 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_006546, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006546 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.fl" "oat_compare.lessThanEqual.lowp_vec2_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_006546 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006546 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006547, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006547 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.flo" "at_compare.lessThanEqual.lowp_vec2_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_006547 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006547 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006548, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006548 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.floa" "t_compare.lessThanEqual.mediump_vec2_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_006548 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006548 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006549, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006549 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.float" "_compare.lessThanEqual.mediump_vec2_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_006549 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006549 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006550, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006550 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.flo" "at_compare.lessThanEqual.highp_vec2_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_006550 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006550 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006551, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006551 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.floa" "t_compare.lessThanEqual.highp_vec2_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_006551 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006551 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006552, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006552 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.fl" "oat_compare.lessThanEqual.lowp_vec3_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_006552 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006552 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006553, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006553 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.flo" "at_compare.lessThanEqual.lowp_vec3_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_006553 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006553 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006554, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006554 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.floa" "t_compare.lessThanEqual.mediump_vec3_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_006554 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006554 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006555, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006555 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.float" "_compare.lessThanEqual.mediump_vec3_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_006555 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006555 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006556, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006556 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.flo" "at_compare.lessThanEqual.highp_vec3_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_006556 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006556 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006557, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006557 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.floa" "t_compare.lessThanEqual.highp_vec3_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_006557 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006557 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006558, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006558 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.fl" "oat_compare.lessThanEqual.lowp_vec4_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_006558 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006558 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006559, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006559 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.flo" "at_compare.lessThanEqual.lowp_vec4_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_006559 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006559 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006560, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006560 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.floa" "t_compare.lessThanEqual.mediump_vec4_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_006560 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006560 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006561, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006561 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.float" "_compare.lessThanEqual.mediump_vec4_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_006561 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006561 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006562, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006562 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.flo" "at_compare.lessThanEqual.highp_vec4_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_006562 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006562 end"; } static HWTEST_F(ActsDeqpgles20007TestSuite, TestCase_006563, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_006563 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.operator.floa" "t_compare.lessThanEqual.highp_vec4_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_006563 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_006563 end"; }