/* * 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 "../ActsDeqpgles20014TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013890, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013890 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteri" "zation.culling.front_triangles", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013890 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013890 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013891, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013891 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterizati" "on.culling.front_triangles_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013891 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013891 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013892, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013892 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterizat" "ion.culling.front_triangle_strip", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013892 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013892 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013893, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013893 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterization." "culling.front_triangle_strip_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013893 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013893 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013894, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013894 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteriza" "tion.culling.front_triangle_fan", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013894 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013894 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013895, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013895 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterization" ".culling.front_triangle_fan_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013895 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013895 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013896, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013896 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteri" "zation.culling.back_triangles", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013896 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013896 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013897, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013897 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterizati" "on.culling.back_triangles_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013897 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013897 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013898, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013898 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteriza" "tion.culling.back_triangle_strip", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013898 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013898 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013899, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013899 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterization" ".culling.back_triangle_strip_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013899 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013899 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013900, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013900 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteriz" "ation.culling.back_triangle_fan", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013900 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013900 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013901, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013901 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterizatio" "n.culling.back_triangle_fan_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013901 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013901 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013902, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013902 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteri" "zation.culling.both_triangles", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013902 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013902 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013903, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013903 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterizati" "on.culling.both_triangles_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013903 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013903 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013904, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013904 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteriza" "tion.culling.both_triangle_strip", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013904 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013904 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013905, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013905 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterization" ".culling.both_triangle_strip_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013905 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013905 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013906, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013906 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasteriz" "ation.culling.both_triangle_fan", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013906 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013906 end"; } static HWTEST_F(ActsDeqpgles20014TestSuite, TestCase_013907, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_013907 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.rasterizatio" "n.culling.both_triangle_fan_reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20014TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20014TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20014TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20014TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20014TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_013907 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_013907 end"; }