/* * 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 "../ActsDeqpgles20003TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002159, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002159 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.fun" "ctions.misc.multi_arg_float_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002159 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002159 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002160, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002160 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.func" "tions.misc.multi_arg_float_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002160 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002160 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002161, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002161 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.fu" "nctions.misc.multi_arg_int_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002161 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002161 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002162, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002162 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.fun" "ctions.misc.multi_arg_int_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002162 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002162 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002163, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002163 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.functi" "ons.misc.argument_eval_order_1_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002163 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002163 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002164, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002164 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.functio" "ns.misc.argument_eval_order_1_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002164 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002164 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002165, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002165 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.functi" "ons.misc.argument_eval_order_2_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002165 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002165 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002166, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002166 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.functio" "ns.misc.argument_eval_order_2_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002166 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002166 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002167, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002167 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.fun" "ctions.misc.missing_returns_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002167 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002167 end"; } static HWTEST_F(ActsDeqpgles20003TestSuite, TestCase_002168, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_002168 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.func" "tions.misc.missing_returns_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20003TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20003TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20003TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20003TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20003TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_002168 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_002168 end"; }