/* * 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 "../ActsDeqpgles20008TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007870, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007870 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.const" "ant_expressions.trivial.float_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007870 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007870 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007871, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007871 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.consta" "nt_expressions.trivial.float_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007871 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007871 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007872, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007872 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.cons" "tant_expressions.trivial.int_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007872 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007872 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007873, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007873 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.const" "ant_expressions.trivial.int_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007873 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007873 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007874, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007874 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.const" "ant_expressions.trivial.bool_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007874 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007874 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007875, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007875 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.consta" "nt_expressions.trivial.bool_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007875 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007875 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007876, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007876 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.const" "ant_expressions.trivial.cast_vertex", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007876 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007876 end"; } static HWTEST_F(ActsDeqpgles20008TestSuite, TestCase_007877, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_007877 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.shaders.consta" "nt_expressions.trivial.cast_fragment", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20008TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20008TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20008TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20008TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20008TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_007877 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_007877 end"; }