/* * 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 "../ActsDeqpgles20001TestSuite.h" using namespace std; using namespace testing::ext; using namespace OHOS; static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000090, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000090 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer." "write.partial_specify.whole_1", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000090 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000090 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000091, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000091 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer." "write.partial_specify.whole_2", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000091 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000091 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000092, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000092 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer." "write.partial_specify.whole_3", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000092 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000092 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000093, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000093 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer." "write.partial_specify.whole_4", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000093 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000093 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000094, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000094 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer" ".write.partial_specify.low_1", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000094 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000094 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000095, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000095 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer" ".write.partial_specify.low_2", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000095 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000095 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000096, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000096 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer" ".write.partial_specify.low_3", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000096 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000096 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000097, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000097 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer" ".write.partial_specify.high_1", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000097 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000097 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000098, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000098 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer" ".write.partial_specify.high_2", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000098 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000098 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000099, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000099 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer" ".write.partial_specify.high_3", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000099 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000099 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000100, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000100 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer." "write.partial_specify.middle_1", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000100 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000100 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000101, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000101 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer." "write.partial_specify.middle_2", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000101 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000101 end"; } static HWTEST_F(ActsDeqpgles20001TestSuite, TestCase_000102, Function | MediumTest | Level2) { GTEST_LOG_(INFO) << "TestCase_000102 start"; int argc = 3; const char *argv[3] = { ".", "--deqp-case=" "dEQP-GLES2.functional.buffer." "write.partial_specify.middle_3", "--deqp-archive-dir=/data/local/tmp/" }; FuncRunResult result = RunTestKHRGLES(argc, argv); ActsDeqpgles20001TestSuite::runResult.numPassed += result.numPassed; ActsDeqpgles20001TestSuite::runResult.numFailed += result.numFailed; ActsDeqpgles20001TestSuite::runResult.numNotSupported += result.numNotSupported; ActsDeqpgles20001TestSuite::runResult.numWarnings += result.numWarnings; ActsDeqpgles20001TestSuite::runResult.numWaived += result.numWaived; if (result.numNotSupported == 1) { GTEST_LOG_(INFO) << "TestCase_000102 notsupport!"; } else if (result.isComplete) { EXPECT_TRUE(result.isComplete); EXPECT_TRUE(result.numPassed == 1); }; GTEST_LOG_(INFO) << "TestCase_000102 end"; }