未验证 提交 999a15e1 编写于 作者: O openharmony_ci 提交者: Gitee

!3867 add khrgles3 testcase pr5

Merge pull request !3867 from wangbo_kaihong/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 "../ActsKhrgles30001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000020, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000020 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.frag"
"depth.compare.no_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000020 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000020 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000021, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000021 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fr"
"agdepth.compare.const",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000021 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000021 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000022, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000022 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fra"
"gdepth.compare.uniform",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000022 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000022 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000023, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000023 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fra"
"gdepth.compare.dynamic",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000023 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000023 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000024, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000024 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragd"
"epth.compare.fragcoord_z",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000024 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000024 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000025, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000025 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdepth.co"
"mpare.uniform_conditional_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000025 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000025 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000026, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000026 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdepth.co"
"mpare.dynamic_conditional_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000026 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000026 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000027, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000027 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdepth"
".compare.uniform_loop_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000027 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000027 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000028, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000028 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdept"
"h.compare.write_in_function",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000028 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000028 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 "../ActsKhrgles30001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000011, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000011 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fra"
"gdepth.write.no_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000011 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000011 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000012, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000012 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.f"
"ragdepth.write.const",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000012 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000012 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000013, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000013 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fr"
"agdepth.write.uniform",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000013 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000013 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000014, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000014 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fr"
"agdepth.write.dynamic",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000014 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000014 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000015, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000015 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.frag"
"depth.write.fragcoord_z",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000015 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000015 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000016, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000016 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdepth.w"
"rite.uniform_conditional_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000016 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000016 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000017, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000017 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdepth.w"
"rite.dynamic_conditional_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000017 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000017 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000018, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000018 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdept"
"h.write.uniform_loop_write",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000018 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000018 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000019, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000019 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.fragdep"
"th.write.write_in_function",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000019 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000019 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册