提交 47709519 编写于 作者: L lichongyuan

testcase

Signed-off-by: Nlichongyuan <lichongyuan@kaihongdigi.com>
上级 8636bb10
/*
* 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 "../Khrgles31BaseFunc.h"
#include "../ActsKhrgles310003TestSuite.h"
using namespace std;
using namespace testing::ext;
using namespace OHOS;
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002696, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002696 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.draw_b"
"uffers_indexed.coverage",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002696 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002696 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002697, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002697 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.draw_buff"
"ers_indexed.default_state",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002697 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002697 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002698, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002698 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.draw_b"
"uffers_indexed.set_get",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002698 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002698 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002699, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002699 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.draw_buf"
"fers_indexed.color_masks",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002699 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002699 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002700, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002700 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.draw_b"
"uffers_indexed.blending",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002700 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002700 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002701, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002701 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.draw_b"
"uffers_indexed.negative",
"--deqp-archive-dir=/data/local/tmp/"
};
FuncRunResult result = RunTestKHRGLES(argc, argv);
ActsKhrgles310003TestSuite::runResult.numPassed += result.numPassed;
ActsKhrgles310003TestSuite::runResult.numFailed += result.numFailed;
ActsKhrgles310003TestSuite::runResult.numNotSupported += result.numNotSupported;
ActsKhrgles310003TestSuite::runResult.numWarnings += result.numWarnings;
ActsKhrgles310003TestSuite::runResult.numWaived += result.numWaived;
if (result.numNotSupported == 1) {
GTEST_LOG_(INFO) << "TestCase_002701 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002701 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册