未验证 提交 0f277232 编写于 作者: O openharmony_ci 提交者: Gitee

!3853 add khrgles3 testcase pr1

Merge pull request !3853 from lingxiaofeng/master
/*
* 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 <gtest/gtest.h>
#include "../Khrgles3BaseFunc.h"
#include "../ActsKhrgles30004TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003603, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003603 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.shader_macros."
"fragment_precision_high_vertex",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003603 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003603 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003604, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003604 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.shader_macros.f"
"ragment_precision_high_fragment",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003604 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003604 end";
}
/*
* 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 <gtest/gtest.h>
#include "../Khrgles3BaseFunc.h"
#include "../ActsKhrgles30004TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003688, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003688 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalf"
"ormat.copy_tex_image.rgb",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003688 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003688 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003689, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003689 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalf"
"ormat.copy_tex_image.rgba",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003689 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003689 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003690, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003690 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalfo"
"rmat.copy_tex_image.alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003690 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003690 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003691, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003691 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalform"
"at.copy_tex_image.luminance",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003691 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003691 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003692, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003692 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalformat."
"copy_tex_image.luminance_alpha",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003692 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003692 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003693, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003693 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalfo"
"rmat.copy_tex_image.rgba4",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003693 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003693 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003694, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003694 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalfor"
"mat.copy_tex_image.rgb5_a1",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003694 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003694 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003695, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003695 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalfo"
"rmat.copy_tex_image.rgb565",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003695 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003695 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003696, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003696 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalfo"
"rmat.copy_tex_image.rgba8",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003696 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003696 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003697, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003697 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalf"
"ormat.copy_tex_image.rgb8",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003697 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003697 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003698, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003698 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalforma"
"t.copy_tex_image.srgb8_alpha8",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003698 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003698 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003699, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003699 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalfo"
"rmat.copy_tex_image.srgb8",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003699 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003699 end";
}
static HWTEST_F(ActsKhrgles30004TestSuite, TestCase_003700, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_003700 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.core.internalformat"
".copy_tex_image.r11f_g11f_b10f",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30004TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30004TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30004TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30004TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30004TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_003700 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_003700 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册