提交 916e6599 编写于 作者: T tianzhihui

add testcase

Signed-off-by: Ntianzhihui <tianzhihui@kaihongdigi.com>
上级 18dfd390
/*
* 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 "../KhrglesextBaseFunc.h"
#include "../ActsKhrglesext0001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000043, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000043 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader."
"nonarray_input.nonarray_input",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000043 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000043 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 "../KhrglesextBaseFunc.h"
#include "../ActsKhrglesext0001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000080, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000080 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.out"
"put.conflicted_output_primitive",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000080 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000080 end";
}
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000081, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000081 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.outp"
"ut.conflicted_output_vertices_max",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000081 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000081 end";
}
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000082, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000082 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shade"
"r.output.vertex_emit_at_end",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000082 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000082 end";
}
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000083, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000083 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.ou"
"tput.primitive_end_done_at_end",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000083 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000083 end";
}
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000084, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000084 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.output.p"
"rimite_end_done_for_single_primitive",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000084 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000084 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 "../KhrglesextBaseFunc.h"
#include "../ActsKhrglesext0001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000085, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000085 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.primiti"
"ve_queries.primitive_queries_points",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000085 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000085 end";
}
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000086, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000086 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.primit"
"ive_queries.primitive_queries_lines",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000086 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000086 end";
}
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000087, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000087 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.primitiv"
"e_queries.primitive_queries_triangles",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000087 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000087 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 "../KhrglesextBaseFunc.h"
#include "../ActsKhrglesext0001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000042, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000042 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader.pr"
"ogram_resource.program_resource",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000042 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000042 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 "../KhrglesextBaseFunc.h"
#include "../ActsKhrglesext0001TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrglesext0001TestSuite, TestCase_000128, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_000128 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLESEXT.geometry_shader."
"qualifiers.flat_interpolation",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrglesext0001TestSuite::runResult.numPassed += result.numPassed;
ActsKhrglesext0001TestSuite::runResult.numFailed += result.numFailed;
ActsKhrglesext0001TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrglesext0001TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrglesext0001TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_000128 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_000128 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册