diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles22d_generateTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles22d_generateTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4c5c2b5e44b3a1ec1de9adf091009e451611fba6 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles22d_generateTestCase.cpp @@ -0,0 +1,886 @@ +/* + * 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 "../ActsDeqpgles20011TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010625, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010625 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".mipmap.2d.generate.a8_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010625 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010625 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010626, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010626 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".mipmap.2d.generate.a8_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010626 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010626 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010627, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010627 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipma" + "p.2d.generate.a8_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010627 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010627 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010628, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010628 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipm" + "ap.2d.generate.a8_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010628 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010628 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010629, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010629 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".mipmap.2d.generate.l8_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010629 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010629 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010630, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010630 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture" + ".mipmap.2d.generate.l8_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010630 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010630 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010631, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010631 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipma" + "p.2d.generate.l8_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010631 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010631 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010632, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010632 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipm" + "ap.2d.generate.l8_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010632 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010632 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010633, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010633 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "mipmap.2d.generate.la88_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010633 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010633 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010634, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010634 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture." + "mipmap.2d.generate.la88_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010634 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010634 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010635, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010635 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap" + ".2d.generate.la88_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010635 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010635 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010636, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010636 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipma" + "p.2d.generate.la88_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010636 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010636 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010637, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010637 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.m" + "ipmap.2d.generate.rgb565_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010637 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010637 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010638, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010638 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.m" + "ipmap.2d.generate.rgb565_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010638 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010638 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010639, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010639 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap." + "2d.generate.rgb565_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010639 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010639 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010640, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010640 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap" + ".2d.generate.rgb565_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010640 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010640 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010641, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010641 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.m" + "ipmap.2d.generate.rgb888_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010641 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010641 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010642, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010642 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.m" + "ipmap.2d.generate.rgb888_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010642 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010642 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010643, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010643 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap." + "2d.generate.rgb888_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010643 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010643 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010644, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010644 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap" + ".2d.generate.rgb888_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010644 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010644 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010645, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010645 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mi" + "pmap.2d.generate.rgba4444_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010645 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010645 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010646, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010646 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mi" + "pmap.2d.generate.rgba4444_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010646 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010646 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010647, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010647 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap.2" + "d.generate.rgba4444_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010647 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010647 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010648, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010648 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap." + "2d.generate.rgba4444_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010648 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010648 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010649, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010649 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mi" + "pmap.2d.generate.rgba5551_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010649 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010649 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010650, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010650 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mi" + "pmap.2d.generate.rgba5551_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010650 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010650 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010651, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010651 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap.2" + "d.generate.rgba5551_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010651 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010651 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010652, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010652 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap." + "2d.generate.rgba5551_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010652 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010652 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010653, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010653 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mi" + "pmap.2d.generate.rgba8888_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010653 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010653 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010654, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010654 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mi" + "pmap.2d.generate.rgba8888_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010654 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010654 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010655, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010655 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap.2" + "d.generate.rgba8888_non_square_fastest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010655 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010655 end"; +} + +static HWTEST_F(ActsDeqpgles20011TestSuite, TestCase_010656, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_010656 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.texture.mipmap." + "2d.generate.rgba8888_non_square_nicest", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20011TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20011TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20011TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20011TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20011TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_010656 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_010656 end"; +} diff --git a/graphic/vkgl/src/deqpgles2/functional/Deqpgles2angle_and_trigonometry_cosTestCase.cpp b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2angle_and_trigonometry_cosTestCase.cpp new file mode 100644 index 0000000000000000000000000000000000000000..63b99075093ca2fe93a671cd70ef29f62a7987d4 --- /dev/null +++ b/graphic/vkgl/src/deqpgles2/functional/Deqpgles2angle_and_trigonometry_cosTestCase.cpp @@ -0,0 +1,670 @@ +/* + * 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 "../ActsDeqpgles20006TestSuite.h" + +using namespace std; +using namespace testing::ext; +using namespace OHOS; + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005788, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005788 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.angl" + "e_and_trigonometry.cos.mediump_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005788 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005788 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005789, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005789 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.angle" + "_and_trigonometry.cos.mediump_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005789 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005789 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005790, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005790 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.highp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005790 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005790 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005791, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005791 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.angl" + "e_and_trigonometry.cos.highp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005791 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005791 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005792, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005792 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.mediump_vec2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005792 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005792 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005793, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005793 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.angl" + "e_and_trigonometry.cos.mediump_vec2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005793 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005793 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005794, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005794 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.an" + "gle_and_trigonometry.cos.highp_vec2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005794 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005794 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005795, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005795 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.highp_vec2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005795 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005795 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005796, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005796 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.mediump_vec3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005796 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005796 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005797, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005797 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.angl" + "e_and_trigonometry.cos.mediump_vec3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005797 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005797 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005798, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005798 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.an" + "gle_and_trigonometry.cos.highp_vec3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005798 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005798 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005799, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005799 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.highp_vec3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005799 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005799 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005800, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005800 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.mediump_vec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005800 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005800 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005801, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005801 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.angl" + "e_and_trigonometry.cos.mediump_vec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005801 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005801 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005802, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005802 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.an" + "gle_and_trigonometry.cos.highp_vec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005802 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005802 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005803, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005803 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.highp_vec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005803 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005803 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005804, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005804 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.an" + "gle_and_trigonometry.cos.lowp_float_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005804 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005804 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005805, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005805 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.lowp_float_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005805 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005805 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005806, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005806 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.an" + "gle_and_trigonometry.cos.lowp_vec2_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005806 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005806 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005807, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005807 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.lowp_vec2_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005807 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005807 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005808, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005808 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.an" + "gle_and_trigonometry.cos.lowp_vec3_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005808 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005808 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005809, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005809 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.lowp_vec3_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005809 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005809 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005810, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005810 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.an" + "gle_and_trigonometry.cos.lowp_vec4_vertex", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005810 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005810 end"; +} + +static HWTEST_F(ActsDeqpgles20006TestSuite, TestCase_005811, Function | MediumTest | Level2) +{ + GTEST_LOG_(INFO) << "TestCase_005811 start"; + int argc = 3; + const char *argv[3] = { + ".", + "--deqp-case=" + "dEQP-GLES2.functional.shaders.operator.ang" + "le_and_trigonometry.cos.lowp_vec4_fragment", + "--deqp-archive-dir=/data/local/tmp/" + }; + + FuncRunResult result = RunTestKHRGLES(argc, argv); + ActsDeqpgles20006TestSuite::runResult.numPassed += result.numPassed; + ActsDeqpgles20006TestSuite::runResult.numFailed += result.numFailed; + ActsDeqpgles20006TestSuite::runResult.numNotSupported += result.numNotSupported; + ActsDeqpgles20006TestSuite::runResult.numWarnings += result.numWarnings; + ActsDeqpgles20006TestSuite::runResult.numWaived += result.numWaived; + if (result.numNotSupported == 1) { + GTEST_LOG_(INFO) << "TestCase_005811 notsupport!"; + } else if (result.isComplete) { + EXPECT_TRUE(result.isComplete); + EXPECT_TRUE(result.numPassed == 1); + }; + GTEST_LOG_(INFO) << "TestCase_005811 end"; +}