/* * 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 "../ActsDeqpgles20016TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015257, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015257 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.d" "epth_range.write.default", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015257 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015257 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015258, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015258 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.d" "epth_range.write.reverse", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015258 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015258 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015259, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015259 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dept" "h_range.write.zero_to_half", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015259 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015259 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015260, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015260 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dep" "th_range.write.half_to_one", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015260 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015260 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015261, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015261 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dept" "h_range.write.half_to_zero", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015261 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015261 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015262, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015262 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dep" "th_range.write.one_to_half", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015262 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015262 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015263, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015263 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dept" "h_range.write.third_to_0_8", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015263 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015263 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015264, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015264 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dept" "h_range.write.0_8_to_third", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015264 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015264 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015265, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015265 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dept" "h_range.write.zero_to_zero", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015265 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015265 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015266, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015266 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dept" "h_range.write.half_to_half", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015266 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015266 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015267, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015267 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dep" "th_range.write.one_to_one", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015267 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015267 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015268, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015268 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dep" "th_range.write.clamp_near", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015268 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015268 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015269, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015269 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.de" "pth_range.write.clamp_far", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015269 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015269 end"; } static HWTEST_F(ActsDeqpgles20016TestSuite, TestCase_015270, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_015270 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.dep" "th_range.write.clamp_both", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20016TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20016TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20016TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20016TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20016TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_015270 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_015270 end"; }