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

!3854 add khrgles3 testcase pr2

Merge pull request !3854 from liucaicheng/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_000001, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000001 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.decla"
"rations.missing_variable_name_vertex",
"--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_000001 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000001 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000002, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000002 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declar"
"ations.missing_variable_name_fragment",
"--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_000002 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000002 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000003, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000003 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declar"
"ations.comma_preceding_variable_vertex",
"--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_000003 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000003 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000004, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000004 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declara"
"tions.comma_preceding_variable_fragment",
"--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_000004 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000004 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000005, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000005 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declar"
"ations.comma_following_variable_vertex",
"--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_000005 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000005 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000006, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000006 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declara"
"tions.comma_following_variable_fragment",
"--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_000006 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000006 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000007, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000007 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declarati"
"ons.struct_missing_attribute_name_vertex",
"--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_000007 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000007 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000008, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000008 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declaratio"
"ns.struct_missing_attribute_name_fragment",
"--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_000008 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000008 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000009, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000009 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declaratio"
"ns.struct_comma_preceding_attribute_vertex",
"--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_000009 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000009 end";
}
static HWTEST_F(ActsKhrgles30001TestSuite, TestCase_000010, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000010 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.declarations.declaration"
"s.struct_comma_preceding_attribute_fragment",
"--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_000010 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000010 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 "../ActsKhrgles30003TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002133, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002133 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_b"
"asic_types.per_block_buffer.shared_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002133 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002133 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002134, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002134 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_b"
"asic_types.per_block_buffer.shared_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002134 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002134 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002135, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002135 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_typ"
"es.per_block_buffer.shared_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002135 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002135 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002136, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002136 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_ty"
"pes.per_block_buffer.shared_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002136 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002136 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002137, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002137 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_b"
"asic_types.per_block_buffer.packed_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002137 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002137 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002138, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002138 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_typ"
"es.per_block_buffer.packed_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002138 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002138 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002139, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002139 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_b"
"asic_types.per_block_buffer.std140_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002139 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002139 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002140, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002140 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_b"
"asic_types.per_block_buffer.std140_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002140 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002140 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002141, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002141 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_typ"
"es.per_block_buffer.std140_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002141 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002141 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002142, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002142 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_ty"
"pes.per_block_buffer.std140_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002142 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002142 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 "../ActsKhrgles30003TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002143, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002143 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_"
"basic_types.single_buffer.shared_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002143 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002143 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002144, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002144 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi"
"_basic_types.single_buffer.shared_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002144 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002144 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002145, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002145 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_t"
"ypes.single_buffer.shared_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002145 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002145 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002146, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002146 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_t"
"ypes.single_buffer.shared_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002146 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002146 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002147, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002147 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_"
"basic_types.single_buffer.packed_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002147 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002147 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002148, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002148 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_t"
"ypes.single_buffer.packed_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002148 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002148 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002149, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002149 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_"
"basic_types.single_buffer.std140_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002149 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002149 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002150, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002150 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi"
"_basic_types.single_buffer.std140_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002150 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002150 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002151, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002151 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_t"
"ypes.single_buffer.std140_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002151 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002151 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002152, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002152 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_basic_t"
"ypes.single_buffer.std140_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002152 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002152 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 "../ActsKhrgles30003TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002153, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002153 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_ne"
"sted_struct.per_block_buffer.shared_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002153 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002153 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002154, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002154 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_ne"
"sted_struct.per_block_buffer.shared_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002154 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002154 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002155, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002155 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_str"
"uct.per_block_buffer.shared_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002155 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002155 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002156, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002156 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_st"
"ruct.per_block_buffer.shared_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002156 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002156 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002157, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002157 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_ne"
"sted_struct.per_block_buffer.packed_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002157 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002157 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002158, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002158 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_str"
"uct.per_block_buffer.packed_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002158 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002158 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002159, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002159 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_ne"
"sted_struct.per_block_buffer.std140_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002159 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002159 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002160, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002160 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_ne"
"sted_struct.per_block_buffer.std140_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002160 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002160 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002161, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002161 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_str"
"uct.per_block_buffer.std140_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002161 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002161 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002162, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002162 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_st"
"ruct.per_block_buffer.std140_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002162 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002162 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 "../ActsKhrgles30003TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002163, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002163 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_n"
"ested_struct.single_buffer.shared_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002163 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002163 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002164, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002164 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_"
"nested_struct.single_buffer.shared_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002164 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002164 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002165, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002165 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_s"
"truct.single_buffer.shared_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002165 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002165 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002166, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002166 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_s"
"truct.single_buffer.shared_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002166 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002166 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002167, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002167 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_n"
"ested_struct.single_buffer.packed_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002167 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002167 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002168, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002168 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_s"
"truct.single_buffer.packed_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002168 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002168 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002169, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002169 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_n"
"ested_struct.single_buffer.std140_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002169 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002169 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002170, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002170 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_"
"nested_struct.single_buffer.std140_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002170 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002170 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002171, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002171 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_s"
"truct.single_buffer.std140_instance_array_mixed",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002171 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002171 end";
}
static HWTEST_F(ActsKhrgles30003TestSuite, TestCase_002172, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002172 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES3.shaders.uniform_block.multi_nested_s"
"truct.single_buffer.std140_instance_array_both",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles30003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles30003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles30003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles30003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles30003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002172 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002172 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册