提交 b4a94251 编写于 作者: Y yanmingzhou

add testcase

Signed-off-by: Nyanmingzhou <yanmingzhou@kaihongdigi.com>
上级 ef0f6485
/*
* 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_002785, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002785 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.pixelstorage"
"modes.teximage2d.rg8snorm.0_0",
"--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_002785 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002785 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002786, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002786 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.pixelstorage"
"modes.teximage2d.rg8snorm.1_0",
"--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_002786 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002786 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002787, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002787 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.pixelstoragem"
"odes.teximage2d.rg8snorm.16_0",
"--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_002787 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002787 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002788, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002788 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.pixelstorage"
"modes.teximage2d.rg8snorm.1_1",
"--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_002788 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002788 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002789, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002789 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.pixelstoragem"
"odes.teximage2d.rg8snorm.16_1",
"--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_002789 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002789 end";
}
static HWTEST_F(ActsKhrgles310003TestSuite, TestCase_002790, Function | MediumTest | Level2)
{
GTEST_LOG_(INFO) << "TestCase_002790 start";
int argc = 3;
const char *argv[3] = {
".",
"--deqp-case="
"KHR-GLES31.core.pixelstoragem"
"odes.teximage2d.rg8snorm.16_16",
"--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_002790 notsupport!";
} else if (result.isComplete) {
EXPECT_TRUE(result.isComplete);
EXPECT_TRUE(result.numPassed == 1);
};
GTEST_LOG_(INFO) << "TestCase_002790 end";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册